Skip to content

Commit aaa8e7a

Browse files
committed
[zh-cn]sync kubeadm_join/_index.md
Signed-off-by: xin.li <[email protected]>
1 parent 68f184b commit aaa8e7a

File tree

1 file changed

+73
-40
lines changed
  • content/zh-cn/docs/reference/setup-tools/kubeadm/generated/kubeadm_join

1 file changed

+73
-40
lines changed

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

Lines changed: 73 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ Kubernetes 控制平面节点提供的根证书颁发机构(CA)的公钥。
6060
此参数的值指定为 "&lt;hash-type&gt;:&lt;hex-encoded-value&gt;",
6161
其中支持的哈希类型为 "sha256"。哈希是通过 Subject Public Key Info(SPKI)对象的字节计算的(如 RFC7469)。
6262
这个值可以从 "kubeadm init" 的输出中获得,或者可以使用标准工具进行计算。
63-
可以多次重复 --discovery-token-ca-cert-hash 参数以允许多个公钥。
63+
可以多次重复 `--discovery-token-ca-cert-hash` 参数以允许多个公钥。
6464

6565
<!--
6666
If you cannot know the CA public key hash ahead of time, you can pass
6767
the --discovery-token-unsafe-skip-ca-verification flag to disable this
6868
verification. This weakens the kubeadm security model since other nodes
6969
can potentially impersonate the Kubernetes Control Plane.
7070
-->
71-
如果无法提前知道 CA 公钥哈希,则可以通过 --discovery-token-unsafe-skip-ca-verification 参数禁用此验证。
71+
如果无法提前知道 CA 公钥哈希,则可以通过 `--discovery-token-unsafe-skip-ca-verification` 参数禁用此验证。
7272
这削弱了 kubeadm 安全模型,因为其他节点可能会模仿 Kubernetes 控制平面节点。
7373

7474
<!--
@@ -85,7 +85,7 @@ Often times the same token is used for both parts. In this case, the
8585
TLS 引导机制也通过共享令牌驱动。
8686
这用于向 Kubernetes 控制平面节点进行临时的身份验证,以提交本地创建的密钥对的证书签名请求(CSR)。
8787
默认情况下,kubeadm 将设置 Kubernetes 控制平面节点自动批准这些签名请求。
88-
这个令牌通过 --tls-bootstrap-token abcdef.1234567890abcdef 参数传入。
88+
这个令牌通过 `--tls-bootstrap-token abcdef.1234567890abcdef` 参数传入。
8989

9090
通常两个部分会使用相同的令牌。
9191
在这种情况下可以使用 --token 参数,而不是单独指定每个令牌。
@@ -108,7 +108,7 @@ control-plane-join Join a machine as a control plane instance
108108
/etcd Add a new local etcd member
109109
/update-status Register the new control-plane node into the ClusterStatus maintained in the kubeadm-config ConfigMap (DEPRECATED)
110110
/mark-control-plane Mark a node as a control-plane
111-
wait-control-plane EXPERIMENTAL: Wait for the control plane to start
111+
wait-control-plane Wait for the control plane to start
112112
```
113113
-->
114114
1. preflight:运行接入前检查
@@ -124,7 +124,7 @@ wait-control-plane EXPERIMENTAL: Wait for the control plane to start
124124
3. mark-control-plane:将节点标记为控制平面
125125
5. wait-control-plane:[实验] 等待控制平面启动
126126

127-
```
127+
```shell
128128
kubeadm join [api-server-endpoint] [flags]
129129
```
130130

@@ -133,7 +133,7 @@ kubeadm join [api-server-endpoint] [flags]
133133
-->
134134
### 选项
135135

136-
<table style="width: 100%; table-layout: fixed;">
136+
<table style="width: 100%; table-layout: fixed;">
137137
<colgroup>
138138
<col span="1" style="width: 10px;" />
139139
<col span="1" />
@@ -144,11 +144,13 @@ kubeadm join [api-server-endpoint] [flags]
144144
</tr>
145145
<tr>
146146
<td></td><td style="line-height: 130%; word-wrap: break-word;">
147+
<p>
147148
<!--
148149
If the node should host a new control plane instance, the IP address the API Server will advertise it's listening on.
149150
If not set the default network interface will be used.
150151
-->
151-
<p>如果该节点托管一个新的控制平面实例,则 API 服务器将公布其正在侦听的 IP 地址。如果未设置,则使用默认网络接口。</p>
152+
如果该节点托管一个新的控制平面实例,则 API 服务器将公布其正在侦听的 IP 地址。如果未设置,则使用默认网络接口。
153+
</p>
152154
</td>
153155
</tr>
154156

@@ -162,10 +164,12 @@ If not set the default network interface will be used.
162164
</tr>
163165
<tr>
164166
<td></td><td style="line-height: 130%; word-wrap: break-word;">
167+
<p>
165168
<!--
166-
<p>If the node should host a new control plane instance, the port for the API Server to bind to.</p>
169+
If the node should host a new control plane instance, the port for the API Server to bind to.
167170
-->
168-
<p>如果节点应该托管新的控制平面实例,则为 API 服务器要绑定的端口。</p>
171+
如果节点应该托管新的控制平面实例,则为 API 服务器要绑定的端口。
172+
</p>
169173
</td>
170174
</tr>
171175

