Skip to content

Commit ddde47e

Browse files
authored
Merge pull request #36281 from yanrongshi/zh-cn]Sync-kubelet-integration.md
[zh-cn]Sync 1.25 kubelet-integration.md
2 parents 3437533 + 339bab7 commit ddde47e

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

content/zh-cn/docs/setup/production-environment/tools/kubeadm/kubelet-integration.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ networking, or other host-specific parameters. The following list provides a few
139139
- To specify the container runtime you must set its endpoint with the
140140
`--container-runtime-endpoint=<path>` flag.
141141

142-
You can specify these flags by configuring an individual kubelet's configuration in your service manager,
143-
such as systemd.
142+
The recommended way of applying such instance-specific configuration is by using
143+
[`KubeletConfiguration` patches](/docs/setup/production-environment/tools/kubeadm/control-plane-flags#patches).
144144
-->
145145
- 由 kubelet 配置标志 `--resolv-conf` 指定的 DNS 解析文件的路径在操作系统之间可能有所不同,
146146
它取决于你是否使用 `systemd-resolved`。
@@ -154,29 +154,31 @@ such as systemd.
154154

155155
- 要指定容器运行时,你必须用 `--container-runtime-endpoint=<path>` 标志来指定端点。
156156

157-
你可以在服务管理器(例如 systemd)中设定某个 kubelet 的配置来指定这些参数
157+
应用此类特定于实例的配置的推荐方法是使用 [`KubeletConfiguration` 补丁](/zh-cn/docs/setup/production-environment/tools/kubeadm/control-plane-flags#patches)
158158

159159
<!--
160160
## Configure kubelets using kubeadm
161161

162-
It is possible to configure the kubelet that kubeadm will start if a custom `KubeletConfiguration`
162+
It is possible to configure the kubelet that kubeadm will start if a custom
163+
[`KubeletConfiguration`](/docs/reference/config-api/kubelet-config.v1beta1/)
163164
API object is passed with a configuration file like so `kubeadm ... --config some-config-file.yaml`.
164165

165166
By calling `kubeadm config print init-defaults --component-configs KubeletConfiguration` you can
166167
see all the default values for this structure.
167168

168-
Also have a look at the
169-
[reference for the KubeletConfiguration](/docs/reference/config-api/kubelet-config.v1beta1/)
170-
for more information on the individual fields.
169+
It is also possible to apply instance-specific patches over the base `KubeletConfiguration`.
170+
Have a look at [Customizing the kubelet](/docs/setup/production-environment/tools/kubeadm/control-plane-flags#customizing-the-kubelet)
171+
for more details.
171172
-->
172173
## 使用 kubeadm 配置 kubelet {#configure-kubelets-using-kubeadm}
173174

174-
如果自定义的 `KubeletConfiguration` API 对象使用像 `kubeadm ... --config some-config-file.yaml` 这样的配置文件进行传递,则可以配置 kubeadm 启动的 kubelet。
175+
如果自定义的 [`KubeletConfiguration`](/zh-cn/docs/reference/config-api/kubelet-config.v1beta1/) API 对象使用像 `kubeadm ... --config some-config-file.yaml` 这样的配置文件进行传递,则可以配置 kubeadm 启动的 kubelet。
175176

176177
通过调用 `kubeadm config print init-defaults --component-configs KubeletConfiguration`,
177178
你可以看到此结构中的所有默认值。
178179

179-
也可以阅读 [KubeletConfiguration 参考](/zh-cn/docs/reference/config-api/kubelet-config.v1beta1/)
180+
也可以在基础 `KubeletConfiguration` 上应用实例特定的补丁。
181+
阅读[自定义 kubelet](/zh-cn/docs/setup/production-environment/tools/kubeadm/control-plane-flags#customizing-the-kubelet)
180182
来获取有关各个字段的更多信息。
181183

182184
<!--

0 commit comments

Comments
 (0)