Skip to content

Commit a6c9255

Browse files
committed
Fix errors in kubelet reference
1 parent 2a025c2 commit a6c9255

File tree

1 file changed

+19
-24
lines changed
  • content/zh-cn/docs/reference/command-line-tools-reference

1 file changed

+19
-24
lines changed

content/zh-cn/docs/reference/command-line-tools-reference/kubelet.md

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ The kubelet is the primary "node agent" that runs on each node. It can
1212
register the node with the apiserver using one of: the hostname; a flag to
1313
override the hostname; or specific logic for a cloud provider.
1414
-->
15-
kubelet 是在每个 Node 节点上运行的主要 “节点代理”。它可以使用以下之一向 apiserver 注册:
16-
主机名(hostname);覆盖主机名的参数;某云驱动的特定逻辑。
15+
kubelet 是在每个节点上运行的主要 “节点代理”。它可以使用以下方式之一向 API 服务器注册:
16+
- 主机名(hostname);
17+
- 覆盖主机名的参数;
18+
- 特定于某云驱动的逻辑。
1719

1820
<!--
1921
The kubelet works in terms of a PodSpec. A PodSpec is a YAML or JSON object
@@ -31,7 +33,7 @@ kubelet 不管理不是由 Kubernetes 创建的容器。
3133
Other than from a PodSpec from the apiserver, there are two ways that a
3234
container manifest can be provided to the Kubelet.
3335
-->
34-
除了来自 apiserver 的 PodSpec 之外,还可以通过以下两种方式将容器清单(manifest)提供给 kubelet。
36+
除了来自 API 服务器的 PodSpec 之外,还可以通过以下两种方式将容器清单(manifest)提供给 kubelet。
3537

