Skip to content

Commit 0bb0689

Browse files
authored
Merge pull request #36217 from windsonsea/kubeinit
[zh-cn] sync1.25 /setup-tools/kubeadm/kubeadm-init.md
2 parents c562dbe + 982a452 commit 0bb0689

File tree

1 file changed

+26
-32
lines changed

1 file changed

+26
-32
lines changed

content/zh-cn/docs/reference/setup-tools/kubeadm/kubeadm-init.md

Lines changed: 26 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ following steps:
115115
116116
See [kubeadm join](/docs/reference/setup-tools/kubeadm/kubeadm-join/) for additional info.
117117
-->
118-
7. 为了使得节点能够遵照[启动引导令牌](/zh-cn/docs/reference/access-authn-authz/bootstrap-tokens/)
119-
[TLS 启动引导](/zh-cn/docs/reference/access-authn-authz/kubelet-tls-bootstrapping/)
118+
7. 为了使得节点能够遵照[启动引导令牌](/zh-cn/docs/reference/access-authn-authz/bootstrap-tokens/)
119+
[TLS 启动引导](/zh-cn/docs/reference/access-authn-authz/kubelet-tls-bootstrapping/)
120120
这两份文档中描述的机制加入到集群中,kubeadm 会执行所有的必要配置:
121121

