Skip to content

Commit 3858ae4

Browse files
authored
Merge pull request #53084 from my-git9/npe-12072
[zh-cn]sync kubeadm_init_phase_control-plane_{apiserver,controller-manager}
2 parents 8f5907a + eb71721 commit 3858ae4

File tree

2 files changed

+57
-43
lines changed

2 files changed

+57
-43
lines changed

content/zh-cn/docs/reference/setup-tools/kubeadm/generated/kubeadm_init/kubeadm_init_phase_control-plane_apiserver.md

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
<!--
2-
Generates the kube-apiserver static Pod manifest
3-
-->
4-
生成 kube-apiserver 静态 Pod 清单。
5-
61
<!--
72
### Synopsis
83
-->
@@ -33,7 +28,8 @@ kubeadm init phase control-plane apiserver [flags]
3328
<td colspan="2">--apiserver-advertise-address string</td>
3429
</tr>
3530
<tr>
36-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
31+
<td></td>
32+
<td style="line-height: 130%; word-wrap: break-word;">
3733
<p>
3834
<!--
3935
The IP address the API Server will advertise it's listening on. If not set the default network interface will be used.
@@ -52,7 +48,8 @@ API 服务器所公布的其正在监听的 IP 地址。如果未设置,将使
5248
</td>
5349
</tr>
5450
<tr>
55-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
51+
<td></td>
52+
<td style="line-height: 130%; word-wrap: break-word;">
5653
<p>
5754
<!--
5855
Port for the API Server to bind to.
@@ -66,7 +63,8 @@ Port for the API Server to bind to.
6663
<td colspan="2">--apiserver-extra-args <!--&lt;comma-separated 'key=value' pairs&gt;-->&lt;逗号分隔的 'key=value' 对&gt;</td>
6764
</tr>
6865
<tr>
69-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
66+
<td></td>
67+
<td style="line-height: 130%; word-wrap: break-word;">
7068
<p>
7169
<!--
7270
A set of extra flags to pass to the API Server or override default ones in form of &lt;flagname&gt;=&lt;value&gt;
@@ -86,7 +84,8 @@ A set of extra flags to pass to the API Server or override default ones in form
8684
</td>
8785
</tr>
8886
<tr>
89-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
87+
<td></td>
88+
<td style="line-height: 130%; word-wrap: break-word;">
9089
<p>
9190
<!--
9291
The path where to save and store the certificates.
@@ -100,7 +99,8 @@ The path where to save and store the certificates.
10099
<td colspan="2">--config string</td>
101100
</tr>
102101
<tr>
103-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
102+
<td></td>
103+
<td style="line-height: 130%; word-wrap: break-word;">
104104
<p>
105105
<!--
106106
Path to a kubeadm configuration file.
@@ -114,7 +114,8 @@ kubeadm 配置文件的路径。
114114
<td colspan="2">--control-plane-endpoint string</td>
115115
</tr>
116116
<tr>
117-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
117+
<td></td>
118+
<td style="line-height: 130%; word-wrap: break-word;">
118119
<p>
119120
<!--
120121
Specify a stable IP address or DNS name for the control plane.
@@ -127,7 +128,8 @@ Specify a stable IP address or DNS name for the control plane.
127128
<td colspan="2">--dry-run</td>
128129
</tr>
129130
<tr>
130-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
131+
<td></td>
132+
<td style="line-height: 130%; word-wrap: break-word;">
131133
<p>
132134
<!--
133135
Don't apply any changes; just output what would be done.
@@ -141,22 +143,23 @@ Don't apply any changes; just output what would be done.
141143
<td colspan="2">--feature-gates string</td>
142144
</tr>
143145
<tr>
144-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
146+
<td></td>
147+
<td style="line-height: 130%; word-wrap: break-word;">
145148
<p>
146149
<!--
147150
A set of key=value pairs that describe feature gates for various features. Options are:<br/>
148151
ControlPlaneKubeletLocalMode=true|false (BETA - default=true)<br/>
149-
NodeLocalCRISocket=true|false (ALPHA - default=false)<br/>
152+
NodeLocalCRISocket=true|false (BETA - default=true)<br/>
150153
PublicKeysECDSA=true|false (DEPRECATED - default=false)<br/>
151154
RootlessControlPlane=true|false (ALPHA - default=false)<br/>
152-
WaitForAllControlPlaneComponents=true|false (BETA - default=true)
155+
WaitForAllControlPlaneComponents=true|false (default=true)
153156
-->
154157
一组键值对,用于描述各种功能特性的特性门控。选项是:<br/>
155158
ControlPlaneKubeletLocalMode=true|false (BETA - 默认值=true)<br/>
156-
NodeLocalCRISocket=true|false (ALPHA - 默认值=false)<br/>
159+
NodeLocalCRISocket=true|false (BETA - 默认值=true)<br/>
157160
PublicKeysECDSA=true|false (DEPRECATED - 默认值=false)<br/>
158161
RootlessControlPlane=true|false (ALPHA - 默认值=false)<br/>
159-
WaitForAllControlPlaneComponents=true|false (BETA - 默认值=true)
162+
WaitForAllControlPlaneComponents=true|false (默认值=true)
160163
</p>
161164
</td>
162165
</tr>
@@ -165,7 +168,8 @@ WaitForAllControlPlaneComponents=true|false (BETA - 默认值=true)
165168
<td colspan="2">-h, --help</td>
166169
</tr>
167170
<tr>
168-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
171+
<td></td>
172+
<td style="line-height: 130%; word-wrap: break-word;">
169173
<p>
170174
<!--
171175
help for apiserver
@@ -184,7 +188,8 @@ apiserver 操作的帮助命令。
184188
</td>
185189
</tr>
186190
<tr>
187-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
191+
<td></td>
192+
<td style="line-height: 130%; word-wrap: break-word;">
188193
<p>
189194
<!--
190195
Choose a container registry to pull control plane images from
@@ -203,7 +208,8 @@ Choose a container registry to pull control plane images from
203208
</td>
204209
</tr>
205210
<tr>
206-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
211+
<td></td>
212+
<td style="line-height: 130%; word-wrap: break-word;">
207213
<p>
208214
<!--
209215
Choose a specific Kubernetes version for the control plane.
@@ -217,7 +223,8 @@ Choose a specific Kubernetes version for the control plane.
217223
<td colspan="2">--patches string</td>
218224
</tr>
219225
<tr>
220-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
226+
<td></td>
227+
<td style="line-height: 130%; word-wrap: break-word;">
221228
<p>
222229
<!--
223230
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.
@@ -243,7 +250,8 @@ Path to a directory that contains files named &quot;target[suffix][+patchtype].e
243250
</td>
244251
</tr>
245252
<tr>
246-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
253+
<td></td>
254+
<td style="line-height: 130%; word-wrap: break-word;">
247255
<p>
248256
<!--
249257
Use alternative range of IP address for service VIPs.
@@ -272,7 +280,8 @@ Use alternative range of IP address for service VIPs.
272280
<td colspan="2">--rootfs string</td>
273281
</tr>
274282
<tr>
275-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
283+
<td></td>
284+
<td style="line-height: 130%; word-wrap: break-word;">
276285
<p>
277286
<!--
278287
[EXPERIMENTAL] The path to the 'real' host root filesystem.