3638
<!--
3739
- File: Path passed as a flag on the command line. Files under this path will be
@@ -170,7 +172,6 @@ The duration to cache 'authorized' responses from the webhook authorizer. (DEPRE
170172
The duration to cache 'unauthorized' responses from the webhook authorizer. (DEPRECATED: This parameter should be set via the config file specified by the Kubelet's <code>--config</code> flag. See <a href="https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> for more information.)
171173
-->
172174
对 Webhook 认证组件所返回的 “Unauthorized(未授权)” 应答的缓存时间。
173-
<code>--config</code> 时,默认值为 <code>Webhook</code>。
174175
(已弃用:应在 <code>--config</code> 所给的配置文件中进行设置。
175176
请参阅 <a href="https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> 了解更多信息。)
176177
</td>
@@ -315,7 +316,6 @@ DNS 服务器的 IP 地址,以逗号分隔。此标志值用于 Pod 中设置
315316
时为容器提供 DNS 服务。<br/><B>注意:</B>:列表中出现的所有 DNS 服务器必须包含相同的记录组,
316317
否则集群中的名称解析可能无法正常工作。至于名称解析过程中会牵涉到哪些 DNS 服务器,
317318
这一点无法保证。
318-
<code>--config</code> 时,默认值为 <code>Webhook</code>。
319319
(已弃用:应在 <code>--config</code> 所给的配置文件中进行设置。
320320
请参阅 <a href="https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> 了解更多信息。)
321321
</td>
@@ -331,7 +331,6 @@ Domain for this cluster. If set, kubelet will configure all containers to search
331331
-->
332332
集群的域名。如果设置了此值,kubelet 除了将主机的搜索域配置到所有容器之外,还会为其
333333
配置所搜这里指定的域名。
334-
<code>--config</code> 时,默认值为 <code>Webhook</code>。
335334
(已弃用:应在 <code>--config</code> 所给的配置文件中进行设置。
336335
请参阅 <a href="https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> 了解更多信息。)
337336
</td>
@@ -359,7 +358,7 @@ kubelet 将从此标志所指的文件中加载其初始配置。此路径可以
359358
<!--
360359
&lt;Warning: Beta feature&gt; Set the maximum number of container log files that can be present for a container. The number must be &gt;= 2. This flag can only be used with <code>--container-runtime=remote</code>. (DEPRECATED: This parameter should be set via the config file specified by the Kubelet's <code>--config</code> flag. See <a href="https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> for more information.)
361360
-->
362-
警告:Beta 版功能;设置容器的日志文件个数上限。此值必须大于等于 2。
361+
警告:Beta 特性】设置容器的日志文件个数上限。此值必须大于等于 2。
363362
此标志只能与 <code>--container-runtime=remote</code> 标志一起使用。
364363
(已弃用:应在 <code>--config</code> 所给的配置文件中进行设置。
365364
请参阅 <a href="https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> 了解更多信息。)
@@ -374,7 +373,7 @@ kubelet 将从此标志所指的文件中加载其初始配置。此路径可以
374373
<!--
375374
&lt;Warning: Beta feature&gt; Set the maximum size (e.g. <code>10Mi</code>) of container log file before it is rotated. This flag can only be used with <code>--container-runtime=remote</code>. (DEPRECATED: This parameter should be set via the config file specified by the Kubelet's <code>--config</code> flag. See <a href="https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> for more information.)
376375
-->
377-
警告:Beta 版功能;设置容器日志文件在轮换生成新文件时之前的最大值(例如,<code>10Mi</code>)。
376+
警告:Beta 特性】设置容器日志文件在轮换生成新文件时之前的最大值(例如,<code>10Mi</code>)。
378377
此标志只能与 <code>--container-runtime=remote</code> 标志一起使用。
379378
(已弃用:应在 <code>--config</code> 所给的配置文件中进行设置。
380379
请参阅 <a href="https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> 了解更多信息。)
@@ -490,7 +489,7 @@ A set of key=value CPU Manager policy options to use, to fine tune their behavio
490489
<!--
491490
&lt;Warning: Alpha feature&gt; CPU Manager reconciliation period. Examples: <code>10s</code>, or <code>1m</code>. If not supplied, defaults to node status update frequency. (DEPRECATED: This parameter should be set via the config file specified by the Kubelet's <code>--config</code> flag. See <a href="https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> for more information.)
492491
-->
493-
&lt;警告:Alpha 特性&gt; 设置 CPU 管理器的调和时间。例如:<code>10s</code> 或者 <code>1m</code>。
492+
警告:Alpha 特性设置 CPU 管理器的调和时间。例如:<code>10s</code> 或者 <code>1m</code>。
494493
如果未设置,默认使用节点状态更新频率。
495494
(已弃用:应在 <code>--config</code> 所给的配置文件中进行设置。
496495
请参阅 <a href="https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> 了解更多信息。)
@@ -700,7 +699,7 @@ When set to <code>true</code>, hard eviction thresholds will be ignored while ca
700699
设置为 <code>true</code> 表示在计算节点可分配资源数量时忽略硬性逐出阈值设置。
701700
参考<a href="https://kubernetes.io/docs/tasks/administer-cluster/reserve-compute-resources/">
702701
相关文档</a>。
703-
已启用:将在 1.24 或更高版本中移除。
702+
已弃用:将在 1.24 或更高版本中移除。
704703
</td>
705704
</tr>
706705

@@ -1182,15 +1181,15 @@ If enabled, the kubelet will integrate with the kernel memcg notification to det
11821181
</tr>
11831182

11841183
<tr>
1185-
<td colspan="2">--kube-api-burst int32&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: 10-->默认值:10</td>
1184+
<td colspan="2">--kube-api-burst int32&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: 10-->默认值:100</td>
11861185
</tr>
11871186
<tr>
11881187
<td></td><td style="line-height: 130%; word-wrap: break-word;">
11891188
<!--
11901189
Burst to use while talking with kubernetes API server. The number must be >= 0. If 0 will use default burst (10). (DEPRECATED: This parameter should be set via the config file specified by the Kubelet's <code>--config</code> flag. See <a href="https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> for more information.)
11911190
-->
11921191
每秒发送到 API 服务器 的突发请求数量上限。
1193-
该数字必须大于或等于 0。如果为 0,则使用默认的突发值(10)。
1192+
该数字必须大于或等于 0。如果为 0,则使用默认的突发值(100)。
11941193
(已弃用:应在 <code>--config</code> 所给的配置文件中进行设置。
11951194
请参阅 <a href="https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> 了解更多信息。)
11961195
</td>
@@ -1211,16 +1210,16 @@ Content type of requests sent to apiserver. (default "application/vnd.kubernetes
12111210
</tr>
12121211

12131212
<tr>
1214-
<td colspan="2">--kube-api-qps int32&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: 5-->默认值:5</td>
1213+
<td colspan="2">--kube-api-qps int32&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: 5-->默认值:50</td>
12151214
</tr>
12161215
<tr>
12171216
<td></td><td style="line-height: 130%; word-wrap: break-word;">
12181217
<!--
12191218
QPS to use while talking with kubernetes API server. The number must be &gt;= 0. If 0 will use default QPS (5). Doesn't cover events and node heartbeat apis which rate limiting is controlled by a different set of flags. (DEPRECATED: This parameter should be set via the config file specified by the Kubelet's <code>--config</code> flag. See <a href="https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> for more information.)
12201219
-->
12211220
与 apiserver 通信的每秒查询个数(QPS)。
1222-
此值必须 &gt;= 0。如果为 0,则使用默认 QPS(5)。
1223-
不包含事件和节点心跳 api,它们的速率限制是由一组不同的标志所控制。
1221+
此值必须 &gt;= 0。如果为 0,则使用默认 QPS(50)。
1222+
不包含事件和节点心跳 API,它们的速率限制是由一组不同的标志所控制。
12241223
(已弃用:应在 <code>--config</code> 所给的配置文件中进行设置。
12251224
请参阅 <a href="https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> 了解更多信息。)
12261225
</td>
@@ -1308,7 +1307,7 @@ If true, local ephemeral storage isolation is enabled. Otherwise, local storage
13081307
<!--
13091308
&lt;Warning: Alpha feature&gt; The path to file for kubelet to use as a lock file.
13101309
-->
1311-
&lt;警告:Alpha 特性&gt; kubelet 用作锁文件的文件路径。
1310+
警告:Alpha 特性kubelet 用作锁文件的文件路径。
13121311
</td>
13131312
</tr>
13141313

@@ -1359,10 +1358,6 @@ Maximum number of seconds between log flushes
13591358
<tr>
13601359
<td colspan="2">--logging-format string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: <code>text</code>-->默认值:<code>"text"</code></td>
13611360
</tr>
1362-
1363-
<tr>
1364-
<td colspan="2">--logtostderr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: <code>true</code>-->默认值:<code>true</code></td>
1365-
</tr>
13661361
<tr>
13671362
<td></td><td style="line-height: 130%; word-wrap: break-word;">
13681363
<!--
@@ -1554,7 +1549,7 @@ IP address (or comma-separated dual-stack IP addresses) of the node. If unset, k
15541549
<!--
15551550
&lt;Warning: Alpha feature&gt;Labels to add when registering the node in the cluster. Labels must be <code>key=value pairs</code> separated by <code>','</code>. Labels in the <code>'kubernetes.io'</code> namespace must begin with an allowed prefix (<code>'kubelet.kubernetes.io'</code>, <code>'node.kubernetes.io'</code>) or be in the specifically allowed set (<code>'beta.kubernetes.io/arch'</code>, <code>'beta.kubernetes.io/instance-type'</code>, <code>'beta.kubernetes.io/os'</code>, <code>'failure-domain.beta.kubernetes.io/region'</code>, <code>'failure-domain.beta.kubernetes.io/zone'</code>, <code>'kubernetes.io/arch'</code>, <code>'kubernetes.io/hostname'</code>, <code>'kubernetes.io/os'</code>, <code>'node.kubernetes.io/instance-type'</code>, <code>'topology.kubernetes.io/region'</code>, <code>'topology.kubernetes.io/zone'</code>))
15561551
-->
1557-
&lt;警告:Alpha 特性&gt; kubelet 在集群中注册本节点时设置的标签。标签以
1552+
警告:Alpha 特性kubelet 在集群中注册本节点时设置的标签。标签以
15581553
<code>key=value</code> 的格式表示,多个标签以逗号分隔。名字空间 <code>kubernetes.io</code>
15591554
中的标签必须以 <code>kubelet.kubernetes.io</code> 或 <code>node.kubernetes.io</code> 为前缀,
15601555
或者在以下明确允许范围内:
@@ -1740,7 +1735,7 @@ Unique identifier for identifying the node in a machine database, i.e cloud prov
17401735
<!--
17411736
&lt;Warning: Alpha feature&gt; A set of <code>&lt;resource name&gt;=&lt;percentage&gt;</code> (e.g. <code>memory=50%</code>) pairs that describe how pod resource requests are reserved at the QoS level. Currently only <code>memory</code> is supported. Requires the <code>QOSReserved</code> feature gate to be enabled. (DEPRECATED: This parameter should be set via the config file specified by the Kubelet's <code>--config</code> flag. See <a href="https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> for more information.)
17421737
-->
1743-
&lt;警告:Alpha 特性&gt; 设置在指定的 QoS 级别预留的 Pod 资源请求,以一组
1738+
警告:Alpha 特性设置在指定的 QoS 级别预留的 Pod 资源请求,以一组
17441739
<code>"资源名称=百分比"</code> 的形式进行设置,例如 <code>memory=50%</code>。
17451740
当前仅支持内存(memory)。要求启用 <code>QOSReserved</code> 特性门控。
17461741
(已弃用:应在 <code>--config</code> 所给的配置文件中进行设置。
@@ -1915,7 +1910,7 @@ Auto rotate the kubelet client certificates by requesting new certificates from
19151910
<!--
19161911
&lt;Warning: Beta feature&gt; Auto-request and rotate the kubelet serving certificates by requesting new certificates from the <code>kube-apiserver</code> when the certificate expiration approaches. Requires the <code>RotateKubeletServerCertificate</code> feature gate to be enabled, and approval of the submitted <code>CertificateSigningRequest</code> objects. (DEPRECATED: This parameter should be set via the config file specified by the Kubelet's <code>--config</code> flag. See <a href="https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> for more information.)
19171912
-->
1918-
&lt;警告:Beta 特性&gt; 当 kubelet 的服务证书即将过期时自动从 kube-apiserver 请求新的证书进行轮换。
1913+
警告:Beta 特性当 kubelet 的服务证书即将过期时自动从 kube-apiserver 请求新的证书进行轮换。
19191914
要求启用 <code>RotateKubeletServerCertificate</code> 特性门控,以及对提交的
19201915
<code>CertificateSigningRequest</code> 对象进行批复(Approve)操作。
19211916
(已弃用:应在 <code>--config</code> 所给的配置文件中进行设置。
@@ -1974,7 +1969,7 @@ Timeout of all runtime requests except long running request - <code>pull</code>,
19741969
<!--
19751970
&lt;Warning: Beta feature&gt; Enable the use of <code>RuntimeDefault</code> as the default seccomp profile for all workloads. The <code>SeccompDefault</code> feature gate must be enabled to allow this flag, which is disabled by default.
19761971
-->
1977-
&lt;警告:Beta 特性&gt; 启用 <code>RuntimeDefault</code> 作为所有工作负载的默认 seccomp 配置文件。<code>SeccompDefault</code> 特性门控必须启用以允许此标志,默认情况下禁用。
1972+
警告:Beta 特性启用 <code>RuntimeDefault</code> 作为所有工作负载的默认 seccomp 配置文件。<code>SeccompDefault</code> 特性门控必须启用以允许此标志,默认情况下禁用。
19781973
</td>
19791974
</tr>
19801975

0 commit comments

Comments
 (0)