diff --git a/content/zh/docs/reference/command-line-tools-reference/kubelet.md b/content/zh/docs/reference/command-line-tools-reference/kubelet.md index f542978d01..544f8483b6 100644 --- a/content/zh/docs/reference/command-line-tools-reference/kubelet.md +++ b/content/zh/docs/reference/command-line-tools-reference/kubelet.md @@ -77,7 +77,7 @@ If true, adds the file directory to the header kubelet 用来提供服务的 IP 地址(设置为0.0.0.0 表示使用所有 IPv4 接口, 设置为 :: 表示使用所有 IPv6 接口)。已弃用:应在 --config 所给的 @@ -91,11 +91,11 @@ kubelet 用来提供服务的 IP 地址(设置为0.0.0.0 表示 用逗号分隔的字符串序列设置允许使用的非安全的 sysctls 或 sysctl 模式(以 * 结尾) 。 使用此参数时风险自担。已弃用:应在 --config 所给的配置文件中进行设置。 -(进一步了解). +(进一步了解) @@ -117,7 +117,7 @@ log to standard error as well as files 设置为 true 表示 kubelet 服务器可以接受匿名请求。未被任何认证组件拒绝的请求将被视为匿名请求。 匿名请求的用户名为 system:anonymous,用户组为 system:unauthenticated。 @@ -160,7 +160,7 @@ The duration to cache responses from the webhook token authenticator. (default 2 kubelet 服务器的鉴权模式。可选值包括:AlwaysAllowWebhookWebhook 模式使用 SubjectAccessReview API 鉴权。 当 --config 参数未被设置时,默认值为 AlwaysAllow,当使用了 @@ -176,7 +176,7 @@ kubelet 服务器的鉴权模式。可选值包括:AlwaysAllow 对 Webhook 认证组件所返回的 “Authorized(已授权)” 应答的缓存时间。 已弃用:应在 --config 所给的配置文件中进行设置。 @@ -185,12 +185,12 @@ The duration to cache 'authorized' responses from the webhook authorizer. (DEPRE ---authorization-webhook-cache-unauthorized-ttl duration     默认值:30s +--authorization-webhook-cache-unauthorized-ttl duration     默认值:30s 对 Webhook 认证组件所返回的 “Unauthorized(未授权)” 应答的缓存时间。 --config 时,默认值为 Webhook。 @@ -217,7 +217,7 @@ Path to the file container Azure container registry configuration information. 某 kubeconfig 文件的路径,该文件将用于获取 kubelet 的客户端证书。 如果 --kubeconfig 所指定的文件不存在,则使用引导所用 kubeconfig @@ -228,12 +228,12 @@ Path to a kubeconfig file that will be used to get client certificate for kubele ---cert-dir string     默认值:/var/lib/kubelet/pki +--cert-dir string     默认值:/var/lib/kubelet/pki TLS 证书所在的目录。如果设置了 --tls-cert-file--tls-private-key-file, 则此标志将被忽略。 @@ -241,22 +241,22 @@ TLS 证书所在的目录。如果设置了 --tls-cert-file ---cgroup-driver string     默认值:cgroupfs +--cgroup-driver string     默认值:cgroupfs kubelet 用来操作本机 cgroup 时使用的驱动程序。支持的选项包括 cgroupfssystemd。 已弃用:应在 --config 所给的配置文件中进行设置。 (进一步了解) -/td> + ---cgroup-root string     默认值:"" +--cgroup-root string     默认值:"" @@ -271,12 +271,12 @@ Optional root cgroup to use for pods. This is handled by the container runtime o ---cgroups-per-qos     默认值:true +--cgroups-per-qos     默认值:true 启用创建 QoS cgroup 层次结构。此值为 true 时 kubelet 为 QoS 和 Pod 创建顶级的 cgroup。 已弃用:应在 --config 所给的配置文件中进行设置。 @@ -345,7 +345,7 @@ The provider for cloud services. Set to empty string for running with no cloud p DNS 服务器的 IP 地址,以逗号分隔。此标志值用于 Pod 中设置了 “dnsPolicy=ClusterFirst” 时为容器提供 DNS 服务。注意:列表中出现的所有 DNS 服务器必须包含相同的记录组, @@ -363,7 +363,7 @@ DNS 服务器的 IP 地址,以逗号分隔。此标志值用于 Pod 中设置 集群的域名。如果设置了此值,kubelet 除了将主机的搜索域配置到所有容器之外,还会为其 配置所搜这里指定的域名。 @@ -374,12 +374,12 @@ Domain for this cluster. If set, kubelet will configure all containers to search ---cni-bin-dir string     默认值:/opt/cni/bin +--cni-bin-dir string     默认值:/opt/cni/bin <警告:alpha 特性> 此值为以逗号分隔的完整路径列表。 kubelet 将在所指定路径中搜索 CNI 插件的可执行文件。 @@ -388,12 +388,12 @@ kubelet 将在所指定路径中搜索 CNI 插件的可执行文件。 ---cni-cache-dir string     默认值:/var/lib/cni/cache +--cni-cache-dir string     默认值:/var/lib/cni/cache <警告:alpha 特性> 此值为一个目录的全路径名。CNI 将在其中缓存文件。 仅当容器运行环境设置为 docker 时,此特定于 docker 的参数才有效。 @@ -401,12 +401,12 @@ kubelet 将在所指定路径中搜索 CNI 插件的可执行文件。 ---cni-conf-dir string     默认值:/etc/cni/net.d +--cni-conf-dir string     默认值:/etc/cni/net.d <警告:alpha 特性> 此值为某目录的全路径名。kubelet 将在其中搜索 CNI 配置文件。 仅当容器运行环境设置为 docker 时,此特定于 docker 的参数才有效。 @@ -433,7 +433,7 @@ kubelet 将从此标志所指的文件中加载其初始配置。此路径可以 设置容器的日志文件个数上限。此值必须不小于 2。 此标志只能与 --container-runtime=remote 标志一起使用。 @@ -443,12 +443,12 @@ Set the maximum number of container log files that can be present for a containe ---container-log-max-size string     默认值:10Mi +--container-log-max-size string     默认值:10Mi 设置容器日志文件在轮换生成新文件时之前的最大值(例如,10Mi)。 此标志只能与 --container-runtime=remote 标志一起使用。 @@ -458,24 +458,24 @@ Set the maximum size (e.g. 10Mi) of container log file before it is rotated. Thi ---container-runtime string     默认值:docker +--container-runtime string     默认值:docker 要使用的容器运行时。目前支持 dockerremote。 ---container-runtime-endpoint string     默认值:unix:///var/run/dockershim.sock +--container-runtime-endpoint string     默认值:unix:///var/run/dockershim.sock [实验性特性] 远程运行时服务的端点。目前支持 Linux 系统上的 UNIX 套接字和 Windows 系统上的 npipe 和 TCP 端点。例如: @@ -499,12 +499,12 @@ Enable lock contention profiling, if profiling is enabled (DEPRECATED: This para ---cpu-cfs-quota     默认值:true +--cpu-cfs-quota     默认值:true 为设置了 CPU 限制的容器启用 CPU CFS 配额保障。 已弃用:应在 --config 所给的配置文件中进行设置。 @@ -513,12 +513,12 @@ Enable CPU CFS quota enforcement for containers that specify CPU limits (DEPRECA ---cpu-cfs-quota-period duration     默认值:100ms +--cpu-cfs-quota-period duration     默认值:100ms 设置 CPU CFS 配额周期 cpu.cfs_period_us。默认使用 Linux 内核所设置的默认值 。 已弃用:应在 --config 所给的配置文件中进行设置。 @@ -541,12 +541,12 @@ CPU Manager policy to use. Possible values: 'none', 'static'. Default: 'none' (d ---cpu-manager-reconcile-period duration     默认值:10s +--cpu-manager-reconcile-period duration     默认值:10s <警告:alpha 特性> 设置 CPU 管理器的调和时间。例如:10s 或者 1m。 如果未设置,默认使用节点状态更新频率。 @@ -556,12 +556,12 @@ CPU Manager policy to use. Possible values: 'none', 'static'. Default: 'none' (d ---docker-endpoint string     默认值:unix:///var/run/docker.sock +--docker-endpoint string     默认值:unix:///var/run/docker.sock 使用这里的端点与 docker 端点通信。 仅当容器运行环境设置为 docker 时,此特定于 docker 的参数才有效。 @@ -574,7 +574,7 @@ Use this for the `docker` endpoint to communicate with. This docker-specific fla kubelet 使用此目录来保存所下载的配置,跟踪配置运行状况。 如果目录不存在,则 kubelet 创建该目录。此路径可以是绝对路径,也可以是相对路径。 @@ -586,7 +586,7 @@ kubelet 使用此目录来保存所下载的配置,跟踪配置运行状况。 ---enable-controller-attach-detach     默认值:true +--enable-controller-attach-detach     默认值:true @@ -598,7 +598,7 @@ Enables the Attach/Detach controller to manage attachment/detachment of volumes ---enable-debugging-handlers     Default: `true` +--enable-debugging-handlers     默认值:true @@ -612,12 +612,12 @@ Enables server endpoints for log collection and local running of containers and ---enable-server      +--enable-server      启用 kubelet 服务器。 已弃用:应在 --config 所给的配置文件中进行设置。 @@ -626,12 +626,12 @@ Enable the Kubelet's server. (DEPRECATED: This parameter should be set via the c ---enforce-node-allocatable strings     Default: `pods` +--enforce-node-allocatable strings     默认值:pods 用逗号分隔的列表,包含由 kubelet 强制执行的节点可分配资源级别。 可选配置为:nonepodssystem-reservedkube-reserved。 @@ -650,7 +650,7 @@ A comma separated list of levels of node allocatable enforcement to be enforced 事件记录的个数的突发峰值上限,在遵从 --event-qps 阈值约束的前提下 临时允许事件记录达到此数目。仅在 --event-qps 大于 0 时使用。 @@ -660,12 +660,12 @@ Maximum size of a bursty event records, temporarily allows event records to burs ---event-qps int32     Default: 5 +--event-qps int32     默认值:5 设置大于 0 的值表示限制每秒可生成的事件数量。设置为 0 表示不限制。 已弃用:应在 --config 所给的配置文件中进行设置。 @@ -674,12 +674,12 @@ If > `0`, limit event creations per second to this value. If `0`, unlimited. ---eviction-hard string     默认值:imagefs.available<15%,memory.available<100Mi,nodefs.available<10% +--eviction-hard string     默认值:imagefs.available<15%,memory.available<100Mi,nodefs.available<10% 触发 Pod 驱逐操作的一组硬性门限(例如:memory.available<1Gi (内存可用值小于 1 G))设置。在 Linux 节点上,默认值还包括 @@ -695,7 +695,7 @@ A set of eviction thresholds (e.g. `memory.available<1Gi`) that if met would tri 响应满足软性驱逐阈值(Soft Eviction Threshold)而终止 Pod 时使用的最长宽限期(以秒为单位)。 如果设置为负数,则遵循 Pod 的指定值。 @@ -710,7 +710,7 @@ Maximum allowed grace period (in seconds) to use when terminating pods in respon 当某资源压力过大时,kubelet 将执行 Pod 驱逐操作。 此参数设置软性驱逐操作需要回收的资源的最小数量(例如:imagefs.available=2Gi)。 @@ -720,12 +720,12 @@ A set of minimum reclaims (e.g. `imagefs.available=2Gi`) that describes the mini ---eviction-pressure-transition-period duration     默认值:5m0s +--eviction-pressure-transition-period duration     默认值:5m0s kubelet 在驱逐压力状况解除之前的最长等待时间。 已弃用:应在 --config 所给的配置文件中进行设置。 @@ -739,7 +739,7 @@ kubelet 在驱逐压力状况解除之前的最长等待时间。 设置一组驱逐阈值(例如:memory.available<1.5Gi)。 如果在相应的宽限期内达到该阈值,则会触发 Pod 驱逐操作。 @@ -754,7 +754,7 @@ A set of eviction thresholds (e.g. `memory.available>1.5Gi`) that if met over a 设置一组驱逐宽限期(例如,memory.available=1m30s),对应于触发软性 Pod 驱逐操作之前软性驱逐阈值所需持续的时间长短。 @@ -776,12 +776,12 @@ Whether kubelet should exit upon lock-file contention. ---experimental-allocatable-ignore-eviction     默认值:false +--experimental-allocatable-ignore-eviction     默认值:false 设置为 true 表示在计算节点可分配资源数量时忽略硬性逐出阈值设置。 参考 @@ -808,7 +808,7 @@ When set to `true`, Hard eviction thresholds will be ignored while calculating n [实验性特性] 设置为 true 表示 kubelet 在进行挂载卷操作之前要 在本节点上检查所需的组件(如可执行文件等)是否存在。 @@ -822,7 +822,7 @@ When set to `true`, Hard eviction thresholds will be ignored while calculating n 设置为 true 表示 kubelet 将会集成内核的 memcg 通知机制而不是使用轮询机制来 判断是否达到了内存驱逐阈值。 @@ -848,12 +848,12 @@ If enabled, the kubelet will integrate with the kernel memcg notification to det ---experimental-mounter-path string     默认值:mount +--experimental-mounter-path string     默认值:mount [实验性特性] 卷挂载器(mounter)的可执行文件的路径。设置为空表示使用默认挂载器 mount。 已弃用:将在 1.23 版本移除以支持 CSI。 @@ -861,12 +861,12 @@ If enabled, the kubelet will integrate with the kernel memcg notification to det ---fail-swap-on     默认值:true +--fail-swap-on     默认值:true 设置为 true 表示如果主机启用了交换分区,kubelet 将直接失败。 已弃用:应在 --config 所给的配置文件中进行设置。 @@ -880,7 +880,7 @@ Makes the Kubelet fail to start if swap is enabled on the node. (DEPRECATED: Thi -用于 alpha 实验性质的特性开关组,每个开关以 key=value 形式表示。当前可用开关包括: +用于 alpha 实验性特性的特性开关组,每个开关以 key=value 形式表示。当前可用开关包括:
APIListChunking=true|false (BETA - 默认值为 true)
APIPriorityAndFairness=true|false (BETA - 默认值为 true)
APIResponseCompression=true|false (BETA - 默认值为 true)
@@ -1043,35 +1041,35 @@ RemoveSelfLink=true|false (BETA - 默认值为 true)
RootCAConfigMap=true|false (BETA - 默认值为 true)
RotateKubeletServerCertificate=true|false (BETA - 默认值为 true)
RunAsGroup=true|false (BETA - 默认值为 true)
-ServerSideApply=true|false (BETA - 默认值为 true)
-ServiceAccountIssuerDiscovery=true|false (BETA - 默认值为 true)
-ServiceLBNodePortControl=true|false (ALPHA - 默认值为 false)
-ServiceNodeExclusion=true|false (BETA - 默认值为 true)
-ServiceTopology=true|false (ALPHA - 默认值为 false)
-SetHostnameAsFQDN=true|false (BETA - 默认值为 true)
-SizeMemoryBackedVolumes=true|false (ALPHA - 默认值为 false)
+SeccompDefault=true|false (ALPHA - 默认值为 false)
+ServiceInternalTrafficPolicy=true|false (BETA - 默认值为 true)
+ServiceLBNodePortControl=true|false (BETA - 默认值为 true)
+ServiceLoadBalancerClass=true|false (BETA - 默认值为 true)
+SizeMemoryBackedVolumes=true|false (BETA - 默认值为 true)
+StatefulSetAutoDeletePVC=true|false (ALPHA - 默认值为 false)
+StatefulSetMinReadySeconds=true|false (BETA - 默认值为 true)
StorageVersionAPI=true|false (ALPHA - 默认值为 false)
StorageVersionHash=true|false (BETA - 默认值为 true)
-Sysctls=true|false (BETA - 默认值为 true)
-TTLAfterFinished=true|false (ALPHA - 默认值为 false)
+SuspendJob=true|false (BETA - 默认值为 true)
+TopologyAwareHints=true|false (BETA - 默认值为 true)
TopologyManager=true|false (BETA - 默认值为 true)
-ValidateProxyRedirects=true|false (BETA - 默认值为 true)
-WarningHeaders=true|false (BETA - 默认值为 true)
+VolumeCapacityPriority=true|false (ALPHA - 默认值为 false)
WinDSR=true|false (ALPHA - 默认值为 false)
WinOverlay=true|false (BETA - 默认值为 true)
-WindowsEndpointSliceProxying=true|false (ALPHA - 默认值为 false)
-已弃用:应在 --config 所给的配置文件中进行设置。 -(
进一步了解) +WindowsHostProcessContainers=true|false (BETA - 默认值为 true)
+csiMigrationRBD=true|false (ALPHA - 默认值为 false)
+已弃用: 应在 --config 所给的配置文件中进行设置。 +(进一步了解) ---file-check-frequency duration     默认值:20s +--file-check-frequency duration     默认值:20s 检查配置文件中新数据的时间间隔。 已弃用:应在 --config 所给的配置文件中进行设置。 @@ -1080,28 +1078,28 @@ Duration between checking config files for new data. (DEPRECATED: This parameter ---hairpin-mode string     默认值:promiscuous-bridge +--hairpin-mode string     默认值:promiscuous-bridge 设置 kubelet 执行发夹模式(hairpin)网络地址转译的方式。 该模式允许后端端点对其自身服务的访问能够再次经由负载均衡转发回自身。 -可选项包括 “promiscuous-bridge”、“hairpin-veth” 和 “none”。 +可选项包括 promiscuous-bridgehairpin-vethnone。 已弃用:应在 --config 所给的配置文件中进行设置。 (进一步了解) ---healthz-bind-address ip     默认值:127.0.0.1 +--healthz-bind-address ip     默认值:127.0.0.1 用于运行 healthz 服务器的 IP 地址(设置为 0.0.0.0 表示使用所有 IPv4 接口, 设置为 :: 表示使用所有 IPv6 接口。 @@ -1116,7 +1114,7 @@ The IP address for the healthz server to serve on (set to `0.0.0.0` for all IPv4 本地 healthz 端点使用的端口(设置为 0 表示禁用)。 已弃用:应在 --config 所给的配置文件中进行设置。 @@ -1142,7 +1140,7 @@ kubelet 操作的帮助命令 如果为非空,将使用此字符串而不是实际的主机名作为节点标识。如果设置了 --cloud-provider,则云驱动将确定节点的名称 @@ -1151,7 +1149,7 @@ If non-empty, will use this string as identification instead of the actual hostn ---housekeeping-interval duration     默认值:10s +--housekeeping-interval duration     默认值:10s @@ -1163,12 +1161,12 @@ Interval between container housekeepings (default 10s) ---http-check-frequency duration     默认值:20s +--http-check-frequency duration     默认值:20s HTTP 服务以获取新数据的时间间隔。 已弃用:应在 --config 所给的配置文件中进行设置。 @@ -1205,7 +1203,7 @@ The path to the credential provider plugin config file. 镜像垃圾回收上限。磁盘使用空间达到该百分比时,镜像垃圾回收将持续工作。 值必须在 [0,100] 范围内。要禁用镜像垃圾回收,请设置为 100。 @@ -1220,7 +1218,7 @@ The percent of disk usage after which image garbage collection is always run. Va 镜像垃圾回收下限。磁盘使用空间在达到该百分比之前,镜像垃圾回收操作不会运行。 值必须在 [0,100] 范围内,并且不得大于 --image-gc-high-threshold的值。 @@ -1230,12 +1228,12 @@ The percent of disk usage before which image garbage collection is never run. Lo ---image-pull-progress-deadline duration     默认值:1m0s +--image-pull-progress-deadline duration     默认值:1m0s 如果在该参数值所设置的期限之前没有拉取镜像的进展,镜像拉取操作将被取消。 仅当容器运行环境设置为 docker 时,此特定于 docker 的参数才有效。 @@ -1248,7 +1246,7 @@ If no pulling progress is made before this deadline, the image pulling will be c [实验性特性] 远程镜像服务的端点。若未设定则默认情况下使用 --container-runtime-endpoint 的值。目前支持的类型包括在 Linux 系统上的 UNIX 套接字端点和 Windows 系统上的 npipe 和 TCP 端点。 @@ -1262,7 +1260,7 @@ If no pulling progress is made before this deadline, the image pulling will be c 标记数据包将被丢弃的 fwmark 位设置。必须在 [0,31] 范围内。 已弃用:应在 --config 所给的配置文件中进行设置。 @@ -1276,7 +1274,7 @@ The bit of the `fwmark` space to mark packets for dropping. Must be within the r 标记数据包将进行 SNAT 的 fwmark 空间位设置。必须在 [0,31] 范围内。 请将此参数与 kube-proxy 中的相应参数匹配。 @@ -1304,7 +1302,7 @@ Keep terminated pod volumes mounted to the node after the pod terminates. Can be 若启用,则 kubelet 将与内核中的 memcg 通知机制集成,不再使用轮询的方式来判定 是否 Pod 达到内存驱逐阈值。 @@ -1328,7 +1326,7 @@ Burst to use while talking with kubernetes apiserver. (DEPRECATED: This paramete ---kube-api-content-type string     默认值:application/vnd.kubernetes.protobuf +--kube-api-content-type string     默认值:application/vnd.kubernetes.protobuf @@ -1347,9 +1345,11 @@ Content type of requests sent to apiserver. (default "application/vnd.kubernetes 与 apiserver 通信的每秒查询个数(QPS)。 +此值必须 >= 0。如果为 0, 则使用默认 QPS(5)。 +不包含事件和节点心跳 api,它们的速率限制是由一组不同的标志所控制。 已弃用:应在 --config 所给的配置文件中进行设置。 (进一步了解) @@ -1361,7 +1361,7 @@ QPS to use while talking with kubernetes apiserver. (DEPRECATED: This parameter kubernetes 系统预留的资源配置,以一组 资源名称=资源数量 格式表示。 (例如:cpu=200m,memory=500Mi,ephemeral-storage=1Gi,pid='100')。 @@ -1373,12 +1373,12 @@ kubernetes 系统预留的资源配置,以一组 资源名称=资源数 ---kube-reserved-cgroup string     默认值:"" +--kube-reserved-cgroup string     默认值:"" 给出某个顶层 cgroup 绝对名称,该 cgroup 用于管理通过标志 --kube-reserved 为 kubernetes 组件所预留的计算资源。例如:"/kube-reserved"。 @@ -1393,7 +1393,7 @@ Absolute name of the top level cgroup that is used to manage kubernetes componen kubeconfig 配置文件的路径,指定如何连接到 API 服务器。 提供 --kubeconfig 将启用 API 服务器模式,而省略 --kubeconfig 将启用独立模式。 @@ -1427,15 +1427,16 @@ Optional absolute name of cgroups to create and run the Kubelet in. (DEPRECATED: ---log-backtrace-at traceLocation     默认值::0 +--log-backtrace-at traceLocation     默认值::0 形式为 <file>:<N>。 当日志逻辑执行到命中 <file> 的第 <N> 行时,转储调用堆栈。 +(已弃用:将在未来的版本中删除,进一步了解) @@ -1445,9 +1446,10 @@ When logging hits line `:`, emit a stack trace. 如果此值为非空,则在所指定的目录中写入日志文件。 +(已弃用:将在未来的版本中删除,进一步了解) @@ -1469,14 +1471,15 @@ If non-empty, use this log file 设置日志文件的最大值。单位为兆字节(M)。如果值为 0,则表示文件大小无限制。 +(已弃用:将在未来的版本中删除,进一步了解) ---log-flush-frequency duration     默认值:5s +--log-flush-frequency duration     默认值:5s @@ -1488,12 +1491,42 @@ Maximum number of seconds between log flushes ---logging-format string     默认值:"text" +--log-json-info-buffer-size string     默认值:'0' +[实验性特性]在具有拆分输出流的 JSON 格式中,可以将信息消息缓冲一段时间以提高性能。 +零字节的默认值禁用缓冲。大小可以指定为字节数(512)、1000 的倍数(1K)、1024 的倍数(2Ki) 或这些(3M、4G、5Mi、6Gi)的幂。 +已弃用:应在 --config 所给的配置文件中进行设置。 +(进一步了解) + + + + +--log-json-split-stream + + + + +[实验性特性]以 JSON 格式,将错误消息写入 stderr,将 info 消息写入 stdout。 +默认是将单个流写入标准输出。 +已弃用:应在 --config 所给的配置文件中进行设置。 +(进一步了解) + + + + +--logging-format string     默认值:"text" + + + + 设置日志文件格式。可以设置的格式有:"text""json"。 非默认的格式不会使用以下标志的配置:--add-dir-header, --alsologtostderr, @@ -1507,24 +1540,26 @@ Sets the log format. Permitted formats: `text`, `json`.\nNon-default formats don ---logtostderr     默认值:true +--logtostderr     默认值:true 日志输出到 stderr 而不是文件。 +(已弃用:将会在未来的版本删除, +进一步了解) ---make-iptables-util-chains     默认值:true +--make-iptables-util-chains     默认值:true 设置为 true 表示 kubelet 将确保 iptables 规则在主机上存在。 已弃用:应在 --config 所给的配置文件中进行设置。 @@ -1538,7 +1573,7 @@ If true, kubelet will ensure `iptables` utility rules are present on host. (DEPR 用于访问要运行的其他 Pod 规范的 URL。 已弃用:应在 --config 所给的配置文件中进行设置。 @@ -1552,7 +1587,7 @@ URL for accessing additional Pod specifications to run (DEPRECATED: This paramet 取值为由 HTTP 头部组成的逗号分隔列表,在访问 --manifest-url 所给出的 URL 时使用。 名称相同的多个头部将按所列的顺序添加。该参数可以多次使用。例如: @@ -1562,7 +1597,7 @@ Comma-separated list of HTTP headers to use when accessing the URL provided to ` ---master-service-namespace string     默认值:default +--master-service-namespace string     默认值:default @@ -1580,7 +1615,7 @@ kubelet 向 Pod 注入 Kubernetes 主控服务信息时使用的命名空间。 kubelet 进程可以打开的最大文件数量。 已弃用:应在 --config 所给的配置文件中进行设置。 @@ -1594,7 +1629,7 @@ kubelet 进程可以打开的最大文件数量。 此 kubelet 能运行的 Pod 最大数量。 已弃用:应在 --config 所给的配置文件中进行设置。 @@ -1608,7 +1643,7 @@ Number of Pods that can run on this Kubelet. (DEPRECATED: This parameter should 设置全局可保留的已停止容器实例个数上限。 每个实例会占用一些磁盘空间。要禁用,请设置为负数。 @@ -1631,6 +1666,20 @@ Maximum number of old instances to retain per container. Each container takes up + +--memory-manager-policy string     默认值:None + + + + +内存管理器策略使用。可选值:'None', 'Static'。 +已弃用:应在 --config 所给的配置文件中进行设置。 +(进一步了解) + + + --minimum-container-ttl-duration duration @@ -1647,12 +1696,12 @@ Minimum age for a finished container before it is garbage collected. Examples: ---minimum-image-ttl-duration duration     默认值:2m0s +--minimum-image-ttl-duration duration     默认值:2m0s 不再使用的镜像在被垃圾回收清理之前的最少存活时间。 例如:300ms10s 或者 2h45m。 @@ -1680,11 +1729,12 @@ Minimum age for an unused image before it is garbage collected. Examples: `300m <警告:alpha 特性> 传递给网络插件的 MTU 值,将覆盖默认值。 设置为 0 则使用默认的 MTU 1460。仅当容器运行环境设置为 docker 时, 此特定于 docker 的参数才有效。 +(已弃用:将会随着 dockershim 一起删除。) @@ -1694,9 +1744,11 @@ Minimum age for an unused image before it is garbage collected. Examples: `300m -节点的 IP 地址。如果设置,kubelet 将使用该 IP 地址作为节点的 IP 地址。 +节点的 IP 地址(或逗号分隔的双栈 IP 地址)。 +如果未设置,kubelet 将使用节点的默认 IPv4 地址(如果有)或默认 IPv6 地址(如果它没有 IPv4 地址)。 +你可以传值 '::' 使其偏向于默认的 IPv6 地址而不是默认的 IPv4 地址。 @@ -1706,7 +1758,7 @@ IP address of the node. If set, kubelet will use this IP address for the node <警告:alpha 特性> kubelet 在集群中注册本节点时设置的标签。标签以 key=value 的格式表示,多个标签以逗号分隔。名字空间 kubernetes.io @@ -1727,7 +1779,7 @@ IP address of the node. If set, kubelet will use this IP address for the node node.status.images 中可以报告的最大镜像数量。如果指定为 -1,则不设上限。 已弃用:应在 --config 所给的配置文件中进行设置。 @@ -1736,12 +1788,12 @@ The maximum number of images to report in `node.status.images`. If `-1` is speci ---node-status-update-frequency duration     默认值:10s +--node-status-update-frequency duration     默认值:10s 指定 kubelet 向主控节点汇报节点状态的时间间隔。注意:更改此常量时请务必谨慎, 它必须与节点控制器中的 nodeMonitorGracePeriod 一起使用。 @@ -1751,7 +1803,7 @@ Specifies how often kubelet posts node status to master. Note: be cautious when ---non-masquerade-cidr string     默认值:10.0.0.0/8 +--non-masquerade-cidr string     默认值:10.0.0.0/8 @@ -1771,10 +1823,12 @@ kubelet 向该 IP 段之外的 IP 地址发送的流量将使用 IP 伪装技术 如果设置此标志为 true,则仅将日志写入其原来的严重性级别中, 而不是同时将其写入更低严重性级别中。 +已弃用:将在未来的版本中删除, +(进一步了解) @@ -1798,7 +1852,7 @@ kubelet 进程的 oom-score-adj 参数值。有效范围为 [-1000,1000] 用于给 Pod 分配 IP 地址的 CIDR 地址池,仅在独立运行模式下使用。 在集群模式下,CIDR 设置是从主服务器获取的。对于 IPv6,分配的 IP 的最大数量为 65536。 @@ -1808,12 +1862,12 @@ The CIDR to use for pod IP addresses, only used in standalone mode. In cluster m ---pod-infra-container-image string     默认值:k8s.gcr.io/pause:3.2 +--pod-infra-container-image string     默认值:k8s.gcr.io/pause:3.2 所指定的镜像不会被镜像垃圾收集器删除。 当容器运行环境设置为 docker 时,各个 Pod 中的所有容器都会 @@ -1828,7 +1882,7 @@ The CIDR to use for pod IP addresses, only used in standalone mode. In cluster m 设置包含要运行的静态 Pod 的文件的路径,或单个静态 Pod 文件的路径。以点(.) 开头的文件将被忽略。 @@ -1843,7 +1897,7 @@ Path to the directory containing static pod files to run, or the path to a singl 设置每个 Pod 中的最大进程数目。如果为 -1,则 kubelet 使用节点可分配的 PID 容量作为默认值。 已弃用:应在 --config 所给的配置文件中进行设置。 @@ -1857,7 +1911,7 @@ Set the maximum number of processes per pod. If `-1`, the kubelet defaults to t kubelet 在每个处理器核上可运行的 Pod 数量。此 kubelet 上的 Pod 总数不能超过 --max-pods 标志值。因此,如果此计算结果导致在 kubelet @@ -1902,7 +1956,7 @@ kubelet 默认值不同时,kubelet 都会出错。 设置主机数据库(即,云驱动)中用来标识节点的唯一标识。 已弃用:应在 --config 所给的配置文件中进行设置。 @@ -1916,7 +1970,7 @@ Unique identifier for identifying the node in a machine database, i.e cloud prov <警告:alpha 特性> 设置在指定的 QoS 级别预留的 Pod 资源请求,以一组 "资源名称=百分比" 的形式进行设置,例如 memory=50%。 @@ -1932,7 +1986,7 @@ Unique identifier for identifying the node in a machine database, i.e cloud prov kubelet 可以在没有身份验证/鉴权的情况下提供只读服务的端口(设置为 0 表示禁用)。 已弃用:应在 --config 所给的配置文件中进行设置。 @@ -1954,43 +2008,27 @@ If true, when panics occur crash. Intended for testing. (DEPRECATED: will be rem ---redirect-container-streaming +--register-node     默认值:true -启用容器流数据重定向。如果设置为 false,则 kubelet 将在 apiserver 和容器运行时 -之间转发容器流数据;如果设置为 true,则 kubelet 将返回指向 apiserver 的 HTTP 重定向信息, -而 apiserver 将直接访问容器运行时。代理方法更安全,但会带来一些开销。 -重定向方法性能更高,但安全性较低,因为 apiserver 和容器运行时之间的连接可能未通过身份验证。
-已弃用:容器流数据重定向会在 v1.20 中从 kubelet 中移除,此标志会在 v1.22 -中移除。 -相关信息可参见改进说明。 +向 API 服务器注册节点,如果未提供 --kubeconfig,此标志无关紧要, +因为 Kubelet 没有 API 服务器可注册。 +已弃用:应在 --config 所给的配置文件中进行设置。 +(进一步了解) ---register-node     默认值:true +--register-schedulable     默认值:true -将本节点注册到 API 服务器。如果未提供 --kubeconfig 标志设置, -则此参数无关紧要,因为 kubelet 将没有要注册的 API 服务器。 - - - - ---register-schedulable     默认值:true - - - - 注册本节点为可调度的节点。当 --register-node标志为 false 时此设置无效。 已弃用:此参数将在未来的版本中删除。 @@ -2003,7 +2041,7 @@ Register the node as schedulable. Won't have any effect if `--register-node` is 设置本节点的污点标记,格式为 <key>=<value>:<effect>, 以逗号分隔。当 --register-node 为 false 时此标志无效。 @@ -2017,7 +2055,7 @@ Register the node with the given list of taints (comma separated `=: 设置突发性镜像拉取的个数上限,在不超过 --registration-qps 设置值的前提下 暂时允许此参数所给的镜像拉取个数。仅在 --registry-qps 大于 0 时使用。 @@ -2027,12 +2065,12 @@ Maximum size of a bursty pulls, temporarily allows pulls to burst to this number ---registry-qps int32     Default: 5 +--registry-qps int32     默认值:5 如此值大于 0,可用来限制镜像仓库的 QPS 上限。设置为 0,表示不受限制。 已弃用:应在 --config 所给的配置文件中进行设置。 @@ -2046,7 +2084,7 @@ If > 0, limit registry pull QPS to this value. If `0`, unlimited. (DEPRECATE 用逗号分隔的一组 CPU 或 CPU 范围列表,给出为系统和 Kubernetes 保留使用的 CPU。 此列表所给出的设置优先于通过 --system-reserved 和 @@ -2057,12 +2095,28 @@ A comma-separated list of CPUs or CPU ranges that are reserved for system and ku ---resolv-conf string     默认值:/etc/resolv.conf +--reserved-memory string +以逗号分隔的 NUMA 节点内存预留列表。(例如 --reserved-memory 0:memory=1Gi,hugepages-1M=2Gi --reserved-memory 1:memory=2Gi)。 +每种内存类型的总和应该等于--kube-reserved--system-reserved--eviction-threshold。 +了解更多详细信息。 +已弃用:应在 --config 所给的配置文件中进行设置。 +(进一步了解) + + + + +--resolv-conf string     默认值:/etc/resolv.conf + + + + 名字解析服务的配置文件名,用作容器 DNS 解析配置的基础。 已弃用:应在 --config 所给的配置文件中进行设置。 @@ -2071,7 +2125,7 @@ Resolver configuration file used as the basis for the container DNS resolution c ---root-dir string     默认值:/var/lib/kubelet +--root-dir string     默认值:/var/lib/kubelet @@ -2088,7 +2142,7 @@ Directory path for managing kubelet files (volume mounts, etc). <警告:Beta 特性> 设置当客户端证书即将过期时 kubelet 自动从 kube-apiserver 请求新的证书进行轮换。 @@ -2103,7 +2157,7 @@ Directory path for managing kubelet files (volume mounts, etc). 当 kubelet 的服务证书即将过期时自动从 kube-apiserver 请求新的证书进行轮换。 要求启用 RotateKubeletServerCertificate 特性门控,以及对提交的 @@ -2119,7 +2173,7 @@ Auto-request and rotate the kubelet serving certificates by requesting new certi 设置为 true 表示从本地清单或远程 URL 创建完 Pod 后立即退出 kubelet 进程。 与 --enable-server 标志互斥。 @@ -2141,12 +2195,12 @@ Optional absolute name of cgroups to create and run the runtime in. ---runtime-request-timeout duration     默认值:2m0s +--runtime-request-timeout duration     默认值:2m0s 设置除了长时间运行的请求(包括 pulllogsexecattach 等操作)之外的其他运行时请求的超时时间。 @@ -2157,12 +2211,12 @@ Timeout of all runtime requests except long running request - `pull`, `logs`, `e ---seccomp-profile-root string     默认值:/var/lib/kubelet/seccomp +--seccomp-profile-root string     默认值:/var/lib/kubelet/seccomp <警告:alpha 特性> seccomp 配置文件目录。 已弃用:将在 1.23 版本中移除,以使用 <root-dir>/seccomp 目录。 @@ -2170,12 +2224,12 @@ Timeout of all runtime requests except long running request - `pull`, `logs`, `e ---serialize-image-pulls     默认值:true +--serialize-image-pulls     默认值:true 逐一拉取镜像。建议 *不要* 在 docker 守护进程版本低于 1.9 或启用了 Aufs 存储后端的节点上 更改默认值。 @@ -2190,9 +2244,10 @@ Pull images one at a time. We recommend *not* changing the default value on node 设置为 true 时在日志消息中去掉标头前缀。 +(已弃用:将在未来的版本中删除,进一步了解) @@ -2202,9 +2257,10 @@ If true, avoid header prefixes in the log messages 设置为 true,打开日志文件时去掉标头。 +(已弃用:将在未来的版本中删除,进一步了解) @@ -2214,34 +2270,36 @@ If true, avoid headers when opening log files 设置严重程度达到或超过此阈值的日志输出到标准错误输出。 +(已弃用:将在未来的版本中删除,进一步了解) ---streaming-connection-idle-timeout duration     默认值:4h0m0s +--streaming-connection-idle-timeout duration     默认值:4h0m0s 设置流连接在自动关闭之前可以空闲的最长时间。0 表示没有超时限制。 例如:5m。 +注意:与 kubelet 服务器的所有连接最长持续时间为 4 小时。 已弃用:应在 --config 所给的配置文件中进行设置。 (进一步了解) ---sync-frequency duration     默认值:1m0s +--sync-frequency duration     默认值:1m0s 在运行中的容器与其配置之间执行同步操作的最长时间间隔。 已弃用:应在 --config 所给的配置文件中进行设置。 @@ -2255,7 +2313,7 @@ Max period between synchronizing running containers and config. (DEPRECATED: Thi 此标志值为一个 cgroup 的绝对名称,用于所有尚未放置在根目录下某 cgroup 内的非内核进程。 空值表示不指定 cgroup。回滚该参数需要重启机器。 @@ -2270,7 +2328,7 @@ Optional absolute name of cgroups in which to place all non-kernel processes tha 系统预留的资源配置,以一组 资源名称=资源数量 的格式表示, (例如:cpu=200m,memory=500Mi,ephemeral-storage=1Gi,pid='100')。 @@ -2283,12 +2341,12 @@ A set of `=` (e.g. `cpu=200m,memory=500Mi,ephe ---system-reserved-cgroup string     默认值:"" +--system-reserved-cgroup string     默认值:"" 此标志给出一个顶层 cgroup 绝对名称,该 cgroup 用于管理非 kubernetes 组件, 这些组件的计算资源通过 --system-reserved 标志进行预留。 @@ -2304,7 +2362,7 @@ Absolute name of the top level cgroup that is used to manage non-kubernetes comp 包含 x509 证书的文件路径,用于 HTTPS 认证。 如果有中间证书,则中间证书要串接在在服务器证书之后。 @@ -2322,10 +2380,18 @@ kubelet 会为公开地址生成自签名证书和密钥,并将其保存到通 服务器端加密算法列表,以逗号分隔。如果不设置,则使用 Go 语言加密包的默认算法列表。
-可选加密算法包括:TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_ECDSA_WITH_RC4_128_SHA,TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_RSA_WITH_RC4_128_SHA,TLS_RSA_WITH_3DES_EDE_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_256_GCM_SHA384,TLS_RSA_WITH_RC4_128_SHA
+首选算法: +TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305, TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305, TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_256_GCM_SHA384
+不安全算法: +TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_RC4_128_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_RSA_WITH_RC4_128_SHA, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_RC4_128_SHA。 已弃用:应在 --config 所给的配置文件中进行设置。 (进一步了解) @@ -2337,7 +2403,7 @@ Comma-separated list of cipher suites for the server. If omitted, the default Go 设置支持的最小 TLS 版本号,可选的版本号包括:VersionTLS10VersionTLS11VersionTLS12VersionTLS13。 @@ -2352,7 +2418,7 @@ Minimum TLS version supported. Possible values: `VersionTLS10`, `VersionTLS11`, 包含与 --tls-cert-file 对应的 x509 私钥文件路径。 已弃用:应在 --config 所给的配置文件中进行设置。 @@ -2361,12 +2427,12 @@ File containing x509 private key matching `--tls-cert-file`. (DEPRECATED: This p ---topology-manager-policy string     默认值:none +--topology-manager-policy string     默认值:none 设置拓扑管理策略(Topology Manager policy)。可选值包括:nonebest-effortrestrictedsingle-numa-node。 @@ -2376,7 +2442,7 @@ Topology Manager policy to use. Possible values: `none`, `best-effort`, `restric ---topology-manager-scope string     默认值:container +--topology-manager-scope string     默认值:container @@ -2421,19 +2487,19 @@ Print version information and quit 以逗号分隔的 pattern=N 设置列表,用于文件过滤的日志记录 ---volume-plugin-dir string     默认值:/usr/libexec/kubernetes/kubelet-plugins/volume/exec/ +--volume-plugin-dir string     默认值:/usr/libexec/kubernetes/kubelet-plugins/volume/exec/ 用来搜索第三方存储卷插件的目录。 已弃用:应在 --config 所给的配置文件中进行设置。 @@ -2442,12 +2508,12 @@ The full path of the directory in which to search for additional third party vol ---volume-stats-agg-period duration     默认值:1m0s +--volume-stats-agg-period duration     默认值:1m0s 指定 kubelet 计算和缓存所有 Pod 和卷的磁盘用量总值的时间间隔。要禁用磁盘用量计算, 请设置为 0。