content/zh-cn/docs/reference/setup-tools/kubeadm/generated/kubeadm_init/kubeadm_init_phase_control-plane_controller-manager.md

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
<!--
2-
Generates the kube-controller-manager static Pod manifest
3-
-->
4-
生成 kube-controller-manager 静态 Pod 清单。
5-
61
<!--
72
### Synopsis
83
-->
@@ -22,19 +17,19 @@ kubeadm init phase control-plane controller-manager [flags]
2217
-->
2318
### 选项
2419

25-
<table style="width: 100%; table-layout: fixed;">
20+
<table style="width: 100%; table-layout: fixed;">
2621
<colgroup>
2722
<col span="1" style="width: 10px;" />
2823
<col span="1" />
2924
</colgroup>
3025
<tbody>
3126

3227
<tr>
33-
<!-- td colspan="2">--cert-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "/etc/kubernetes/pki"</td -->
34-
<td colspan="2">--cert-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值:"/etc/kubernetes/pki"</td>
28+
<td colspan="2">--cert-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "/etc/kubernetes/pki"-->默认值:"/etc/kubernetes/pki"</td>
3529
</tr>
3630
<tr>
37-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
31+
<td></td>
32+
<td style="line-height: 130%; word-wrap: break-word;">
3833
<p>
3934
<!--
4035
The path where to save and store the certificates.
@@ -48,7 +43,8 @@ The path where to save and store the certificates.
4843
<td colspan="2">--config string</td>
4944
</tr>
5045
<tr>
51-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
46+
<td></td>
47+
<td style="line-height: 130%; word-wrap: break-word;">
5248
<p>
5349
<!--
5450
Path to a kubeadm configuration file.
@@ -62,7 +58,8 @@ kubeadm 配置文件的路径。
6258
<td colspan="2">--controller-manager-extra-args &lt;comma-separated 'key=value' pairs&gt;</td>
6359
</tr>
6460
<tr>
65-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
61+
<td></td>
62+
<td style="line-height: 130%; word-wrap: break-word;">
6663
<p>
6764
<!--
6865
A set of extra flags to pass to the Controller Manager or override default ones in form of &lt;flagname&gt;=&lt;value&gt;
@@ -77,19 +74,22 @@ A set of extra flags to pass to the Controller Manager or override default ones
7774
<td colspan="2">--dry-run</td>
7875
</tr>
7976
<tr>
80-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
77+
<td></td>
78+
<td style="line-height: 130%; word-wrap: break-word;"><p>
8179
<!--
8280
Don't apply any changes; just output what would be done.
8381
-->
8482
不做任何更改;只输出将要执行的操作。
85-
</p></td>
83+
</p>
84+
</td>
8685
</tr>
8786

