Skip to content

Commit 2438801

Browse files
authored
Merge pull request #49096 from my-git9/pp-10902
[zh-cn]sycn kubeadm_upgrade_apply_phase kubeadm_upgrade_apply_phase_addon kubeadm-reconfigure
2 parents 89b915b + e012f89 commit 2438801

File tree

3 files changed

+82
-23
lines changed

3 files changed

+82
-23
lines changed
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<!--
2+
Use this command to invoke single phase of the "apply" workflow
3+
-->
4+
使用此命令来调用 "apply" 工作流的单个阶段
5+
6+
<!--
7+
### Synopsis
8+
-->
9+
### 概要
10+
11+
<!--
12+
Use this command to invoke single phase of the "apply" workflow
13+
-->
14+
使用此命令来调用 "apply" 工作流的单个阶段
15+
16+
```shell
17+
kubeadm upgrade apply phase [flags]
18+
```
19+
20+
<!--
21+
### Options
22+
-->
23+
### 选项
24+
25+
<table style="width: 100%; table-layout: fixed;">
26+
<colgroup>
27+
<col span="1" style="width: 10px;" />
28+
<col span="1" />
29+
</colgroup>
30+
<tbody>
31+
32+
<tr>
33+
<td colspan="2">-h, --help</td>
34+
</tr>
35+
<tr>
36+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
37+
<p>
38+
<!--
39+
help for phase
40+
-->
41+
phase 操作的帮助命令。
42+
</p>
43+
</td>
44+
</tr>
45+
46+
</tbody>
47+
</table>
48+
49+
<!--
50+
### Options inherited from parent commands
51+
-->
52+
### 从父命令继承的选项
53+
54+
<table style="width: 100%; table-layout: fixed;">
55+
<colgroup>
56+
<col span="1" style="width: 10px;" />
57+
<col span="1" />
58+
</colgroup>
59+
<tbody>
60+
61+
<tr>
62+
<td colspan="2">--rootfs string</td>
63+
</tr>
64+
<tr>
65+
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
66+
<!--
67+
The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path.
68+
-->
69+
到“真实”主机根文件系统的路径。配置此参数将导致 kubeadm 切换到所提供的路径。
70+
</p>
71+
</td>
72+
</tr>
73+
74+
</tbody>
75+
</table>

content/zh-cn/docs/reference/setup-tools/kubeadm/generated/kubeadm_upgrade/kubeadm_upgrade_apply_phase_addon.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ Upgrade the default kubeadm addons
1717
kubeadm upgrade apply phase addon [flags]
1818
```
1919

20+
<!--
2021
### Options
22+
-->
23+
### 选项
2124

2225
<table style="width: 100%; table-layout: fixed;">
2326
<colgroup>
@@ -31,10 +34,10 @@ kubeadm upgrade apply phase addon [flags]
3134
</tr>
3235
<tr>
3336
<td></td><td style="line-height: 130%; word-wrap: break-word;">
37+
<p>
3438
<!--
3539
help for addon
3640
-->
37-
<p>
3841
addon 操作的帮助命令。
3942
</p>
4043
</td>

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

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -379,35 +379,16 @@ kubectl edit service -n kube-system kube-dns
379379
<!--
380380
#### Reflecting the CoreDNS changes
381381
382-
Once the CoreDNS changes are applied you can delete the CoreDNS Pods:
383-
384-
Obtain the Pod names:
385-
382+
Once the CoreDNS changes are applied you can restart the CoreDNS deployment:
386383
-->
387384
#### 反映 CoreDNS 的更改
388385

389-
应用 CoreDNS 更改后,你可以删除 CoreDNS Pod。
390-
391-
获取 Pod 名称:
386+
一旦应用了 CoreDNS 更改,你就可以重新启动 CoreDNS Deployment:
392387

393388
```shell
394-
kubectl get po -n kube-system | grep coredns
389+
kubectl rollout restart deployment -n kube-system coredns
395390
```
396391

397-
<!--
398-
Delete a Pod with:
399-
-->
400-
使用以下命令删除 Pod:
401-
402-
```shell
403-
kubectl delete po -n kube-system <pod-name>
404-
```
405-
406-
<!--
407-
New Pods with the updated CoreDNS configuration will be created.
408-
-->
409-
将创建具有更新的 CoreDNS 配置的新 Pod。
410-
411392
{{< note >}}
412393
<!--
413394
kubeadm does not allow CoreDNS configuration during cluster creation and upgrade.

0 commit comments

Comments
 (0)