Skip to content

Commit 37fc6ab

Browse files
authored
Merge pull request #39027 from Zhuzhenghao/kubeadm-reconfigure
[zh-cn] Sync kubeadm-reconfigure.md
2 parents 72f9d8e + 3349cd1 commit 37fc6ab

File tree

1 file changed

+24
-10
lines changed

1 file changed

+24
-10
lines changed

content/zh-cn/docs/tasks/administer-cluster/kubeadm/kubeadm-reconfigure.md

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: 重新配置 kubeadm 集群
33
content_type: task
4-
weight: 10
4+
weight: 30
55
---
66
<!--
77
reviewers:
88
- sig-cluster-lifecycle
99
title: Reconfiguring a kubeadm cluster
1010
content_type: task
11-
weight: 10
11+
weight: 30
1212
-->
1313

1414
<!-- overview -->
@@ -107,7 +107,6 @@ in a ConfigMap called `kubeadm-config` in the `kube-system` namespace.
107107
108108
To change a particular option in the `ClusterConfiguration` you can edit the ConfigMap with this command:
109109
110-
The configuration is located under the `data.ClusterConfiguration` key.
111110
-->
112111
### 应用集群配置更改
113112

@@ -123,6 +122,9 @@ The configuration is located under the `data.ClusterConfiguration` key.
123122
kubectl edit cm -n kube-system kubeadm-config
124123
```
125124

125+
<!--
126+
The configuration is located under the `data.ClusterConfiguration` key.
127+
-->
126128
配置位于 `data.ClusterConfiguration` 键下。
127129

128130
{{< note >}}
@@ -170,7 +172,6 @@ Before proceeding with these changes, make sure you have backed up the directory
170172
<!--
171173
To write new certificates you can use:
172174
173-
To write new manifest files in `/etc/kubernetes/manifests` you can use:
174175
-->
175176

176177
要编写新证书,你可以使用:
@@ -179,6 +180,9 @@ To write new manifest files in `/etc/kubernetes/manifests` you can use:
179180
kubeadm init phase certs <component-name> --config <config-file>
180181
```
181182

183+
<!--
184+
To write new manifest files in `/etc/kubernetes/manifests` you can use:
185+
-->
182186
要在 `/etc/kubernetes/manifests` 中编写新的清单文件,你可以使用:
183187

184188
```shell
@@ -212,7 +216,6 @@ in a ConfigMap called `kubelet-config` in the `kube-system` namespace.
212216
213217
You can edit the ConfigMap with this command:
214218
215-
The configuration is located under the `data.kubelet` key.
216219
-->
217220
### 应用 kubelet 配置更改
218221

@@ -227,6 +230,9 @@ The configuration is located under the `data.kubelet` key.
227230
kubectl edit cm -n kube-system kubelet-config
228231
```
229232

233+
<!--
234+
The configuration is located under the `data.kubelet` key.
235+
-->
230236
配置位于 `data.kubelet` 键下。
231237

232238
<!--
@@ -284,7 +290,6 @@ This ConfigMap is used by the `kube-proxy` DaemonSet in the `kube-system` namesp
284290
285291
To change a particular option in the `KubeProxyConfiguration`, you can edit the ConfigMap with this command:
286292
287-
The configuration is located under the `data.config.conf` key.
288293
-->
289294
### 应用 kube-proxy 配置更改
290295

@@ -302,6 +307,9 @@ The configuration is located under the `data.config.conf` key.
302307
kubectl edit cm -n kube-system kube-proxy
303308
```
304309

310+
<!--
311+
The configuration is located under the `data.config.conf` key.
312+
-->
305313
配置位于 `data.config.conf` 键下。
306314

307315
<!--
@@ -311,9 +319,6 @@ Once the `kube-proxy` ConfigMap is updated, you can restart all kube-proxy Pods:
311319
312320
Obtain the Pod names:
313321
314-
Delete a Pod with:
315-
316-
New Pods that use the updated ConfigMap will be created.
317322
-->
318323
#### 反映 kube-proxy 的更改
319324

@@ -325,12 +330,18 @@ New Pods that use the updated ConfigMap will be created.
325330
kubectl get po -n kube-system | grep kube-proxy
326331
```
327332

333+
<!--
334+
Delete a Pod with:
335+
-->
328336
使用以下命令删除 Pod:
329337

330338
```shell
331339
kubectl delete po -n kube-system <pod-name>
332340
```
333341

342+
<!--
343+
New Pods that use the updated ConfigMap will be created.
344+
-->
334345
将创建使用更新的 ConfigMap 的新 Pod。
335346

336347
{{< note >}}
@@ -373,7 +384,6 @@ Once the CoreDNS changes are applied you can delete the CoreDNS Pods:
373384
374385
Obtain the Pod names:
375386
376-
Delete a Pod with:
377387
-->
378388
#### 反映 CoreDNS 的更改
379389

@@ -385,6 +395,9 @@ Delete a Pod with:
385395
kubectl get po -n kube-system | grep coredns
386396
```
387397

398+
<!--
399+
Delete a Pod with:
400+
-->
388401
使用以下命令删除 Pod:
389402

390403
```shell
@@ -400,6 +413,7 @@ New Pods with the updated CoreDNS configuration will be created.
400413
<!--
401414
kubeadm does not allow CoreDNS configuration during cluster creation and upgrade.
402415
This means that if you execute `kubeadm upgrade apply`, your changes to the CoreDNS
416+
objects will be lost and must be reapplied.
403417
-->
404418
kubeadm 不允许在集群创建和升级期间配置 CoreDNS。
405419
这意味着如果执行了 `kubeadm upgrade apply`,你对

0 commit comments

Comments
 (0)