Skip to content

Commit c64fc03

Browse files
authored
Merge pull request #38672 from windsonsea/configf
[zh] sync kubelet-config-file.md
2 parents d6f0cb2 + 0cff779 commit c64fc03

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

content/zh-cn/docs/tasks/administer-cluster/kubelet-config-file.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ is defined by the
3434
[`KubeletConfiguration`](/docs/reference/config-api/kubelet-config.v1beta1/)
3535
struct.
3636
-->
37-
## 创建配置文件
37+
## 创建配置文件 {#create-config-file}
3838

3939
[`KubeletConfiguration`](/zh-cn/docs/reference/config-api/kubelet-config.v1beta1/)
4040
结构体定义了可以通过文件配置的 Kubelet 配置子集,
@@ -86,21 +86,22 @@ the threshold values respectively.
8686
8787
<!--
8888
## Start a Kubelet process configured via the config file
89-
90-
If you use kubeadm to initialize your cluster, use the kubelet-config while creating your cluster with `kubeadmin init`.
91-
See [configuring kubelet using kubeadm](/docs/setup/production-environment/tools/kubeadm/kubelet-integration/) for details.
92-
93-
Start the Kubelet with the `--config` flag set to the path of the Kubelet's config file.
94-
The Kubelet will then load its config from this file.
9589
--->
96-
97-
## 启动通过配置文件配置的 Kubelet 进程
90+
## 启动通过配置文件配置的 Kubelet 进程 {#start-kubelet-via-config-file}
9891
9992
{{< note >}}
100-
如果你使用 kubeadm 初始化你的集群,在使用 `kubeadmin init` 创建你的集群的时候请使用 kubelet-config。
93+
<!--
94+
If you use kubeadm to initialize your cluster, use the kubelet-config while creating your cluster with `kubeadm init`.
95+
See [configuring kubelet using kubeadm](/docs/setup/production-environment/tools/kubeadm/kubelet-integration/) for details.
96+
-->
97+
如果你使用 kubeadm 初始化你的集群,在使用 `kubeadm init` 创建你的集群的时候请使用 kubelet-config。
10198
更多细节请阅读[使用 kubeadm 配置 kubelet](/zh-cn/docs/setup/production-environment/tools/kubeadm/kubelet-integration/)
10299
{{< /note >}}
103100

101+
<!--
102+
Start the Kubelet with the `--config` flag set to the path of the Kubelet's config file.
103+
The Kubelet will then load its config from this file.
104+
-->
104105
启动 Kubelet 需要将 `--config` 参数设置为 Kubelet 配置文件的路径。Kubelet 将从此文件加载其配置。
105106

106107
<!--
@@ -137,5 +138,5 @@ In the above example, this version is `kubelet.config.k8s.io/v1beta1`.
137138
[`KubeletConfiguration`](/docs/reference/config-api/kubelet-config.v1beta1/)
138139
reference.
139140
--->
140-
- 参阅 [`KubeletConfiguration`](/zh-cn/docs/reference/config-api/kubelet-config.v1beta1/)
141+
- 参阅 [`KubeletConfiguration`](/zh-cn/docs/reference/config-api/kubelet-config.v1beta1/)
141142
进一步学习 kubelet 的配置。

0 commit comments

Comments
 (0)