8887
<tr>
8988
<td colspan="2">-h, --help</td>
9089
</tr>
9190
<tr>
92-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
91+
<td></td>
92+
<td style="line-height: 130%; word-wrap: break-word;">
9393
<p>
9494
<!--
9595
help for controller-manager</p>
@@ -108,7 +108,8 @@ controller-manager 操作的帮助命令。
108108
</td>
109109
</tr>
110110
<tr>
111-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
111+
<td></td>
112+
<td style="line-height: 130%; word-wrap: break-word;">
112113
<p>
113114
<!--
114115
Choose a container registry to pull control plane images from
@@ -127,7 +128,8 @@ Choose a container registry to pull control plane images from
127128
</td>
128129
</tr>
129130
<tr>
130-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
131+
<td></td>
132+
<td style="line-height: 130%; word-wrap: break-word;">
131133
<p>
132134
<!--
133135
Choose a specific Kubernetes version for the control plane.
@@ -141,7 +143,8 @@ Choose a specific Kubernetes version for the control plane.
141143
<td colspan="2">--patches string</td>
142144
</tr>
143145
<tr>
144-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
146+
<td></td>
147+
<td style="line-height: 130%; word-wrap: break-word;">
145148
<p>
146149
<!--
147150
Path to a directory that contains files named "target[suffix][+patchtype].extension". For example, "kube-apiserver0+merge.yaml" or just "etcd.json". "target" can be one of "kube-apiserver", "kube-controller-manager", "kube-scheduler", "etcd", "kubeletconfiguration". "patchtype" can be one of "strategic", "merge" or "json" and they match the patch formats supported by kubectl. The default "patchtype" is "strategic". "extension" must be either "json" or "yaml". "suffix" is an optional string that can be used to determine which patches are applied first alpha-numerically.
@@ -161,7 +164,8 @@ Path to a directory that contains files named "target[suffix][+patchtype].extens
161164
<td colspan="2">--pod-network-cidr string</td>
162165
</tr>
163166
<tr>
164-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
167+
<td></td>
168+
<td style="line-height: 130%; word-wrap: break-word;">
165169
<p>
166170
<!--
167171
Specify range of IP addresses for the pod network. If set, the control plane will automatically allocate CIDRs for every node.
@@ -179,7 +183,7 @@ Specify range of IP addresses for the pod network. If set, the control plane wil
179183
-->
180184
### 从父命令继承的选项
181185

182-
<table style="width: 100%; table-layout: fixed;">
186+
<table style="width: 100%; table-layout: fixed;">
183187
<colgroup>
184188
<col span="1" style="width: 10px;" />
185189
<col span="1" />
@@ -190,7 +194,8 @@ Specify range of IP addresses for the pod network. If set, the control plane wil
190194
<td colspan="2">--rootfs string</td>
191195
</tr>
192196
<tr>
193-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
197+
<td></td>
198+
<td style="line-height: 130%; word-wrap: break-word;">
194199
<p>
195200
<!--
196201
[EXPERIMENTAL] The path to the 'real' host root filesystem.

0 commit comments

Comments
 (0)