122122
- 创建一个 ConfigMap 提供添加集群节点所需的信息,并为该 ConfigMap 设置相关的 RBAC 访问规则。
@@ -282,8 +282,8 @@ a [configuration file](/docs/reference/config-api/kubeadm-config.v1beta3/#kubead
282282
using `--config`.
283283
-->
284284
你可以使用 `--feature-gates` 标志来为 `kubeadm init` 设置特性门控,
285-
或者你可以在用 `--config` 传递[配置文件](/zh-cn/docs/reference/config-api/kubeadm-config.v1beta3/#kubeadm-k8s-io-v1beta3-ClusterConfiguration)
286-
时添加条目到 `featureGates` 字段中。
285+
或者你可以在用 `--config`
286+
传递[配置文件](/zh-cn/docs/reference/config-api/kubeadm-config.v1beta3/#kubeadm-k8s-io-v1beta3-ClusterConfiguration)时添加条目到 `featureGates` 字段中。
287287

288288
<!--
289289
Passing [feature gates for core Kubernetes components](/docs/reference/command-line-tools-reference/feature-gates)
@@ -299,18 +299,18 @@ List of feature gates:
299299
特性门控的列表:
300300

301301
{{< table caption="kubeadm 特性门控" >}}
302-
特性 | 默认值 | Alpha | Beta
303-
:-------|:--------|:------|:-----
304-
`PublicKeysECDSA` | `false` | 1.19 | -
305-
`RootlessControlPlane` | `false` | 1.22 | -
306-
`UnversionedKubeletConfigMap` | `true` | 1.22 | 1.23
302+
特性 | 默认值 | Alpha | Beta | GA
303+
:-------|:--------|:------|:-----|:----
304+
`PublicKeysECDSA` | `false` | 1.19 | - | -
305+
`RootlessControlPlane` | `false` | 1.22 | - | -
306+
`UnversionedKubeletConfigMap` | `true` | 1.22 | 1.23 | 1.25
307307
{{< /table >}}
308308

309309
{{< note >}}
310-
<!--
311-
Once a feature gate goes GA it is removed from this list as its value becomes locked to `true` by default.
310+
<!--
311+
Once a feature gate goes GA its value becomes locked to `true` by default.
312312
-->
313-
一旦特性门控变成了 GA,那它将会从这个列表中移除,因为它的值会被默认锁定为 `true`
313+
一旦特性门控变成了 GA,它的值会被默认锁定为 `true`
314314
{{< /note >}}
315315

316316
<!--
@@ -364,13 +364,6 @@ kubeadm 根据 `UnversionedKubeletConfigMap` 的设置值来执行操作。
364364
kubeadm 尝试首先使用无版本(后缀)的 ConfigMap 名称;
365365
如果不成功,kubeadm 将回退到使用该 ConfigMap 的旧(带版本号的)名称。
366366

367-
{{< note >}}
368-
<!--
369-
Setting `UnversionedKubeletConfigMap` to `false` is supported but **deprecated**.
370-
-->
371-
设置 `UnversionedKubeletConfigMap``false` 是被支持的特性,但该特性**已被弃用**
372-
{{< /note >}}
373-
374367
<!--
375368
### Adding kube-proxy parameters {#kube-proxy}
376369
@@ -428,20 +421,20 @@ to control the `kubernetesVersion` and `imageRepository` fields.
428421
`kubernetesVersion``imageRepository` 字段。
429422

430423
<!--
431-
All default `k8s.gcr.io` images that kubeadm requires support multiple architectures.
424+
All default `registry.k8s.io` images that kubeadm requires support multiple architectures.
432425
-->
433-
kubeadm 需要的所有默认 `k8s.gcr.io` 镜像都支持多种硬件体系结构。
426+
kubeadm 需要的所有默认 `registry.k8s.io` 镜像都支持多种硬件体系结构。
434427

435428
<!--
436429
### Using custom images {#custom-images}
437430
438-
By default, kubeadm pulls images from `k8s.gcr.io`. If the
431+
By default, kubeadm pulls images from `registry.k8s.io`. If the
439432
requested Kubernetes version is a CI label (such as `ci/latest`)
440433
`gcr.io/k8s-staging-ci-images` is used.
441434
-->
442435
### 使用自定义的镜像 {#custom-images}
443436

444-
默认情况下,kubeadm 会从 `k8s.gcr.io` 仓库拉取镜像。如果请求的 Kubernetes 版本是 CI 标签
437+
默认情况下,kubeadm 会从 `registry.k8s.io` 仓库拉取镜像。如果请求的 Kubernetes 版本是 CI 标签
445438
(例如 `ci/latest`),则使用 `gcr.io/k8s-staging-ci-images`
446439

447440
<!--
@@ -450,24 +443,24 @@ Allowed customization are:
450443
451444
* To provide `kubernetesVersion` which affects the version of the images.
452445
* To provide an alternative `imageRepository` to be used instead of
453-
`k8s.gcr.io`.
446+
`registry.k8s.io`.
454447
* To provide a specific `imageRepository` and `imageTag` for etcd or CoreDNS.
455448
-->
456449
你可以通过使用[带有配置文件的 kubeadm](#config-file) 来重写此操作。
457450
允许的自定义功能有:
458451

459452
* 提供影响镜像版本的 `kubernetesVersion`
460-
* 使用其他的 `imageRepository` 来代替 `k8s.gcr.io`
453+
* 使用其他的 `imageRepository` 来代替 `registry.k8s.io`
461454
* 为 etcd 或 CoreDNS 提供特定的 `imageRepository``imageTag`
462455

463456
<!--
464-
Image paths between the default `k8s.gcr.io` and a custom repository specified using
457+
Image paths between the default `registry.k8s.io` and a custom repository specified using
465458
`imageRepository` may differ for backwards compatibility reasons. For example,
466-
one image might have a subpath at `k8s.gcr.io/subpath/image`, but be defaulted
459+
one image might have a subpath at `registry.k8s.io/subpath/image`, but be defaulted
467460
to `my.customrepository.io/image` when using a custom repository.
468461
-->
469462
由于向后兼容的原因,使用 `imageRepository` 所指定的定制镜像库可能与默认的
470-
`k8s.gcr.io` 镜像路径不同。例如,某镜像的子路径可能是 `k8s.gcr.io/subpath/image`
463+
`registry.k8s.io` 镜像路径不同。例如,某镜像的子路径可能是 `registry.k8s.io/subpath/image`
471464
但使用自定义仓库时默认为 `my.customrepository.io/image`
472465

473466
<!--
@@ -477,13 +470,13 @@ can consume, you must:
477470
确保将镜像推送到 kubeadm 可以使用的自定义仓库的路径中,你必须:
478471

479472
<!--
480-
* Pull images from the defaults paths at `k8s.gcr.io` using `kubeadm config images {list|pull}`.
473+
* Pull images from the defaults paths at `registry.k8s.io` using `kubeadm config images {list|pull}`.
481474
* Push images to the paths from `kubeadm config images list --config=config.yaml`,
482475
where `config.yaml` contains the custom `imageRepository`, and/or `imageTag`
483476
for etcd and CoreDNS.
484477
* Pass the same `config.yaml` to `kubeadm init`.
485478
-->
486-
* 使用 `kubeadm config images {list|pull}``k8s.gcr.io` 的默认路径中拉取镜像。
479+
* 使用 `kubeadm config images {list|pull}``registry.k8s.io` 的默认路径中拉取镜像。
487480
* 将镜像推送到 `kubeadm config images list --config=config.yaml` 的路径,
488481
其中 `config.yaml` 包含自定义的 `imageRepository` 和/或用于 etcd 和 CoreDNS 的 `imageTag`
489482
* 将相同的 `config.yaml` 传递给 `kubeadm init`
@@ -500,8 +493,9 @@ for selected container runtimes, you can also find advice within the
500493
-->
501494
#### 定制沙箱(pause)镜像 {#custom-pause-image}
502495

503-
如果需要为这些组件设置定制的镜像,你需要在你的{{< glossary_tooltip text="容器运行时" term_id="container-runtime" >}}
504-
中完成一些配置。参阅你的容器运行时的文档以了解如何改变此设置。
496+
如果需要为这些组件设置定制的镜像,
497+
你需要在你的{{< glossary_tooltip text="容器运行时" term_id="container-runtime" >}}中完成一些配置。
498+
参阅你的容器运行时的文档以了解如何改变此设置。
505499
对于某些容器运行时而言,
506500
你可以在[容器运行时](/zh-cn/docs/setup/production-environment/container-runtimes/)主题下找到一些建议。
507501

0 commit comments

Comments
 (0)