@@ -126,8 +126,8 @@ following steps:
126
126
- 配置自动签发新的 CSR 请求。
127
127
128
128
更多相关信息,请查看 [ kubeadm join] ( /zh-cn/docs/reference/setup-tools/kubeadm/kubeadm-join/ ) 。
129
-
130
- <!--
129
+
130
+ <!--
131
131
1. Installs a DNS server (CoreDNS) and the kube-proxy addon components via the API server.
132
132
In Kubernetes version 1.11 and later CoreDNS is the default DNS server.
133
133
Please note that although the DNS server is deployed, it will not be scheduled until CNI is installed.
@@ -148,7 +148,8 @@ following steps:
148
148
149
149
Kubeadm allows you to create a control-plane node in phases using the `kubeadm init phase` command.
150
150
-->
151
- ### 在 kubeadm 中使用 init 阶段 {#init-phases}
151
+
152
+ ### 在 kubeadm 中使用 init 阶段 {#init-phases}
152
153
153
154
Kubeadm 允许你使用 ` kubeadm init phase ` 命令分阶段创建控制平面节点。
154
155
@@ -213,7 +214,7 @@ will create a control plane node with the custom manifest files.
213
214
214
215
{{< feature-state for_k8s_version="v1.22" state="beta" >}}
215
216
216
- <!--
217
+ <!--
217
218
Alternatively, you can use the `skipPhases` field under `InitConfiguration`.
218
219
-->
219
220
或者,你可以使用 ` InitConfiguration ` 下的 ` skipPhases ` 字段。
@@ -262,20 +263,20 @@ For more information on the fields and usage of the configuration you can naviga
262
263
263
264
关于配置的字段和用法的更多信息,你可以访问 [ API 参考页面] ( /zh-cn/docs/reference/config-api/kubeadm-config.v1beta3/ ) 。
264
265
265
- <!--
266
- ### Using kubeadm init with feature gates {#feature-gates}
266
+ <!--
267
+ ### Using kubeadm init with feature gates {#feature-gates}
267
268
-->
268
269
### 使用 kubeadm init 时设置特性门控 {#feature-gates}
269
270
270
- <!--
271
+ <!--
271
272
Kubeadm supports a set of feature gates that are unique to kubeadm and can only be applied
272
273
during cluster creation with `kubeadm init`. These features can control the behavior
273
274
of the cluster. Feature gates are removed after a feature graduates to GA.
274
275
-->
275
276
Kubeadm 支持一组独有的特性门控,只能在 ` kubeadm init ` 创建集群期间使用。
276
277
这些特性可以控制集群的行为。特性门控会在毕业到 GA 后被移除。
277
278
278
- <!--
279
+ <!--
279
280
To pass a feature gate you can either use the `--feature-gates` flag for
280
281
`kubeadm init`, or you can add items into the `featureGates` field when you pass
281
282
a [configuration file](/docs/reference/config-api/kubeadm-config.v1beta3/#kubeadm-k8s-io-v1beta3-ClusterConfiguration)
@@ -285,16 +286,16 @@ using `--config`.
285
286
或者你可以在用 ` --config `
286
287
传递[ 配置文件] ( /zh-cn/docs/reference/config-api/kubeadm-config.v1beta3/#kubeadm-k8s-io-v1beta3-ClusterConfiguration ) 时添加条目到 ` featureGates ` 字段中。
287
288
288
- <!--
289
+ <!--
289
290
Passing [feature gates for core Kubernetes components](/docs/reference/command-line-tools-reference/feature-gates)
290
291
directly to kubeadm is not supported. Instead, it is possible to pass them by
291
292
[Customizing components with the kubeadm API](/docs/setup/production-environment/tools/kubeadm/control-plane-flags/).
292
293
-->
293
294
直接传递 [ Kubernetes 核心组件的特性门控] ( /zh-cn/docs/reference/command-line-tools-reference/feature-gates ) 给 kubeadm 是不支持的。
294
295
相反,可以通过[ 使用 kubeadm API 的自定义组件] ( /zh-cn/docs/setup/production-environment/tools/kubeadm/control-plane-flags/ ) 来传递。
295
296
296
- <!--
297
- List of feature gates:
297
+ <!--
298
+ List of feature gates:
298
299
-->
299
300
特性门控的列表:
300
301
@@ -313,12 +314,12 @@ Once a feature gate goes GA its value becomes locked to `true` by default.
313
314
一旦特性门控变成了 GA,它的值会被默认锁定为 ` true ` 。
314
315
{{< /note >}}
315
316
316
- <!--
317
- Feature gate descriptions:
317
+ <!--
318
+ Feature gate descriptions:
318
319
-->
319
320
特性门控的描述:
320
321
321
- <!--
322
+ <!--
322
323
`PublicKeysECDSA`
323
324
: Can be used to create a cluster that uses ECDSA certificates instead of the default RSA algorithm.
324
325
Renewal of existing ECDSA certificates is also supported using `kubeadm certs renew`, but you cannot
@@ -329,7 +330,7 @@ switch between the RSA and ECDSA algorithms on the fly or during upgrades.
329
330
支持用 ` kubeadm certs renew ` 更新现有 ECDSA 证书,
330
331
但你不能在集群运行期间或升级期间切换 RSA 和 ECDSA 算法。
331
332
332
- <!--
333
+ <!--
333
334
`RootlessControlPlane`
334
335
: Setting this flag configures the kubeadm deployed control plane component static Pod containers
335
336
for `kube-apiserver`, `kube-controller-manager`, `kube-scheduler` and `etcd` to run as non-root users.
@@ -342,7 +343,7 @@ you upgrade to a newer version of Kubernetes.
342
343
如果未设置该标志,则这些组件以 root 身份运行。
343
344
你可以在升级到更新版本的 Kubernetes 之前更改此特性门控的值。
344
345
345
- <!--
346
+ <!--
346
347
`UnversionedKubeletConfigMap`
347
348
: This flag controls the name of the {{< glossary_tooltip text="ConfigMap" term_id="configmap" >}} where kubeadm stores
348
349
kubelet configuration data. With this flag not specified or set to `true`, the ConfigMap is named `kubelet-config`.
@@ -413,15 +414,15 @@ kubeadm config images list
413
414
kubeadm config images pull
414
415
```
415
416
416
- <!--
417
+ <!--
417
418
You can pass `--config` to the above commands with a [kubeadm configuration file](#config-file)
418
419
to control the `kubernetesVersion` and `imageRepository` fields.
419
420
-->
420
421
你可以通过 ` --config ` 把 [ kubeadm 配置文件] ( #config-file ) 传递给上述命令来控制
421
422
` kubernetesVersion ` 和 ` imageRepository ` 字段。
422
423
423
- <!--
424
- All default `registry.k8s.io` images that kubeadm requires support multiple architectures.
424
+ <!--
425
+ All default `registry.k8s.io` images that kubeadm requires support multiple architectures.
425
426
-->
426
427
kubeadm 需要的所有默认 ` registry.k8s.io ` 镜像都支持多种硬件体系结构。
427
428
@@ -453,7 +454,7 @@ Allowed customization are:
453
454
* 使用其他的 ` imageRepository ` 来代替 ` registry.k8s.io ` 。
454
455
* 为 etcd 或 CoreDNS 提供特定的 ` imageRepository ` 和 ` imageTag ` 。
455
456
456
- <!--
457
+ <!--
457
458
Image paths between the default `registry.k8s.io` and a custom repository specified using
458
459
`imageRepository` may differ for backwards compatibility reasons. For example,
459
460
one image might have a subpath at `registry.k8s.io/subpath/image`, but be defaulted
@@ -463,13 +464,13 @@ to `my.customrepository.io/image` when using a custom repository.
463
464
` registry.k8s.io ` 镜像路径不同。例如,某镜像的子路径可能是 ` registry.k8s.io/subpath/image ` ,
464
465
但使用自定义仓库时默认为 ` my.customrepository.io/image ` 。
465
466
466
- <!--
467
+ <!--
467
468
To ensure you push the images to your custom repository in paths that kubeadm
468
469
can consume, you must:
469
470
-->
470
471
确保将镜像推送到 kubeadm 可以使用的自定义仓库的路径中,你必须:
471
472
472
- <!--
473
+ <!--
473
474
* Pull images from the defaults paths at `registry.k8s.io` using `kubeadm config images {list|pull}`.
474
475
* Push images to the paths from `kubeadm config images list --config=config.yaml`,
475
476
where `config.yaml` contains the custom `imageRepository`, and/or `imageTag`
@@ -484,7 +485,7 @@ for etcd and CoreDNS.
484
485
<!--
485
486
#### Custom sandbox (pause) images {#custom-pause-image}
486
487
487
- To set a custom image for these you need to configure this in your
488
+ To set a custom image for these you need to configure this in your
488
489
{{< glossary_tooltip text="container runtime" term_id="container-runtime" >}}
489
490
to use the image.
490
491
Consult the documentation for your container runtime to find out how to change this setting;
@@ -636,7 +637,7 @@ DNS name or an address of a load balancer.
636
637
-->
637
638
1 . 生成一个令牌。这个令牌必须采用的格式为:` <6 个字符的字符串>.<16 个字符的字符串> ` 。
638
639
更加正式的说法是,它必须符合正则表达式:` [a-z0-9]{6}\.[a-z0-9]{16} ` 。
639
-
640
+
640
641
kubeadm 可以为你生成一个令牌:
641
642
642
643
``` shell
@@ -698,4 +699,3 @@ provisioned). For details, see the [kubeadm join](/docs/reference/setup-tools/ku
698
699
将 Kubernetes 集群升级到新版本
699
700
* [ kubeadm reset] ( /zh-cn/docs/reference/setup-tools/kubeadm/kubeadm-reset/ )
700
701
恢复 ` kubeadm init ` 或 ` kubeadm join ` 命令对节点所作的变更
701
-
0 commit comments