@@ -8,53 +8,59 @@ weight: 50
8
8
<!--
9
9
During `kubeadm init`, kubeadm uploads the `ClusterConfiguration` object to your cluster
10
10
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`.
12
12
-->
13
13
在 ` kubeadm init ` 执行期间,kubeadm 将 ` ClusterConfiguration ` 对象上传
14
14
到你的集群的 ` kube-system ` 名字空间下名为 ` kubeadm-config ` 的 ConfigMap 对象中。
15
15
然后在 ` kubeadm join ` 、` kubeadm reset ` 和 ` kubeadm upgrade ` 执行期间读取此配置。
16
- 要查看此 ConfigMap,请调用 ` kubeadm config view ` 。
17
16
18
17
<!--
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`.
22
20
-->
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 >}}
27
33
28
34
<!--
29
- For more information navigate to
35
+ For more information on `init` and `join` navigate to
30
36
[Using kubeadm init with a configuration file](/docs/reference/setup-tools/kubeadm/kubeadm-init/#config-file)
31
37
or [Using kubeadm join with a configuration file](/docs/reference/setup-tools/kubeadm/kubeadm-join/#config-file).
32
38
-->
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 ) 。
35
41
36
42
<!--
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) .
39
45
-->
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.
49
52
-->
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 版本。
53
55
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 所需的镜像。
56
61
57
- ## kubeadm config print{#cmd-config-view}
62
+ <!-- body -->
63
+ ## kubeadm config print {#cmd-config-print}
58
64
{{< include "generated/kubeadm_config_print.md" >}}
59
65
60
66
## kubeadm config print init-defaults {#cmd-config-print-init-defaults}
0 commit comments