Skip to content

Commit 992725c

Browse files
authored
Merge pull request #49149 from windsonsea/addns
[zh] Add kubeadm_upgrade_apply_phase_addon_coredns.md
2 parents eecbd9b + 9e52ca9 commit 992725c

File tree

1 file changed

+127
-0
lines changed

1 file changed

+127
-0
lines changed
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
<!--
2+
Upgrade the CoreDNS addon
3+
-->
4+
升级 CoreDNS 插件
5+
6+
<!--
7+
### Synopsis
8+
9+
Upgrade the CoreDNS addon
10+
-->
11+
### 概要
12+
13+
升级 CoreDNS 插件
14+
15+
```shell
16+
kubeadm upgrade apply phase addon coredns [flags]
17+
```
18+
19+
<!--
20+
### Options
21+
-->
22+
### 选项
23+
24+
<table style="width: 100%; table-layout: fixed;">
25+
<colgroup>
26+
<col span="1" style="width: 10px;" />
27+
<col span="1" />
28+
</colgroup>
29+
<tbody>
30+
31+
<tr>
32+
<td colspan="2">--config string</td>
33+
</tr>
34+
<tr>
35+
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
36+
<!--
37+
Path to a kubeadm configuration file.
38+
-->
39+
kubeadm 配置文件的路径。
40+
</p></td>
41+
</tr>
42+
43+
<tr>
44+
<td colspan="2">--dry-run</td>
45+
</tr>
46+
<tr>
47+
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
48+
<!--
49+
Do not change any state, just output what actions would be performed.
50+
-->
51+
不更改任何状态,只输出要执行的操作。
52+
</p></td>
53+
</tr>
54+
55+
<tr>
56+
<td colspan="2">-h, --help</td>
57+
</tr>
58+
<tr>
59+
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
60+
<!--
61+
help for coredns
62+
-->
63+
coredns 操作的帮助命令。
64+
</p></td>
65+
</tr>
66+
67+
<tr>
68+
<td colspan="2">--kubeconfig string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "/etc/kubernetes/admin.conf"</td>
69+
</tr>
70+
<tr>
71+
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
72+
<!--
73+
The kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations can be searched for an existing kubeconfig file.
74+
-->
75+
用于和集群通信的 KubeConfig 文件。如果它没有被设置,
76+
那么 kubeadm 将会搜索一个已经存在于标准路径的 KubeConfig 文件。
77+
</p></td>
78+
</tr>
79+
80+
<tr>
81+
<td colspan="2">--patches string</td>
82+
</tr>
83+
<tr>
84+
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
85+
<!--
86+
Path to a directory that contains files named &quot;target[suffix][+patchtype].extension&quot;. For example, &quot;kube-apiserver0+merge.yaml&quot; or just &quot;etcd.json&quot;. &quot;target&quot; can be one of &quot;kube-apiserver&quot;, &quot;kube-controller-manager&quot;, &quot;kube-scheduler&quot;, &quot;etcd&quot;, &quot;kubeletconfiguration&quot;. &quot;patchtype&quot; can be one of &quot;strategic&quot;, &quot;merge&quot; or &quot;json&quot; and they match the patch formats supported by kubectl. The default &quot;patchtype&quot; is &quot;strategic&quot;. &quot;extension&quot; must be either &quot;json&quot; or &quot;yaml&quot;. &quot;suffix&quot; is an optional string that can be used to determine which patches are applied first alpha-numerically.
87+
-->
88+
包含名为 &quot;target[suffix][+patchtype].extension&quot; 的文件的目录的路径。
89+
例如,&quot;kube-apiserver0+merge.yaml&quot;或是简单的 &quot;etcd.json&quot;
90+
&quot;target&quot; 可以是 &quot;kube-apiserver&quot;&quot;kube-controller-manager&quot;&quot;kube-scheduler&quot;&quot;etcd&quot;&quot;kubeletconfiguration&quot; 之一。
91+
&quot;patchtype&quot; 可以是 &quot;strategic&quot;&quot;merge&quot; 或者 &quot;json&quot; 之一,
92+
并且它们与 kubectl 支持的补丁格式相同。
93+
默认的 &quot;patchtype&quot;&quot;strategic&quot;
94+
&quot;extension&quot; 必须是 &quot;json&quot;&quot;yaml&quot;
95+
&quot;suffix&quot; 是一个可选字符串,可用于确定首先按字母顺序应用哪些补丁。
96+
</p></td>
97+
</tr>
98+
99+
</tbody>
100+
</table>
101+
102+
<!--
103+
### Options inherited from parent commands
104+
-->
105+
### 从父命令继承的选项
106+
107+
<table style="width: 100%; table-layout: fixed;">
108+
<colgroup>
109+
<col span="1" style="width: 10px;" />
110+
<col span="1" />
111+
</colgroup>
112+
<tbody>
113+
114+
<tr>
115+
<td colspan="2">--rootfs string</td>
116+
</tr>
117+
<tr>
118+
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
119+
<!--
120+
The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path.
121+
-->
122+
“真实”主机根文件系统的路径。设置此参数将导致 kubeadm 切换到所提供的路径。
123+
</p></td>
124+
</tr>
125+
126+
</tbody>
127+
</table>

0 commit comments

Comments
 (0)