@@ -189,10 +193,12 @@ Use this key to decrypt the certificate secrets uploaded by init. The certificat
189193
</tr>
190194
<tr>
191195
<td></td><td style="line-height: 130%; word-wrap: break-word;">
196+
<p>
192197
<!--
193-
<p>Path to a kubeadm configuration file.</p>
198+
Path to a kubeadm configuration file.
194199
-->
195-
<p>kubeadm 配置文件的路径。</p>
200+
kubeadm 配置文件的路径。
201+
</p>
196202
</td>
197203
</tr>
198204

@@ -201,10 +207,12 @@ Use this key to decrypt the certificate secrets uploaded by init. The certificat
201207
</tr>
202208
<tr>
203209
<td></td><td style="line-height: 130%; word-wrap: break-word;">
210+
<p>
204211
<!--
205-
<p>Create a new control plane instance on this node</p>
212+
Create a new control plane instance on this node
206213
-->
207-
<p>在此节点上创建一个新的控制平面实例。</p>
214+
在此节点上创建一个新的控制平面实例。
215+
</p>
208216
</td>
209217
</tr>
210218

@@ -213,12 +221,14 @@ Use this key to decrypt the certificate secrets uploaded by init. The certificat
213221
</tr>
214222
<tr>
215223
<td></td><td style="line-height: 130%; word-wrap: break-word;">
224+
<p>
216225
<!--
217-
<p>Path to the CRI socket to connect. If empty kubeadm will try to auto-detect this value;
218-
use this option only if you have more than one CRI installed or if you have non-standard CRI socket.</p>
226+
Path to the CRI socket to connect. If empty kubeadm will try to auto-detect this value;
227+
use this option only if you have more than one CRI installed or if you have non-standard CRI socket.
219228
-->
220-
<p>要连接的 CRI 套接字的路径。如果为空,则 kubeadm 将尝试自动检测此值;
221-
仅当安装了多个 CRI 或存在非标准的 CRI 套接字时,才使用此选项。</p>
229+
要连接的 CRI 套接字的路径。如果为空,则 kubeadm 将尝试自动检测此值;
230+
仅当安装了多个 CRI 或存在非标准的 CRI 套接字时,才使用此选项。
231+
</p>
222232
</td>
223233
</tr>
224234

@@ -227,10 +237,12 @@ use this option only if you have more than one CRI installed or if you have non-
227237
</tr>
228238
<tr>
229239
<td></td><td style="line-height: 130%; word-wrap: break-word;">
240+
<p>
230241
<!--
231-
<p>For file-based discovery, a file or URL from which to load cluster information.</p>
242+
For file-based discovery, a file or URL from which to load cluster information.
232243
-->
233-
<p>对于基于文件的发现,给出用于加载集群信息的文件或者 URL。</p>
244+
对于基于文件的发现,给出用于加载集群信息的文件或者 URL。
245+
</p>
234246
</td>
235247
</tr>
236248

@@ -239,10 +251,12 @@ use this option only if you have more than one CRI installed or if you have non-
239251
</tr>
240252
<tr>
241253
<td></td><td style="line-height: 130%; word-wrap: break-word;">
254+
<p>
242255
<!--
243-
<p>For token-based discovery, the token used to validate cluster information fetched from the API server.</p>
256+
For token-based discovery, the token used to validate cluster information fetched from the API server.
244257
-->
245-
<p>对于基于令牌的发现,该令牌用于验证从 API 服务器获取的集群信息。</p>
258+
对于基于令牌的发现,该令牌用于验证从 API 服务器获取的集群信息。
259+
</p>
246260
</td>
247261
</tr>
248262

@@ -251,10 +265,12 @@ use this option only if you have more than one CRI installed or if you have non-
251265
</tr>
252266
<tr>
253267
<td></td><td style="line-height: 130%; word-wrap: break-word;">
268+
<p>
254269
<!--
255-
<p>For token-based discovery, validate that the root CA public key matches this hash (format: "&lt;type&gt;:&lt;value&gt;").</p>
270+
For token-based discovery, validate that the root CA public key matches this hash (format: "&lt;type&gt;:&lt;value&gt;").
256271
-->
257-
<p>对基于令牌的发现,验证根 CA 公钥是否与此哈希匹配 (格式:"&lt;type&gt;:&lt;value&gt;")。</p>
272+
对基于令牌的发现,验证根 CA 公钥是否与此哈希匹配 (格式:"&lt;type&gt;:&lt;value&gt;")。
273+
</p>
258274
</td>
259275
</tr>
260276

@@ -263,34 +279,40 @@ use this option only if you have more than one CRI installed or if you have non-
263279
</tr>
264280
<tr>
265281
<td></td><td style="line-height: 130%; word-wrap: break-word;">
282+
<p>
266283
<!--
267-
<p>For token-based discovery, allow joining without --discovery-token-ca-cert-hash pinning.</p>
284+
For token-based discovery, allow joining without --discovery-token-ca-cert-hash pinning.
268285
-->
269-
<p>对于基于令牌的发现,允许在未关联 --discovery-token-ca-cert-hash 参数的情况下添加节点。</p>
286+
对于基于令牌的发现,允许在未关联 --discovery-token-ca-cert-hash 参数的情况下添加节点。
287+
</p>
270288
</td>
271289
</tr>
272290

