Skip to content

Commit 8d4ba9e

Browse files
authored
Merge pull request #33897 from JarHMJ/kubeadm-24
[zh] sync v1.24 kubeadm-24
2 parents 0228c5d + 4c52949 commit 8d4ba9e

File tree

3 files changed

+229
-91
lines changed

3 files changed

+229
-91
lines changed

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

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -166,26 +166,16 @@ Kubeadm 在启动 init 之前执行一组预检,目的是验证先决条件并
166166
- Kubernetes system requirements:
167167
- if running on linux:
168168
- [error] if Kernel is older than the minimum required version
169-
- [error] if required cgroups subsystem aren't in set up
170-
- if using docker:
171-
- [warning/error] if Docker service does not exist, if it is disabled, if it is not active.
172-
- [error] if Docker endpoint does not exist or does not work
173-
- [warning] if docker version is not in the list of validated docker versions
174-
- If using other cri engine:
175-
- [error] if crictl socket does not answer
169+
- [error] if required cgroups subsystem aren't set up
170+
- [error] if the CRI endpoint does not answer
176171
-->
177172
- [警告] 如果要使用的 Kubernetes 版本(由 `--kubernetes-version` 标志指定)比 kubeadm CLI
178173
版本至少高一个小版本。
179174
- Kubernetes 系统要求:
180175
- 如果在 linux上运行:
181176
- [错误] 如果内核早于最低要求的版本
182177
- [错误] 如果未设置所需的 cgroups 子系统
183-
- 如果使用 docker:
184-
- [警告/错误] 如果 Docker 服务不存在、被禁用或未激活。
185-
- [错误] 如果 Docker 端点不存在或不起作用
186-
- [警告] 如果 docker 版本不在经过验证的 docker 版本列表中
187-
- 如果使用其他 cri 引擎:
188-
- [错误] 如果 crictl 套接字未应答
178+
- [错误] 如果 CRI 端点未应答
189179
<!--
190180
- [error] if user is not root
191181
- [error] if the machine hostname is not a valid DNS subdomain
@@ -745,18 +735,20 @@ As soon as the control plane is available, kubeadm executes following actions:
745735
一旦控制平面可用,kubeadm 将执行以下操作:
746736

747737
<!--
748-
- Labels the node as control-plane with `node-role.kubernetes.io/master=""`
749-
- Taints the node with `node-role.kubernetes.io/master:NoSchedule`
738+
- Labels the node as control-plane with `node-role.kubernetes.io/control-plane=""`
739+
- Taints the node with `node-role.kubernetes.io/master:NoSchedule` and `node-role.kubernetes.io/control-plane:NoSchedule`
750740
-->
751-
- 给节点打上 `node-role.kubernetes.io/master=""` 标签,标记其为控制平面
752-
- 给节点打上 `node-role.kubernetes.io/master:NoSchedule` 污点
741+
- 给节点打上 `node-role.kubernetes.io/control-plane=""` 标签,标记其为控制平面
742+
- 给节点打上 `node-role.kubernetes.io/master:NoSchedule` `node-role.kubernetes.io/control-plane:NoSchedule` 污点
753743

754744
<!-- Please note that: -->
755745
请注意:
756746

