Skip to content

Commit 31ed54d

Browse files
author
helen
committed
see commit a375935
sync zh-cn
1 parent b4bce48 commit 31ed54d

File tree

1 file changed

+11
-18
lines changed
  • content/zh-cn/docs/reference/command-line-tools-reference

1 file changed

+11
-18
lines changed

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

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: kubelet
33
content_type: tool-reference
4-
weight: 28
4+
weight: 20
55
---
66

77
## {{% heading "synopsis" %}}
@@ -28,10 +28,10 @@ PodSpec 中描述的容器处于运行状态且运行状况良好。
2828
kubelet 不管理不是由 Kubernetes 创建的容器。
2929

3030
<!--
31-
Other than from a PodSpec from the apiserver, there are three ways that a
31+
Other than from a PodSpec from the apiserver, there are two ways that a
3232
container manifest can be provided to the Kubelet.
3333
-->
34-
除了来自 apiserver 的 PodSpec 之外,还可以通过以下三种方式将容器清单(manifest)提供给 kubelet。
34+
除了来自 apiserver 的 PodSpec 之外,还可以通过以下两种方式将容器清单(manifest)提供给 kubelet。
3535

3636
<!--
3737
- File: Path passed as a flag on the command line. Files under this path will be
@@ -48,13 +48,6 @@ container manifest can be provided to the Kubelet.
4848
- HTTP 端点(HTTP endpoint):利用命令行参数指定 HTTP 端点。
4949
此端点的监视周期默认为 20 秒,也可以使用参数进行配置。
5050

51-
<!--
52-
- HTTP server: The kubelet can also listen for HTTP and respond to a simple API
53-
(underspec'd currently) to submit a new manifest.
54-
-->
55-
- HTTP 服务器(HTTP server):kubelet 还可以侦听 HTTP 并响应简单的 API
56-
(目前没有完整规范)来提交新的清单。
57-
5851
```
5952
kubelet [flags]
6053
```
@@ -98,7 +91,7 @@ kubelet 用来提供服务的 IP 地址(设置为<code>0.0.0.0</code> 表示
9891

9992
<tr>
10093
<td colspan="2">--allowed-unsafe-sysctls strings</td>
101-
</tr>
94+
</tr>
10295
<tr>
10396
<td></td><td style="line-height: 130%; word-wrap: break-word;">
10497
<!--
@@ -399,7 +392,7 @@ Set the maximum number of container log files that can be present for a containe
399392
(已弃用:应在 <code>--config</code> 所给的配置文件中进行设置。
400393
请参阅 <a href="https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> 了解更多信息。)
401394
</td>
402-
</tr>
395+
</tr>
403396

404397
<tr>
405398
<td colspan="2">--container-log-max-size string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!-- Default: <code>10Mi</code>-->默认值:<code>10Mi</code></td>
@@ -511,8 +504,8 @@ CPU Manager policy to use. Possible values: 'none', 'static'. Default: 'none' (d
511504
<!--
512505
A set of key=value CPU Manager policy options to use, to fine tune their behaviour. If not supplied, keep the default behaviour. (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.)
513506
-->
514-
一组用于微调其行为的 key=value CPU 管理器策略选项。如果未提供,请保留默认行为。
515-
(已弃用:应在 <code>--config</code> 所给的配置文件中进行设置。
507+
一组用于微调其行为的 key=value CPU 管理器策略选项。如果未提供,请保留默认行为。
508+
(已弃用:应在 <code>--config</code> 所给的配置文件中进行设置。
516509
请参阅 <a href="https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> 了解更多信息。)
517510
</td>
518511
</tr>
@@ -1302,7 +1295,7 @@ Absolute name of the top level cgroup that is used to manage kubernetes componen
13021295
<tr>
13031296
<td></td><td style="line-height: 130%; word-wrap: break-word;">
13041297
<!--
1305-
Path to a kubeconfig file, specifying how to connect to the API server. Providing <code>--kubeconfig</code> enables API server mode, omitting <code>--kubeconfig</code> enables standalone mode.
1298+
Path to a kubeconfig file, specifying how to connect to the API server. Providing <code>--kubeconfig</code> enables API server mode, omitting <code>--kubeconfig</code> enables standalone mode.
13061299
-->
13071300
kubeconfig 配置文件的路径,指定如何连接到 API 服务器。
13081301
提供 <code>--kubeconfig</code> 将启用 API 服务器模式,而省略 <code>--kubeconfig</code> 将启用独立模式。
@@ -1364,7 +1357,7 @@ If non-empty, write log files in this directory. (DEPRECATED: will be removed in
13641357
</tr>
13651358

13661359
<tr>
1367-
<td colspan="2">--log-file string</td>
1360+
<td colspan="2">--log-file string</td>
13681361
</tr>
13691362
<tr>
13701363
<td></td><td style="line-height: 130%; word-wrap: break-word;">
@@ -1788,7 +1781,7 @@ Set the maximum number of processes per pod. If <code>-1</code>, the kubelet def
17881781
Number of Pods per core that can run on this kubelet. The total number of pods on this kubelet cannot exceed <code>--max-pods</code>, so <code>--max-pods</code> will be used if this calculation results in a larger number of pods allowed on the kubelet. A value of <code>0</code> disables this limit. (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.)
17891782
-->
17901783
kubelet 在每个处理器核上可运行的 Pod 数量。此 kubelet 上的 Pod 总数不能超过
1791-
<code>--max-pods</code> 标志值。因此,如果此计算结果导致在 kubelet
1784+
<code>--max-pods</code> 标志值。因此,如果此计算结果导致在 kubelet
17921785
上允许更多数量的 Pod,则使用 <code>--max-pods</code> 值。值为 0 表示不作限制。
17931786
(已弃用:应在 <code>--config</code> 所给的配置文件中进行设置。
17941787
请参阅 <a href="https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> 了解更多信息。)
@@ -2077,7 +2070,7 @@ Timeout of all runtime requests except long running request - <code>pull</code>,
20772070
</tr>
20782071
<tr>
20792072
<td></td><td style="line-height: 130%; word-wrap: break-word;">
2080-
<!--
2073+
<!--
20812074
&lt;Warning: Alpha 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.
20822075
-->
20832076
&lt;警告:alpha 特性&gt; 启用 <code>RuntimeDefault</code> 作为所有工作负载的默认 seccomp 配置文件。<code>SeccompDefault</code> 特性门控必须启用以允许此标志,默认情况下禁用。

0 commit comments

Comments
 (0)