Skip to content

Commit f97d277

Browse files
authored
Merge pull request #49113 from my-git9/pp-25664
[zh-cn]sync kubeadm_upgrade_apply_phase_control-plane
2 parents 35edaa3 + e8185e3 commit f97d277

File tree

1 file changed

+180
-0
lines changed

1 file changed

+180
-0
lines changed
Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
<!--
2+
Upgrade the control plane
3+
-->
4+
升级控制平面
5+
6+
<!--
7+
### Synopsis
8+
-->
9+
### 概要
10+
11+
<!--
12+
Upgrade the control plane
13+
-->
14+
升级控制平面
15+
16+
```shell
17+
kubeadm upgrade apply phase control-plane [flags]
18+
```
19+
20+
21+
<!--
22+
### Options
23+
-->
24+
### 选项
25+
26+
<table style="width: 100%; table-layout: fixed;">
27+
<colgroup>
28+
<col span="1" style="width: 10px;" />
29+
<col span="1" />
30+
</colgroup>
31+
<tbody>
32+
33+
<tr>
34+
<td colspan="2">
35+
<!--
36+
--certificate-renewal&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: true
37+
-->
38+
--certificate-renewal&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值:true
39+
</td>
40+
</tr>
41+
<tr>
42+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
43+
<p>
44+
<!--
45+
Perform the renewal of certificates used by component changed during upgrades.
46+
-->
47+
执行升级期间更改的组件所使用的证书的更新。
48+
</p>
49+
</td>
50+
</tr>
51+
52+
<tr>
53+
<td colspan="2">--config string</td>
54+
</tr>
55+
<tr>
56+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
57+
<!--
58+
Path to a kubeadm configuration file.
59+
-->
60+
<p>
61+
kubeadm 配置文件的路径。
62+
</p>
63+
</td>
64+
</tr>
65+
66+
<tr>
67+
<td colspan="2">--dry-run</td>
68+
</tr>
69+
<tr>
70+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
71+
<p>
72+
<!--
73+
Do not change any state, just output what actions would be performed.
74+
-->
75+
不更改任何状态,只输出要执行的操作。
76+
</p>
77+
</td>
78+
</tr>
79+
80+
<tr>
81+
<td colspan="2">
82+
<!--
83+
--etcd-upgrade&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: true
84+
-->
85+
--etcd-upgrade&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值: true
86+
</td>
87+
</tr>
88+
<tr>
89+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
90+
<p>
91+
<!--
92+
Perform the upgrade of etcd.
93+
-->
94+
执行 etcd 的升级。
95+
</p>
96+
</td>
97+
</tr>
98+
99+
<tr>
100+
<td colspan="2">-h, --help</td>
101+
</tr>
102+
<tr>
103+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
104+
<p>
105+
<!--
106+
help for control-plane
107+
-->
108+
control-plane 操作的帮助命令。
109+
</p>
110+
</td>
111+
</tr>
112+
113+
<tr>
114+
<td colspan="2">
115+
<!--
116+
--kubeconfig string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "/etc/kubernetes/admin.conf"
117+
-->
118+
--kubeconfig string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值: "/etc/kubernetes/admin.conf"
119+
</td>
120+
</tr>
121+
<tr>
122+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
123+
<p>
124+
<!--
125+
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.
126+
-->
127+
用于和集群通信的 KubeConfig 文件。如果它没有被设置,那么 kubeadm 将会搜索一个已经存在于标准路径的 KubeConfig 文件。
128+
</p>
129+
</td>
130+
</tr>
131+
132+
<tr>
133+
<td colspan="2">--patches string</td>
134+
</tr>
135+
<tr>
136+
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
137+
<!--
138+
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.
139+
-->
140+
包含名为 &quot;target[suffix][+patchtype].extension&quot; 的文件的目录的路径。
141+
例如,&quot;kube-apiserver0+merge.yaml&quot;或仅仅是 &quot;etcd.json&quot;
142+
&quot;target&quot; 可以是 &quot;kube-apiserver&quot;&quot;kube-controller-manager&quot;&quot;kube-scheduler&quot;&quot;etcd&quot;&quot;kubeletconfiguration&quot; 之一。
143+
&quot;patchtype&quot; 可以是 &quot;strategic&quot;&quot;merge&quot; 或者 &quot;json&quot; 之一,
144+
并且它们与 kubectl 支持的补丁格式相同。
145+
默认的 &quot;patchtype&quot;&quot;strategic&quot;
146+
&quot;extension&quot; 必须是&quot;json&quot;&quot;yaml&quot;
147+
&quot;suffix&quot; 是一个可选字符串,可用于确定首先按字母顺序应用哪些补丁。
148+
</p></td>
149+
</tr>
150+
151+
</tbody>
152+
</table>
153+
154+
<!--
155+
### Options inherited from parent commands
156+
-->
157+
### 从父命令继承的选项
158+
159+
<table style="width: 100%; table-layout: fixed;">
160+
<colgroup>
161+
<col span="1" style="width: 10px;" />
162+
<col span="1" />
163+
</colgroup>
164+
<tbody>
165+
166+
<tr>
167+
<td colspan="2">--rootfs string</td>
168+
</tr>
169+
<tr>
170+
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
171+
<!--
172+
The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path.
173+
-->
174+
到“真实”主机根文件系统的路径。设置此参数将导致 kubeadm 切换到所提供的路径。
175+
</p>
176+
</td>
177+
</tr>
178+
179+
</tbody>
180+
</table>

0 commit comments

Comments
 (0)