Skip to content

Commit 162d7bc

Browse files
authored
Merge pull request #30589 from fenggw-fnst/update-implementation-details
[zh] Update implementation-details.md
2 parents a05f047 + 180baaf commit 162d7bc

File tree

1 file changed

+0
-103
lines changed

1 file changed

+0
-103
lines changed

content/zh/docs/reference/setup-tools/kubeadm/implementation-details.md

Lines changed: 0 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -682,52 +682,6 @@ a local etcd instance running in a Pod with following attributes:
682682
['kubeadm init phase etcd local'](/zh/docs/reference/setup-tools/kubeadm/kubeadm-init-phase/#cmd-phase-etcd)
683683
命令单独为本地 etcd 生成静态 Pod 清单
684684

685-
<!--
686-
### Optional Dynamic Kubelet Configuration
687-
-->
688-
### 可选的动态 Kubelet 配置 {#optional-dynamic-kubelet-configuration}
689-
690-
<!--
691-
To use this functionality call `kubeadm alpha kubelet config enable-dynamic`. It writes the kubelet init configuration
692-
into `/var/lib/kubelet/config/init/kubelet` file.
693-
-->
694-
要使用这个功能,请执行 `kubeadm alpha kubelet config enable-dynamic`
695-
它将 kubelet 的初始化配置写入 `/var/lib/kubelet/config/init/kubelet` 文件。
696-
697-
<!--
698-
The init configuration is used for starting the kubelet on this specific node, providing an alternative for the kubelet drop-in file;
699-
such configuration will be replaced by the kubelet base configuration as described in following steps.
700-
See [set Kubelet parameters via a config file](/docs/tasks/administer-cluster/kubelet-config-file) for additional information.
701-
-->
702-
初始化配置用于在这个特定节点上启动 kubelet,从而为 kubelet 插件文件提供了
703-
一种替代方法。如以下步骤中所述,这种配置将由 kubelet 基本配置所替代。
704-
请参阅[通过配置文件设置 Kubelet 参数](/zh/docs/tasks/administer-cluster/kubelet-config-file)
705-
了解更多信息。
706-
707-
<!-- Please note that: -->
708-
请注意:
709-
710-
<!--
711-
1. To make dynamic kubelet configuration work, flag `--dynamic-config-dir=/var/lib/kubelet/config/dynamic` should be specified
712-
in `/etc/systemd/system/kubelet.service.d/10-kubeadm.conf`
713-
1. The kubelet configuration can be changed by passing a `KubeletConfiguration` object to `kubeadm init` or `kubeadm join` by using
714-
a configuration file `--config some-file.yaml`. The `KubeletConfiguration` object can be separated from other objects such
715-
as `InitConfiguration` using the `---` separator. For more details have a look at the `kubeadm config print-default` command.
716-
-->
717-
1. 要使动态 kubelet 配置生效,应在 `/etc/systemd/system/kubelet.service.d/10-kubeadm.conf`
718-
中指定 `--dynamic-config-dir=/var/lib/kubelet/config/dynamic` 标志。
719-
1. 通过使用配置文件 `--config some-file.yaml``KubeletConfiguration` 对象传递给
720-
`kubeadm init``kubeadm join` 来更改 kubelet 配置。
721-
可以使用 `---` 分隔符将 `KubeletConfiguration` 对象与其他对象(例如 `InitConfiguration`
722-
分开。更多的详细信息,请查看 `kubeadm config print-default` 命令。
723-
724-
<!--
725-
For more details about the `KubeletConfiguration` struct, take a look at the
726-
[`KubeletConfiguration` reference](/docs/reference/config-api/kubelet-config.v1beta1/).
727-
-->
728-
有关 `KubeletConfiguration` 结构的详细信息,可参阅
729-
[`KubeletConfiguration` 参考文档](/docs/reference/config-api/kubelet-config.v1beta1/)
730-
731685
<!--
732686
### Wait for the control plane to come up
733687
-->
@@ -750,30 +704,6 @@ After the control plane is up, kubeadm completes the tasks described in followin
750704
kubeadm 依靠 kubelet 拉取控制平面镜像并将其作为静态 Pod 正确运行。
751705
控制平面启动后,kubeadm 将完成以下段落中描述的任务。
752706

753-
<!--
754-
### (optional) Write base kubelet configuration
755-
-->
756-
### (可选)编写基本 kubelet 配置 {#write-base-kubelet-configuration}
757-
758-
{{< feature-state for_k8s_version="v1.11" state="beta" >}}
759-
760-
<!--
761-
If kubeadm is invoked with `--feature-gates=DynamicKubeletConfig`:
762-
-->
763-
如果带 `--feature-gates=DynamicKubeletConfig` 参数调用 kubeadm,则 kubeadm:
764-
765-
<!--
766-
1. Write the kubelet base configuration into the `kubelet-base-config-v1.9` ConfigMap in the `kube-system` namespace
767-
2. Creates RBAC rules for granting read access to that ConfigMap to all bootstrap tokens and all kubelet instances
768-
(that is `system:bootstrappers:kubeadm:default-node-token` and `system:nodes` groups)
769-
3. Enable the dynamic kubelet configuration feature for the initial control-plane node by pointing `Node.spec.configSource` to the newly-created ConfigMap
770-
-->
771-
1. 将 kubelet 基本配置写入 `kube-system` 名字空间的 `kubelet-base-config-v1.9` ConfigMap 中。
772-
2. 创建 RBAC 规则,以授予对所有引导令牌和所有 kubelet 实例对该 ConfigMap 的读取访问权限
773-
(即 `system:bootstrappers:kubeadm:default-node-token` 组和 `system:nodes` 组)
774-
3. 通过将 `Node.spec.configSource` 指向新创建的 ConfigMap,为初始控制平面节点启用动态
775-
kubelet 配置功能。
776-
777707
<!--
778708
### Save the kubeadm ClusterConfiguration in a ConfigMap for later reference
779709
-->
@@ -1229,36 +1159,3 @@ kubelet 加入集群,同时删除 `bootstrap-kubelet.conf`。
12291159
该成员在 `kubeadm init` 过程中被授予对 CSR API 的访问权
12301160
- 根据 `kubeadm init` 过程的配置,自动 CSR 审批由 csrapprover 控制器管理
12311161

1232-
<!--
1233-
### (optional) Write init kubelet configuration
1234-
-->
1235-
### (可选)写入初始的 kubelet 配置 {#write-init-kubelet-configuration}
1236-
1237-
{{< feature-state for_k8s_version="v1.11" state="beta" >}}
1238-
1239-
<!--
1240-
If kubeadm is invoked with `--feature-gates=DynamicKubeletConfig`:
1241-
-->
1242-
如果带 `--feature-gates=DynamicKubeletConfig` 参数调用 kubeadm,则 kubeadm:
1243-
1244-
<!--
1245-
1. Read the kubelet base configuration from the `kubelet-base-config-v1.x` ConfigMap in the `kube-system` namespace using the
1246-
Bootstrap Token credentials, and write it to disk as kubelet init configuration file `/var/lib/kubelet/config/init/kubelet`
1247-
2. As soon as kubelet starts with the Node's own credential (`/etc/kubernetes/kubelet.conf`), update current node configuration
1248-
specifying that the source for the node/kubelet configuration is the above ConfigMap.
1249-
-->
1250-
1. 使用引导令牌凭证从 `kube-system` 名字空间中 ConfigMap `kubelet-base-config-v1.x`
1251-
中读取 kubelet 基本配置,
1252-
并将其作为 kubelet 初始配置文件 `/var/lib/kubelet/config/init/kubelet` 写入磁盘。
1253-
2. 一旦 kubelet 开始使用节点自己的凭据(`/etc/kubernetes/kubelet.conf`),
1254-
就更新当前节点配置,指定该节点或 kubelet 配置来自上述 ConfigMap。
1255-
1256-
<!-- Please note that: -->
1257-
请注意:
1258-
1259-
<!--
1260-
1. To make dynamic kubelet configuration work, flag `--dynamic-config-dir=/var/lib/kubelet/config/dynamic` should be specified in `/etc/systemd/system/kubelet.service.d/10-kubeadm.conf`
1261-
-->
1262-
1. 要使动态 kubelet 配置生效,应在 `/etc/systemd/system/kubelet.service.d/10-kubeadm.conf`
1263-
中指定 `--dynamic-config-dir=/var/lib/kubelet/config/dynamic` 标志。
1264-

0 commit comments

Comments
 (0)