Skip to content

Commit 8f4d377

Browse files
authored
Merge pull request #47698 from asa3311/sync-zh-145
[zh] sync create-cluster-kubeadm setup-ha-etcd-with-kubeadm kms-provider
2 parents 94dc1fb + ff69424 commit 8f4d377

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

content/zh-cn/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,12 @@ to a Kubernetes component, the component may exit with an error.
211211
<!--
212212
To configure the API server advertise address for control plane nodes created with both
213213
`init` and `join`, the flag `--apiserver-advertise-address` can be used.
214-
Preferably, this option can be set in the [kubeadm API](/docs/reference/config-api/kubeadm-config.v1beta3)
214+
Preferably, this option can be set in the [kubeadm API](/docs/reference/config-api/kubeadm-config.v1beta4)
215215
as `InitConfiguration.localAPIEndpoint` and `JoinConfiguration.controlPlane.localAPIEndpoint`.
216216
-->
217217
要为使用 `init``join` 创建的控制平面节点配置 API 服务器的公告地址,
218218
你可以使用 `--apiserver-advertise-address` 标志。
219-
最好在 [kubeadm API](/zh-cn/docs/reference/config-api/kubeadm-config.v1beta3)中使用
219+
最好在 [kubeadm API](/zh-cn/docs/reference/config-api/kubeadm-config.v1beta4)中使用
220220
`InitConfiguration.localAPIEndpoint``JoinConfiguration.controlPlane.localAPIEndpoint`
221221
来设置此选项。
222222

@@ -621,14 +621,12 @@ See a list of add-ons that implement the
621621