757747
<!--
748+
1. The `node-role.kubernetes.io/master` taint is deprecated and will be removed in kubeadm version 1.25
758749
1. Mark control-plane phase can be invoked individually with the [`kubeadm init phase mark-control-plane`](/docs/reference/setup-tools/kubeadm/kubeadm-init-phase/#cmd-phase-mark-control-plane) command
759750
-->
751+
1. `node-role.kubernetes.io/master` 污点是已废弃的,将会在 kubeadm 1.25 版本中移除
760752
1. 可以使用 [`kubeadm init phase mark-control-plane`](/zh/docs/reference/setup-tools/kubeadm/kubeadm-init-phase/#cmd-phase-mark-control-plane)
761753
命令单独触发控制平面标记
762754

@@ -1026,14 +1018,12 @@ cluster startup problems.
10261018

10271019
<!--
10281020
1. `kubeadm join` preflight checks are basically a subset `kubeadm init` preflight checks
1029-
1. Starting from 1.9, kubeadm provides better support for CRI-generic functionality; in that case, docker specific controls
1030-
are skipped or replaced by similar controls for crictl.
1021+
1. Starting from 1.24, kubeadm uses crictl to communicate to all known CRI endpoints.
10311022
1. Starting from 1.9, kubeadm provides support for joining nodes running on Windows; in that case, linux specific controls are skipped.
10321023
1. In any case the user can skip specific preflight checks (or eventually all preflight checks) with the `--ignore-preflight-errors` option.
10331024
-->
10341025
1. `kubeadm join` 预检基本上是 `kubeadm init` 预检的一个子集
1035-
2. 从 1.9 开始,kubeadm 为 CRI 通用的功能提供了更好的支持;在这种情况下,
1036-
Docker 特定的控制参数将跳过或替换为 crictl 中与之相似的控制参数。
1026+
2. 从 1.24 开始,kubeadm 使用 crictl 与所有已知的 CRI 端点进行通信。
10371027
3. 从 1.9 开始,kubeadm 支持加入在 Windows 上运行的节点;在这种情况下,
10381028
将跳过 Linux 特定的控制参数。
10391029
4. 在任何情况下,用户都可以通过 `--ignore-preflight-errors` 选项跳过

content/zh/docs/reference/setup-tools/kubeadm/kubeadm-config.md

Lines changed: 35 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,53 +8,59 @@ weight: 50
88
<!--
99
During `kubeadm init`, kubeadm uploads the `ClusterConfiguration` object to your cluster
1010
in a ConfigMap called `kubeadm-config` in the `kube-system` namespace. This configuration is then read during
11-
`kubeadm join`, `kubeadm reset` and `kubeadm upgrade`. To view this ConfigMap call `kubeadm config view`.
11+
`kubeadm join`, `kubeadm reset` and `kubeadm upgrade`.
1212
-->
1313
`kubeadm init` 执行期间,kubeadm 将 `ClusterConfiguration` 对象上传
1414
到你的集群的 `kube-system` 名字空间下名为 `kubeadm-config` 的 ConfigMap 对象中。
1515
然后在 `kubeadm join``kubeadm reset``kubeadm upgrade` 执行期间读取此配置。
16-
要查看此 ConfigMap,请调用 `kubeadm config view`
1716

1817
<!--
19-
You can use `kubeadm config print` to print the default configuration and `kubeadm config migrate` to
20-
convert your old configuration files to a newer version. `kubeadm config images list` and
21-
`kubeadm config images pull` can be used to list and pull the images that kubeadm requires.
18+
You can use `kubeadm config print` to print the default static configuration that kubeadm
19+
uses for `kubeadm init` and `kubeadm join`.
2220
-->
23-
你可以使用 `kubeadm config print` 命令打印默认配置,
24-
并使用 `kubeadm config migrate` 命令将旧版本的配置转化成新版本。
25-
`kubeadm config images list``kubeadm config images pull`
26-
命令可以用来列出并拉取 kubeadm 所需的镜像。
21+
你可以使用 `kubeadm config print` 命令打印默认静态配置,
22+
kubeadm 运行 `kubeadm init` and `kubeadm join` 时将使用此配置。
23+
24+
<!--
25+
The output of the command is meant to serve as an example. You must manually edit the output
26+
of this command to adapt to your setup. Remove the fields that you are not certain about and kubeadm
27+
will try to default them on runtime by examining the host.
28+
-->
29+
{{< note >}}
30+
此命令的输出旨在作为示例。你必须手动编辑此命令的输出来适配你的设置。
31+
删除你不确定的字段,kubeadm 将通过检查主机来尝试在运行时给它们设默认值。
32+
{{< /note >}}
2733

2834
<!--
29-
For more information navigate to
35+
For more information on `init` and `join` navigate to
3036
[Using kubeadm init with a configuration file](/docs/reference/setup-tools/kubeadm/kubeadm-init/#config-file)
3137
or [Using kubeadm join with a configuration file](/docs/reference/setup-tools/kubeadm/kubeadm-join/#config-file).
3238
-->
33-
更多信息请浏览[使用带配置文件的 kubeadm init](/zh/docs/reference/setup-tools/kubeadm/kubeadm-init/#config-file)
34-
[使用带配置文件的 kubeadm join](/zh/docs/reference/setup-tools/kubeadm/kubeadm-join/#config-file).
39+
更多有关 `init``join` 的信息请浏览[使用带配置文件的 kubeadm init](/zh/docs/reference/setup-tools/kubeadm/kubeadm-init/#config-file)
40+
[使用带配置文件的 kubeadm join](/zh/docs/reference/setup-tools/kubeadm/kubeadm-join/#config-file)
3541

3642
<!--
37-
You can also configure several kubelet-configuration options with `kubeadm init`. These options will be the same on any node in your cluster.
38-
See [Configuring each kubelet in your cluster using kubeadm](/docs/setup/production-environment/tools/kubeadm/kubelet-integration/) for details.
43+
For more information on using the kubeadm configuration API navigate to
44+
[Customizing components with the kubeadm API](/docs/setup/production-environment/tools/kubeadm/control-plane-flags).
3945
-->
40-
你也可以在使用 `kubeadm init` 命令时配置若干 kubelet 配置选项。
41-
这些选项对于集群中所有节点而言都是相同的。
42-
参阅[使用 kubeadm 来配置集群中的各个 kubelet](/zh/docs/setup/production-environment/tools/kubeadm/kubelet-integration/)
43-
了解详细信息。
44-
45-
<!--
46-
In Kubernetes v1.13.0 and later to list/pull kube-dns images instead of the CoreDNS image
47-
the `--config` method described [here](/docs/reference/setup-tools/kubeadm/kubeadm-init-phase/#cmd-phase-addon)
48-
has to be used.
46+
有关使用 kubeadm 的配置 API 的更多信息,
47+
请浏览[使用 kubeadm API 来自定义组件](/zh/docs/setup/production-environment/tools/kubeadm/control-plane-flags)
48+
49+
<!--
50+
You can use `kubeadm config migrate` to convert your old configuration files that contain a deprecated
51+
API version to a newer, supported API version.
4952
-->
50-
在 Kubernetes v1.13.0 及更高版本中,要列出/拉取 kube-dns 镜像而不是 CoreDNS 镜像,
51-
必须使用[这里](/zh/docs/reference/setup-tools/kubeadm/kubeadm-init-phase/#cmd-phase-addon)
52-
所描述的 `--config` 方法。
53+
你可以使用 `kubeadm config migrate` 来转换旧配置文件,
54+
把其中已弃用的 API 版本更新为受支持的 API 版本。
5355

54-
<!-- body -->
55-
## kubeadm config upload from-file {#cmd-config-from-file}
56+
<!--
57+
`kubeadm config images list` and `kubeadm config images pull` can be used to list and pull the images
58+
that kubeadm requires.
59+
-->
60+
`kubeadm config images list``kubeadm config images pull` 可以用来列出和拉取 kubeadm 所需的镜像。
5661

57-
## kubeadm config print{#cmd-config-view}
62+
<!-- body -->
63+
## kubeadm config print {#cmd-config-print}
5864
{{< include "generated/kubeadm_config_print.md" >}}
5965

6066
## kubeadm config print init-defaults {#cmd-config-print-init-defaults}

0 commit comments

Comments
 (0)