Skip to content

Commit 68f184b

Browse files
authored
Merge pull request #52927 from my-git9/npe-31311
[zh-cn]sync kubeadm_join_phase_kubelet-start kubeadm_join_phase_control-plane-join_etcd
2 parents b567010 + e8d91dc commit 68f184b

File tree

2 files changed

+54
-46
lines changed

2 files changed

+54
-46
lines changed

content/zh-cn/docs/reference/setup-tools/kubeadm/generated/kubeadm_join/kubeadm_join_phase_control-plane-join_etcd.md

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
<!--
2-
Add a new local etcd member
3-
-->
4-
添加一个新的本地 etcd 成员。
5-
61
<!--
72
### Synopsis
83
-->
@@ -13,7 +8,7 @@ Add a new local etcd member
138
-->
149
添加新的本地 etcd 成员。
1510

16-
```
11+
```shell
1712
kubeadm join phase control-plane-join etcd [flags]
1813
```
1914

@@ -22,7 +17,7 @@ kubeadm join phase control-plane-join etcd [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" />
@@ -34,11 +29,12 @@ kubeadm join phase control-plane-join etcd [flags]
3429
</tr>
3530
<tr>
3631
<td></td><td style="line-height: 130%; word-wrap: break-word;">
32+
<p>
3733
<!--
3834
If the node should host a new control plane instance, the IP address the API Server will advertise it's listening on. If not set the default network interface will be used.
3935
-->
40-
<p>
41-
如果该节点托管一个新的控制平面实例,则 API 服务器将公布其正在侦听的 IP 地址。如果未设置,则使用默认网络接口。
36+
如果该节点托管一个新的控制平面实例,则 API 服务器将公布其正在侦听的 IP 地址。
37+
如果未设置,则使用默认网络接口。
4238
</p>
4339
</td>
4440
</tr>
@@ -48,10 +44,10 @@ If the node should host a new control plane instance, the IP address the API Ser
4844
</tr>
4945
<tr>
5046
<td></td><td style="line-height: 130%; word-wrap: break-word;">
47+
<p>
5148
<!--
5249
Path to a kubeadm configuration file.
5350
-->
54-
<p>
5551
kubeadm 配置文件的路径。
5652
</p>
5753
</td>
@@ -61,11 +57,12 @@ kubeadm 配置文件的路径。
6157
<td colspan="2">--control-plane</td>
6258
</tr>
6359
<tr>
64-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
60+
<td></td>
61+
<td style="line-height: 130%; word-wrap: break-word;">
62+
<p>
6563
<!--
6664
Create a new control plane instance on this node
6765
-->
68-
<p>
6966
在此节点上创建一个新的控制平面实例。
7067
</p>
7168
</td>
@@ -75,11 +72,12 @@ Create a new control plane instance on this node
7572
<td colspan="2">--dry-run</td>
7673
</tr>
7774
<tr>
78-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
75+
<td></td>
76+
<td style="line-height: 130%; word-wrap: break-word;">
77+
<p>
7978
<!--
8079
Don't apply any changes; just output what would be done.
8180
-->
82-
<p>
8381
不做任何更改;只输出将要执行的操作。
8482
</p>
8583
</td>
@@ -90,10 +88,10 @@ Don't apply any changes; just output what would be done.
9088
</tr>
9189
<tr>
9290
<td></td><td style="line-height: 130%; word-wrap: break-word;">
91+
<p>
9392
<!--
9493
help for etcd
9594
-->
96-
<p>
9795
etcd 操作的帮助命令。
9896
</p>
9997
</td>
@@ -103,11 +101,12 @@ etcd 操作的帮助命令。
103101
<td colspan="2">--node-name string</td>
104102
</tr>
105103
<tr>
106-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
104+
<td></td>
105+
<td style="line-height: 130%; word-wrap: break-word;">
106+
<p>
107107
<!--
108108
Specify the node name.
109109
-->
110-
<p>
111110
指定节点的名称。
112111
</p>
113112
</td>
@@ -116,15 +115,20 @@ Specify the node name.
116115
<td colspan="2">--patches string</td>
117116
</tr>
118117
<tr>
119-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
120-
<!-- 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. -->
118+
<td></td>
119+
<td style="line-height: 130%; word-wrap: break-word;">
120+
<p>
121+
<!--
122+
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.
123+
-->
121124
包含名为 “target[suffix][+patchtype].extension” 的文件的目录的路径。
122125
例如,“kube-apiserver0+merge.yaml” 或只是 “etcd.json”。
123126
“target” 可以是 “kube-apiserver”、“kube-controller-manager”、“kube-scheduler”、“etcd” 、”kubeletconfiguration”之一。
124127
“patchtype” 可以是 “strategic”、“merge” 或 “json”,它们匹配 kubectl 支持的补丁格式。
125128
默认的 “patchtype” 是 “strategic”。“extension” 必须是 “json” 或 “yaml”。
126129
“suffix” 是一个可选字符串,可用于基于字母数字顺序确定首先应用哪些补丁。
127-
</p></td>
130+
</p>
131+
</td>
128132
</tr>
129133

130134
</tbody>
@@ -135,7 +139,7 @@ Specify the node name.
135139
-->
136140
### 从父命令中继承的选项
137141

138-
<table style="width: 100%; table-layout: fixed;">
142+
<table style="width: 100%; table-layout: fixed;">
139143
<colgroup>
140144
<col span="1" style="width: 10px;" />
141145
<col span="1" />
@@ -147,10 +151,10 @@ Specify the node name.
147151
</tr>
148152
<tr>
149153
<td></td><td style="line-height: 130%; word-wrap: break-word;">
154+
<p>
150155
<!--
151156
[EXPERIMENTAL] The path to the 'real' host root filesystem.
152157
-->
153-
<p>
154158
[实验] 到 '真实' 主机根文件系统的路径。
155159
</p>
156160
</td>

content/zh-cn/docs/reference/setup-tools/kubeadm/generated/kubeadm_join/kubeadm_join_phase_kubelet-start.md

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
<!--
2-
Write kubelet settings, certificates and (re)start the kubelet
3-
-->
4-
配置 kubelet、证书并(重新)启动 kubelet。
5-
61
<!--
72
### Synopsis
83
-->
@@ -11,9 +6,10 @@ Write kubelet settings, certificates and (re)start the kubelet
116
<!--
127
Write a file with KubeletConfiguration and an environment file with node specific kubelet settings, and then (re)start kubelet.
138
-->
14-
生成一个包含 KubeletConfiguration 的文件和一个包含特定于节点的 kubelet 配置的环境文件,然后(重新)启动 kubelet。
9+
生成一个包含 KubeletConfiguration 的文件和一个包含特定于节点的 kubelet
10+
配置的环境文件,然后(重新)启动 kubelet。
1511

16-
```
12+
```shell
1713
kubeadm join phase kubelet-start [api-server-endpoint] [flags]
1814
```
1915

