@@ -139,8 +139,8 @@ networking, or other host-specific parameters. The following list provides a few
139
139
- To specify the container runtime you must set its endpoint with the
140
140
` --container-runtime-endpoint=<path>` flag.
141
141
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) .
144
144
-->
145
145
- 由 kubelet 配置标志 `--resolv-conf` 指定的 DNS 解析文件的路径在操作系统之间可能有所不同,
146
146
它取决于你是否使用 `systemd-resolved`。
@@ -154,29 +154,31 @@ such as systemd.
154
154
155
155
- 要指定容器运行时,你必须用 `--container-runtime-endpoint=<path>` 标志来指定端点。
156
156
157
- 你可以在服务管理器(例如 systemd)中设定某个 kubelet 的配置来指定这些参数 。
157
+ 应用此类特定于实例的配置的推荐方法是使用 [`KubeletConfiguration` 补丁](/zh-cn/docs/setup/production-environment/tools/kubeadm/control-plane-flags#patches) 。
158
158
159
159
<!--
160
160
# # Configure kubelets using kubeadm
161
161
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/)
163
164
API object is passed with a configuration file like so `kubeadm ... --config some-config-file.yaml`.
164
165
165
166
By calling `kubeadm config print init-defaults --component-configs KubeletConfiguration` you can
166
167
see all the default values for this structure.
167
168
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 .
171
172
-->
172
173
# # 使用 kubeadm 配置 kubelet {#configure-kubelets-using-kubeadm}
173
174
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。
175
176
176
177
通过调用 `kubeadm config print init-defaults --component-configs KubeletConfiguration`,
177
178
你可以看到此结构中的所有默认值。
178
179
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)
180
182
来获取有关各个字段的更多信息。
181
183
182
184
<!--
0 commit comments