622622
<!--
623623
Please refer to the [Installing Addons](/docs/concepts/cluster-administration/addons/#networking-and-network-policy)
624-
page for a non-exhaustive list of networking addons supported by Kubernetes.
625-
624+
page for a non-exhaustive list of networking addons supported by Kubernetes.
626625
You can install a Pod network add-on with the following command on the
627626
control-plane node or a node that has the kubeconfig credentials:
628627
-->
629628
请参阅[安装插件](/zh-cn/docs/concepts/cluster-administration/addons/#networking-and-network-policy)页面,
630629
了解 Kubernetes 支持的网络插件的非详尽列表。
631-
632630
你可以使用以下命令在控制平面节点或具有 kubeconfig 凭据的节点上安装 Pod 网络附加组件:
633631

634632
```bash
@@ -1046,13 +1044,13 @@ match the kubeadm version with the versions of the control plane components, kub
10461044
kubeadm can be used with Kubernetes components that are the same version as kubeadm
10471045
or one version older. The Kubernetes version can be specified to kubeadm by using the
10481046
`--kubernetes-version` flag of `kubeadm init` or the
1049-
[`ClusterConfiguration.kubernetesVersion`](/docs/reference/config-api/kubeadm-config.v1beta3/)
1047+
[`ClusterConfiguration.kubernetesVersion`](/docs/reference/config-api/kubeadm-config.v1beta4/)
10501048
field when using `--config`. This option will control the versions
10511049
of kube-apiserver, kube-controller-manager, kube-scheduler and kube-proxy.
10521050
-->
10531051
kubeadm 可以与 Kubernetes 组件一起使用,这些组件的版本与 kubeadm 相同,或者比它大一个版本。
10541052
Kubernetes 版本可以通过使用 `--kubeadm init``--kubernetes-version` 标志或使用 `--config` 时的
1055-
[`ClusterConfiguration.kubernetesVersion`](/zh-cn/docs/reference/config-api/kubeadm-config.v1beta3/)
1053+
[`ClusterConfiguration.kubernetesVersion`](/zh-cn/docs/reference/config-api/kubeadm-config.v1beta4/)
10561054
字段指定给 kubeadm。
10571055
这个选项将控制 kube-apiserver、kube-controller-manager、kube-scheduler 和 kube-proxy 的版本。
10581056

content/zh-cn/docs/setup/production-environment/tools/kubeadm/setup-ha-etcd-with-kubeadm.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,14 @@ on Kubernetes dual-stack support see [Dual-stack support with kubeadm](/docs/set
218218
NAME=${NAMES[$i]}
219219
cat << EOF > /tmp/${HOST}/kubeadmcfg.yaml
220220
---
221-
apiVersion: "kubeadm.k8s.io/v1beta3"
221+
apiVersion: "kubeadm.k8s.io/v1beta4"
222222
kind: InitConfiguration
223223
nodeRegistration:
224224
name: ${NAME}
225225
localAPIEndpoint:
226226
advertiseAddress: ${HOST}
227227
---
228-
apiVersion: "kubeadm.k8s.io/v1beta3"
228+
apiVersion: "kubeadm.k8s.io/v1beta4"
229229
kind: ClusterConfiguration
230230
etcd:
231231
local:
@@ -234,13 +234,20 @@ on Kubernetes dual-stack support see [Dual-stack support with kubeadm](/docs/set
234234
peerCertSANs:
235235
- "${HOST}"
236236
extraArgs:
237-
initial-cluster: ${NAMES[0]}=https://${HOSTS[0]}:2380,${NAMES[1]}=https://${HOSTS[1]}:2380,${NAMES[2]}=https://${HOSTS[2]}:2380
238-
initial-cluster-state: new
239-
name: ${NAME}
240-
listen-peer-urls: https://${HOST}:2380
241-
listen-client-urls: https://${HOST}:2379
242-
advertise-client-urls: https://${HOST}:2379
243-
initial-advertise-peer-urls: https://${HOST}:2380
237+
- name: initial-cluster
238+
value: ${NAMES[0]}=https://${HOSTS[0]}:2380,${NAMES[1]}=https://${HOSTS[1]}:2380,${NAMES[2]}=https://${HOSTS[2]}:2380
239+
- name: initial-cluster-state
240+
value: new
241+
- name: name
242+
value: ${NAME}
243+
- name: listen-peer-urls
244+
value: https://${HOST}:2380
245+
- name: listen-client-urls
246+
value: https://${HOST}:2379
247+
- name: advertise-client-urls
248+
value: https://${HOST}:2379
249+
- name: initial-advertise-peer-urls
250+
value: https://${HOST}:2380
244251
EOF
245252
done
246253
```

content/zh-cn/docs/tasks/administer-cluster/kms-provider.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,13 @@ for information security.
4747
The version of Kubernetes that you need depends on which KMS API version
4848
you have selected. Kubernetes recommends using KMS v2.
4949
50-
- If you selected KMS API v2, you should use Kubernetes v{{< skew currentVersion >}}
51-
(if you are running a different version of Kubernetes that also supports the v2 KMS
52-
API, switch to the documentation for that version of Kubernetes).
5350
- If you selected KMS API v1 to support clusters prior to version v1.27
5451
or if you have a legacy KMS plugin that only supports KMS v1,
5552
any supported Kubernetes version will work. This API is deprecated as of Kubernetes v1.28.
5653
Kubernetes does not recommend the use of this API.
5754
-->
5855
你所需要的 Kubernetes 版本取决于你已选择的 KMS API 版本。Kubernetes 推荐使用 KMS v2。
5956

60-
- 如果你选择了 KMS API v2,则应使用 Kubernetes v{{< skew currentVersion >}}
61-
(如果你正在运行也支持 KMS API v2 的其他 Kubernetes 版本,需查阅该 Kubernetes 版本的文档)。
6257
- 如果你选择了 KMS API v1 来支持早于 v1.27 版本的集群,或者你有一个仅支持 KMS v1 的旧版 KMS 插件,
6358
那么任何受支持的 Kubernetes 版本都可以良好工作。此 API 自 Kubernetes v1.28 起被弃用。
6459
Kubernetes 不推荐使用此 API。

0 commit comments

Comments
 (0)