@@ -22,7 +18,7 @@ kubeadm join phase kubelet-start [api-server-endpoint] [flags]
2218
-->
2319
### 选项
2420

25-
<table style="width: 100%; table-layout: fixed;">
21+
<table style="width: 100%; table-layout: fixed;">
2622
<colgroup>
2723
<col span="1" style="width: 10px;" />
2824
<col span="1" />
@@ -34,10 +30,12 @@ kubeadm join phase kubelet-start [api-server-endpoint] [flags]
3430
</tr>
3531
<tr>
3632
<td></td><td style="line-height: 130%; word-wrap: break-word;">
33+
<p>
3734
<!--
3835
Path to a kubeadm configuration file.
3936
-->
4037
kubeadm 配置文件的路径。
38+
</p>
4139
</td>
4240
</tr>
4341

@@ -46,10 +44,10 @@ kubeadm 配置文件的路径。
4644
</tr>
4745
<tr>
4846
<td></td><td style="line-height: 130%; word-wrap: break-word;">
47+
<p>
4948
<!--
5049
Path to the CRI socket to connect. If empty kubeadm will try to auto-detect this value; use this option only if you have more than one CRI installed or if you have non-standard CRI socket.
5150
-->
52-
<p>
5351
提供给 CRI 套接字建立连接的路径。如果为空,则 kubeadm 将尝试自动检测该值;
5452
仅当安装了多个 CRI 或存在非标准的 CRI 套接字时,才使用此选项。
5553
</p>
@@ -61,10 +59,10 @@ Path to the CRI socket to connect. If empty kubeadm will try to auto-detect this
6159
</tr>
6260
<tr>
6361
<td></td><td style="line-height: 130%; word-wrap: break-word;">
62+
<p>
6463
<!--
6564
For file-based discovery, a file or URL from which to load cluster information.
6665
-->
67-
<p>
6866
对于基于文件的发现,给出用于加载集群信息的文件或者 URL。
6967
</p>
7068
</td>
@@ -75,10 +73,10 @@ For file-based discovery, a file or URL from which to load cluster information.
7573
</tr>
7674
<tr>
7775
<td></td><td style="line-height: 130%; word-wrap: break-word;">
76+
<p>
7877
<!--
7978
For token-based discovery, the token used to validate cluster information fetched from the API server.
8079
-->
81-
<p>
8280
对于基于令牌的发现,该令牌用于验证从 API 服务器获取的集群信息。
8381
</p>
8482
</td>
@@ -89,10 +87,10 @@ For token-based discovery, the token used to validate cluster information fetche
8987
</tr>
9088
<tr>
9189
<td></td><td style="line-height: 130%; word-wrap: break-word;">
90+
<p>
9291
<!--
9392
For token-based discovery, validate that the root CA public key matches this hash (format: "&lt;type&gt;:&lt;value&gt;").
9493
-->
95-
<p>
9694
对于基于令牌的发现,验证根 CA 公钥是否匹配此哈希值(格式:"&lt;type&gt;:&lt;value&gt;")。
9795
</p>
9896
</td>
@@ -103,10 +101,10 @@ For token-based discovery, validate that the root CA public key matches this has
103101
</tr>
104102
<tr>
105103
<td></td><td style="line-height: 130%; word-wrap: break-word;">
104+
<p>
106105
<!--
107106
For token-based discovery, allow joining without --discovery-token-ca-cert-hash pinning.
108107
-->
109-
<p>
110108
对于基于令牌的发现,允许在未关联 --discovery-token-ca-cert-hash 参数的情况下添加节点。
111109
</p>
112110
</td>
@@ -117,10 +115,10 @@ For token-based discovery, allow joining without --discovery-token-ca-cert-hash
117115
</tr>
118116
<tr>
119117
<td></td><td style="line-height: 130%; word-wrap: break-word;">
118+
<p>
120119
<!--
121120
Don't apply any changes; just output what would be done.
122121
-->
123-
<p>
124122
不做任何更改;只输出将要执行的操作。
125123
</p>
126124
</td>
@@ -131,10 +129,10 @@ Don't apply any changes; just output what would be done.
131129
</tr>
132130
<tr>
133131
<td></td><td style="line-height: 130%; word-wrap: break-word;">
132+
<p>
134133
<!--
135134
help for kubelet-start
136135
-->
137-
<p>
138136
kubelet-start 操作的帮助命令。
139137
</p>
140138
</td>
@@ -145,10 +143,10 @@ kubelet-start 操作的帮助命令。
145143
</tr>
146144
<tr>
147145
<td></td><td style="line-height: 130%; word-wrap: break-word;">
146+
<p>
148147
<!--
149148
Specify the node name.
150149
-->
151-
<p>
152150
指定节点名称。
153151
</p>
154152
</td>
@@ -158,27 +156,33 @@ Specify the node name.
158156
<td colspan="2">--patches string</td>
159157
</tr>
160158
<tr>
161-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
159+
<td></td>
160+
<td style="line-height: 130%; word-wrap: break-word;">
161+
<p>
162162
<!--
163163
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.
164164
-->
165165
目录路径,指向的目录中包含名为 “target[suffix][+patchtype].extension” 的文件。
166166
例如,"kube-apiserver0+merge.yaml" 或 "etcd.json" 这种简单形式。
167-
"target" 可以是 “kube-apiserver”、“kube-controller-manager”、“kube-scheduler”、“etcd”、“kubeletconfiguration” 之一,
167+
"target" 可以是 “kube-apiserver”、“kube-controller-manager”、“kube-scheduler”、
168+
“etcd”、“kubeletconfiguration” 之一,
168169
"patchtype" 可以是 "strategic"、"merge" 或 "json" 之一,并且它们与 kubectl 支持的补丁格式匹配。
169170
默认的 "patchtype" 为 "strategic"。 "extension" 必须为 "json" 或 "yaml"。
170-
"suffix" 是一个可选字符串,可用于确定按字母顺序首先应用哪些补丁。</p></td>
171+
"suffix" 是一个可选字符串,可用于确定按字母顺序首先应用哪些补丁。
172+
</p>
173+
</td>
171174
</tr>
172175