273291
<tr>
274292
<td colspan="2">--dry-run</td>
275293
</tr>
276294
<tr>
277-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
295+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
296+
<p>
278297
<!--
279298
Don't apply any changes; just output what would be done.
280299
-->
281300
不做任何更改;只输出将要执行的操作。
282-
</p></td>
301+
</p>
302+
</td>
283303
</tr>
284304

285305
<tr>
286306
<td colspan="2">-h, --help</td>
287307
</tr>
288308
<tr>
289309
<td></td><td style="line-height: 130%; word-wrap: break-word;">
310+
<p>
290311
<!--
291-
<p>help for join</p>
312+
help for join
292313
-->
293-
<p>join 操作的帮助命令。</p>
314+
join 操作的帮助命令。
315+
</p>
294316
</td>
295317
</tr>
296318

@@ -299,10 +321,13 @@ Don't apply any changes; just output what would be done.
299321
</tr>
300322
<tr>
301323
<td></td><td style="line-height: 130%; word-wrap: break-word;">
324+
<p>
302325
<!--
303-
<p>A list of checks whose errors will be shown as warnings. Example: 'IsPrivilegedUser,Swap'. Value 'all' ignores errors from all checks.</p>
326+
A list of checks whose errors will be shown as warnings. Example: 'IsPrivilegedUser,Swap'. Value 'all' ignores errors from all checks.
304327
-->
305-
<p>错误将显示为警告的检查列表;例如:'IsPrivilegedUser,Swap'。取值为 'all' 时将忽略检查中的所有错误。</p>
328+
错误将显示为警告的检查列表;例如:'IsPrivilegedUser,Swap'。
329+
取值为 'all' 时将忽略检查中的所有错误。
330+
</p>
306331
</td>
307332
</tr>
308333

@@ -311,10 +336,12 @@ Don't apply any changes; just output what would be done.
311336
</tr>
312337
<tr>
313338
<td></td><td style="line-height: 130%; word-wrap: break-word;">
339+
<p>
314340
<!--
315-
<p>Specify the node name.</p>
341+
Specify the node name.
316342
-->
317-
<p>指定节点的名称。</p>
343+
指定节点的名称。
344+
</p>
318345
</td>
319346
</tr>
320347

@@ -323,15 +350,17 @@ Don't apply any changes; just output what would be done.
323350
</tr>
324351
<tr>
325352
<td></td><td style="line-height: 130%; word-wrap: break-word;">
353+
<p>
326354
<!--
327-
<p>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.</p>
355+
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.
328356
-->
329-
<p>包含名为 "target[suffix][+patchtype].extension" 的文件的目录的路径。
357+
包含名为 "target[suffix][+patchtype].extension" 的文件的目录的路径。
330358
例如,"kube-apiserver0+merge.yaml" 或仅仅是 "etcd.json"。
331359
"target" 可以是 “kube-apiserver”、“kube-controller-manager”、“kube-scheduler”、“etcd”、“kubeletconfiguration” 之一,
332360
"patchtype" 可以是 "strategic"、"merge" 或 "json" 之一,并且它们与 kubectl 支持的补丁格式匹配。
333361
默认的 "patchtype" 为 "strategic"。 "extension" 必须为 "json" 或 "yaml"。
334-
"suffix" 是一个可选字符串,可用于确定首先按字母顺序应用哪些补丁。</p>
362+
"suffix" 是一个可选字符串,可用于确定首先按字母顺序应用哪些补丁。
363+
</p>
335364
</td>
336365
</tr>
337366

@@ -340,10 +369,12 @@ Don't apply any changes; just output what would be done.
340369
</tr>
341370
<tr>
342371
<td></td><td style="line-height: 130%; word-wrap: break-word;">
372+
<p>
343373
<!--
344-
<p>List of phases to be skipped</p>
374+
List of phases to be skipped
345375
-->
346-
<p>要跳过的阶段列表。</p>
376+
要跳过的阶段列表。
377+
</p>
347378
</td>
348379
</tr>
349380

@@ -352,10 +383,12 @@ Don't apply any changes; just output what would be done.
352383
</tr>
353384
<tr>
354385
<td></td><td style="line-height: 130%; word-wrap: break-word;">
386+
<p>
355387
<!--
356-
<p>Specify the token used to temporarily authenticate with the Kubernetes Control Plane while joining the node.</p>
388+
Specify the token used to temporarily authenticate with the Kubernetes Control Plane while joining the node.
357389
-->
358-
<p>指定在加入节点时用于临时通过 Kubernetes 控制平面进行身份验证的令牌。</p>
390+
指定在加入节点时用于临时通过 Kubernetes 控制平面进行身份验证的令牌。
391+
</p>
359392
</td>
360393
</tr>
361394

0 commit comments

Comments
 (0)