From 339bab788704a56d5e175b429aab496078211287 Mon Sep 17 00:00:00 2001 From: yanrongshi Date: Thu, 25 Aug 2022 22:38:15 +0800 Subject: [PATCH] Update kubelet-integration.md --- .../tools/kubeadm/kubelet-integration.md | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/content/zh-cn/docs/setup/production-environment/tools/kubeadm/kubelet-integration.md b/content/zh-cn/docs/setup/production-environment/tools/kubeadm/kubelet-integration.md index ef4a468b34..67b0bb6018 100644 --- a/content/zh-cn/docs/setup/production-environment/tools/kubeadm/kubelet-integration.md +++ b/content/zh-cn/docs/setup/production-environment/tools/kubeadm/kubelet-integration.md @@ -139,8 +139,8 @@ networking, or other host-specific parameters. The following list provides a few - To specify the container runtime you must set its endpoint with the `--container-runtime-endpoint=` flag. -You can specify these flags by configuring an individual kubelet's configuration in your service manager, -such as systemd. +The recommended way of applying such instance-specific configuration is by using +[`KubeletConfiguration` patches](/docs/setup/production-environment/tools/kubeadm/control-plane-flags#patches). --> - 由 kubelet 配置标志 `--resolv-conf` 指定的 DNS 解析文件的路径在操作系统之间可能有所不同, 它取决于你是否使用 `systemd-resolved`。 @@ -154,29 +154,31 @@ such as systemd. - 要指定容器运行时,你必须用 `--container-runtime-endpoint=` 标志来指定端点。 -你可以在服务管理器(例如 systemd)中设定某个 kubelet 的配置来指定这些参数。 +应用此类特定于实例的配置的推荐方法是使用 [`KubeletConfiguration` 补丁](/zh-cn/docs/setup/production-environment/tools/kubeadm/control-plane-flags#patches)。 ## 使用 kubeadm 配置 kubelet {#configure-kubelets-using-kubeadm} -如果自定义的 `KubeletConfiguration` API 对象使用像 `kubeadm ... --config some-config-file.yaml` 这样的配置文件进行传递,则可以配置 kubeadm 启动的 kubelet。 +如果自定义的 [`KubeletConfiguration`](/zh-cn/docs/reference/config-api/kubelet-config.v1beta1/) API 对象使用像 `kubeadm ... --config some-config-file.yaml` 这样的配置文件进行传递,则可以配置 kubeadm 启动的 kubelet。 通过调用 `kubeadm config print init-defaults --component-configs KubeletConfiguration`, 你可以看到此结构中的所有默认值。 -也可以阅读 [KubeletConfiguration 参考](/zh-cn/docs/reference/config-api/kubelet-config.v1beta1/) +也可以在基础 `KubeletConfiguration` 上应用实例特定的补丁。 +阅读[自定义 kubelet](/zh-cn/docs/setup/production-environment/tools/kubeadm/control-plane-flags#customizing-the-kubelet) 来获取有关各个字段的更多信息。