173176
<tr>
174177
<td colspan="2">--tls-bootstrap-token string</td>
175178
</tr>
176179
<tr>
177-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
180+
<td></td>
181+
<td style="line-height: 130%; word-wrap: break-word;">
182+
<p>
178183
<!--
179184
Specify the token used to temporarily authenticate with the Kubernetes Control Plane while joining the node.
180185
-->
181-
<p>
182186
指定在加入节点时用于临时通过 Kubernetes 控制平面进行身份验证的令牌。
183187
</p>
184188
</td>
@@ -189,10 +193,10 @@ Specify the token used to temporarily authenticate with the Kubernetes Control P
189193
</tr>
190194
<tr>
191195
<td></td><td style="line-height: 130%; word-wrap: break-word;">
196+
<p>
192197
<!--
193198
Use this token for both discovery-token and tls-bootstrap-token when those values are not provided.
194199
-->
195-
<p>
196200
如果未提供这些值,则将它们用于 discovery-token 令牌和 tls-bootstrap 令牌。
197201
</p>
198202
</td>
@@ -206,7 +210,7 @@ Use this token for both discovery-token and tls-bootstrap-token when those value
206210
-->
207211
### 从父命令继承的选项
208212

209-
<table style="width: 100%; table-layout: fixed;">
213+
<table style="width: 100%; table-layout: fixed;">
210214
<colgroup>
211215
<col span="1" style="width: 10px;" />
212216
<col span="1" />
@@ -218,10 +222,10 @@ Use this token for both discovery-token and tls-bootstrap-token when those value
218222
</tr>
219223
<tr>
220224
<td></td><td style="line-height: 130%; word-wrap: break-word;">
225+
<p>
221226
<!--
222227
[EXPERIMENTAL] The path to the 'real' host root filesystem.
223228
-->
224-
<p>
225229
[实验] 指向 '真实' 宿主机根文件系统的路径。
226230
</p>
227231
</td>

0 commit comments

Comments
 (0)