File tree Expand file tree Collapse file tree 3 files changed +82
-23
lines changed
reference/setup-tools/kubeadm/generated/kubeadm_upgrade
tasks/administer-cluster/kubeadm Expand file tree Collapse file tree 3 files changed +82
-23
lines changed Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change @@ -17,7 +17,10 @@ Upgrade the default kubeadm addons
17
17
kubeadm upgrade apply phase addon [flags]
18
18
```
19
19
20
+ <!--
20
21
### Options
22
+ -->
23
+ ### 选项
21
24
22
25
<table style =" width : 100% ; table-layout : fixed ;" >
23
26
<colgroup >
@@ -31,10 +34,10 @@ kubeadm upgrade apply phase addon [flags]
31
34
</tr >
32
35
<tr >
33
36
<td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
37
+ <p >
34
38
<!--
35
39
help for addon
36
40
-->
37
- <p >
38
41
addon 操作的帮助命令。
39
42
</p >
40
43
</td >
Original file line number Diff line number Diff line change @@ -379,35 +379,16 @@ kubectl edit service -n kube-system kube-dns
379
379
<!--
380
380
#### Reflecting the CoreDNS changes
381
381
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:
386
383
-->
387
384
#### 反映 CoreDNS 的更改
388
385
389
- 应用 CoreDNS 更改后,你可以删除 CoreDNS Pod。
390
-
391
- 获取 Pod 名称:
386
+ 一旦应用了 CoreDNS 更改,你就可以重新启动 CoreDNS Deployment:
392
387
393
388
``` shell
394
- kubectl get po -n kube-system | grep coredns
389
+ kubectl rollout restart deployment -n kube-system coredns
395
390
```
396
391
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
-
411
392
{{< note >}}
412
393
<!--
413
394
kubeadm does not allow CoreDNS configuration during cluster creation and upgrade.
You can’t perform that action at this time.
0 commit comments