Skip to content

Commit 2b0f838

Browse files
authored
Merge pull request #25607 from tengqm/zh-sync-ref-kubeadm
[zh] Sync changes to kubeadm reference
2 parents 5bba8bf + e944fb1 commit 2b0f838

10 files changed

+615
-416
lines changed

content/zh/docs/reference/setup-tools/kubeadm/generated/kubeadm_alpha_kubeconfig_user.md

Lines changed: 15 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,16 @@
22
<!--
33
### Synopsis
44
-->
5-
65
### 概要
76

87
<!--
98
Output a kubeconfig file for an additional user.
109
-->
11-
1210
为其他用户输出 kubeconfig 文件。
1311

1412
<!--
1513
Alpha Disclaimer: this command is currently alpha.
1614
-->
17-
1815
Alpha 免责声明:此命令当前为 Alpha 功能。
1916

2017
```
@@ -23,19 +20,22 @@ kubeadm alpha kubeconfig user [flags]
2320

2421
<!--
2522
### Examples # Output a kubeconfig file for an additional user named foo
26-
-->
2723
24+
```
25+
# Output a kubeconfig file for an additional user named foo using a kubeadm config file bar
26+
kubeadm alpha kubeconfig user --client-name=foo --config=bar
27+
```
28+
-->
2829
### 示例
2930

3031
```
31-
# 为名为 foo 的其他用户输出 kubeconfig 文件
32-
kubeadm alpha kubeconfig user --client-name=foo
32+
# 使用名为 bar 的 kubeadm 配置文件为名为 foo 的另一用户输出 kubeconfig 文件
33+
kubeadm alpha kubeconfig user --client-name=foo --config=bar
3334
```
3435

3536
<!--
3637
### Options
3738
-->
38-
3939
### 选项
4040

4141
<table style="width: 100%; table-layout: fixed;">
@@ -46,60 +46,26 @@ kubeadm alpha kubeconfig user --client-name=foo
4646
<tbody>
4747

4848
<tr>
49-
<td colspan="2">--apiserver-advertise-address string</td>
50-
</tr>
51-
<tr>
52-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
53-
<!--
54-
The IP address the API server is accessible on
55-
-->
56-
可通过以下网址访问 API 服务器的 IP 地址
57-
</td>
58-
</tr>
59-
60-
<tr>
61-
<td colspan="2">
62-
<!--
63-
--apiserver-bind-port int32&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: 6443
64-
-->
65-
--apiserver-bind-port int32&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值: 6443
66-
</td>
67-
</tr>
68-
<tr>
69-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
70-
<!--
71-
The port the API server is accessible on
72-
-->
73-
可通过其访问 API 服务器的端口
74-
</td>
75-
</tr>
76-
77-
<tr>
78-
<td colspan="2">
79-
<!--
80-
--cert-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "/etc/kubernetes/pki"
81-
-->
82-
--cert-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值: "/etc/kubernetes/pki"
83-
</td>
49+
<td colspan="2">--client-name string</td>
8450
</tr>
8551
<tr>
8652
<td></td><td style="line-height: 130%; word-wrap: break-word;">
8753
<!--
88-
The path where certificates are stored
54+
The name of user. It will be used as the CN if client certificates are created
8955
-->
90-
证书存储的路径
56+
用户名。如果生成客户端证书,则用作其 CN。
9157
</td>
9258
</tr>
9359

9460
<tr>
95-
<td colspan="2">--client-name string</td>
61+
<td colspan="2">--config string</td>
9662
</tr>
9763
<tr>
9864
<td></td><td style="line-height: 130%; word-wrap: break-word;">
9965
<!--
100-
The name of user. It will be used as the CN if client certificates are created
66+
Path to a kubeadm configuration file.
10167
-->
102-
用户名。如果创建了客户端证书,它将用作 CN。
68+
指向 kubeadm 配置文件的路径
10369
</td>
10470
</tr>
10571

@@ -123,13 +89,14 @@ user 操作的帮助命令
12389
<!--
12490
The orgnizations of the client certificate. It will be used as the O if client certificates are created
12591
-->
126-
客户端证书的组织。如果创建了客户端证书,它将用作 O
92+
客户端证书的组织。如果创建客户端证书,此值将用作其 O 字段值
12793
</td>
12894
</tr>
12995

13096
<tr>
13197
<td colspan="2">--token string</td>
13298
</tr>
99+
133100
<tr>
134101
<td></td><td style="line-height: 130%; word-wrap: break-word;">
135102
<!--
@@ -145,7 +112,6 @@ The token that should be used as the authentication mechanism for this kubeconfi
145112
<!--
146113
### Options inherited from parent commands
147114
-->
148-
149115
### 从父命令继承的选项
150116

151117
<table style="width: 100%; table-layout: fixed;">

content/zh/docs/reference/setup-tools/kubeadm/generated/kubeadm_init_phase_control-plane_all.md

Lines changed: 36 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
<!--
33
### Synopsis
44
-->
5-
65
### 概要
76

87
<!--
98
Generate all static Pod manifest files
109
-->
11-
1210
生成所有的静态 Pod 清单文件
1311

1412
```
@@ -17,27 +15,27 @@ kubeadm init phase control-plane all [flags]
1715

1816
<!--
1917
### Examples
20-
-->
21-
<!--
18+
19+
20+
```
2221
# Generates all static Pod manifest files for control plane components,
2322
# functionally equivalent to what is generated by kubeadm init.
2423
# Generates all static Pod manifest files using options read from a configuration file.
24+
```
2525
-->
26-
2726
### 示例
2827

2928
```
30-
# 为 etcd 生成静态 Pod 清单文件,其功能等效于 kubeadm init 生成的文件。
29+
# 为控制平面组件生成静态 Pod 清单文件,其功能等效于 kubeadm init 生成的文件。
3130
kubeadm init phase control-plane all
3231
33-
# 使用从配置文件读取的选项为 etcd 生成静态 Pod 清单文件。
32+
# 使用从某配置文件中读取的选项为生成静态 Pod 清单文件。
3433
kubeadm init phase control-plane all --config config.yaml
3534
```
3635

3736
<!--
3837
### Options
3938
-->
40-
4139
### 选项
4240

4341
<table style="width: 100%; table-layout: fixed;">
@@ -60,19 +58,15 @@ API 服务器所公布的其正在监听的 IP 地址。如果未设置,将使
6058
</tr>
6159

6260
<tr>
63-
<td colspan="2">
64-
<!--
65-
--apiserver-bind-port int32&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: 6443
66-
-->
67-
--apiserver-bind-port int32&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值:6443
68-
</td>
61+
<!-- td colspan="2">--apiserver-bind-port int32&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: 6443</td -->
62+
<td colspan="2">--apiserver-bind-port int32&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值:6443</td>
6963
</tr>
7064
<tr>
7165
<td></td><td style="line-height: 130%; word-wrap: break-word;">
7266
<!--
7367
Port for the API Server to bind to.
7468
-->
75-
要绑定到 API 服务器的端口
69+
API 服务器要绑定的端口
7670
</td>
7771
</tr>
7872

@@ -84,7 +78,8 @@ Port for the API Server to bind to.
8478
<!--
8579
A set of extra flags to pass to the API Server or override default ones in form of &lt;flagname&gt;=&lt;value&gt;
8680
-->
87-
传递给 API 服务器一组额外的参数或者以 &lt;flagname&gt;=&lt;value&gt; 的形式覆盖默认值。
81+
形式为 &lt;flagname&gt;=&lt;value&gt; 的一组额外参数,用来传递给 API 服务器,
82+
或者覆盖其默认配置值
8883
</td>
8984
</tr>
9085

@@ -137,7 +132,25 @@ Specify a stable IP address or DNS name for the control plane.
137132
<!--
138133
A set of extra flags to pass to the Controller Manager or override default ones in form of &lt;flagname&gt;=&lt;value&gt;
139134
-->
140-
传递给控制管理器(Controller Manager)一组额外的标志或者以 &lt;flagname&gt;=&lt;value&gt; 的形式覆盖默认值。
135+
一组形式为 &lt;flagname&gt;=&lt;value&gt; 的额外参数,用来传递给控制管理器(Controller Manager)
136+
或覆盖其默认设置值
137+
</td>
138+
</tr>
139+
140+
<tr>
141+
<td colspan="2">--experimental-patches string</td>
142+
</tr>
143+
<tr>
144+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
145+
<!--
146+
Path to a directory that contains files named "target[suffix][+patchtype].extension". For example, "kube-apiserver0+merge.yaml" or just "etcd.json". "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.
147+
-->
148+
包含名为 "target[suffix][+patchtype].extension" 的文件的目录。
149+
例如,"kube-apiserver0+merge.yaml" 或者 "etcd.json"。
150+
"patchtype" 可以是 "strategic"、"merge" 或 "json" 之一,分别与 kubectl
151+
所支持的 patch 格式相匹配。默认的 "patchtype" 是 "strategic"。
152+
"extension" 必须是 "json" 或 "yaml"。
153+
"suffix" 是一个可选的字符串,用来确定按字母顺序排序时首先应用哪些 patch。
141154
</td>
142155
</tr>
143156

@@ -149,7 +162,7 @@ A set of extra flags to pass to the Controller Manager or override default ones
149162
<!--
150163
A set of key=value pairs that describe feature gates for various features. Options are:<br/>IPv6DualStack=true|false (ALPHA - default=false)<br/>PublicKeysECDSA=true|false (ALPHA - default=false)
151164
-->
152-
一组用来描述各种功能特性的键值(key=value)对。选项是:
165+
一组用来描述各种特性门控的键值(key=value)对。选项是:
153166
<br/>IPv6DualStack=true|false (ALPHA - 默认=false)
154167
<br/>PublicKeysECDSA=true|false (ALPHA - 默认=false)
155168
</td>
@@ -209,7 +222,7 @@ Choose a specific Kubernetes version for the control plane.
209222
<!--
210223
Specify range of IP addresses for the pod network. If set, the control plane will automatically allocate CIDRs for every node.
211224
-->
212-
指定 Pod 网络的 IP 地址范围。如果已设置,控制平面将自动地为每个节点分配 CIDR。
225+
指定 Pod 网络的 IP 地址范围。如果设置了此标志,控制平面将自动地为每个节点分配 CIDR。
213226
</td>
214227
</tr>
215228

@@ -221,6 +234,9 @@ Specify range of IP addresses for the pod network. If set, the control plane wil
221234
<!--
222235
A set of extra flags to pass to the Scheduler or override default ones in form of &lt;flagname&gt;=&lt;value&gt;
223236
-->
237+
一组形式为 &lt;flagname&gt;=&lt;value&gt; 的额外参数,用来传递给调度器(Scheduler)
238+
或覆盖其默认设置值
239+
224240
传递给调度器(scheduler)一组额外的参数或者以 &lt;flagname&gt;=&lt;value&gt; 形式覆盖其默认值。
225241
</td>
226242
</tr>
@@ -248,7 +264,6 @@ Use alternative range of IP address for service VIPs.
248264
<!--
249265
### Options inherited from parent commands
250266
-->
251-
252267
### 从父指令继承的选项
253268

254269
<table style="width: 100%; table-layout: fixed;">
@@ -272,3 +287,4 @@ Use alternative range of IP address for service VIPs.
272287

273288
</tbody>
274289
</table>
290+

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

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
<!--
22
### Synopsis
33
-->
4-
54
### 概要
65

76
<!--
87
Generates the kube-apiserver static Pod manifest
98
-->
10-
119
生成 kube-apiserver 静态 Pod 清单
1210

1311
```
@@ -17,7 +15,6 @@ kubeadm init phase control-plane apiserver [flags]
1715
<!--
1816
### Options
1917
-->
20-
2118
### 选项
2219

2320
<table style="width: 100%; table-layout: fixed;">
@@ -64,7 +61,8 @@ Port for the API Server to bind to.
6461
<!--
6562
A set of extra flags to pass to the API Server or override default ones in form of &lt;flagname&gt;=&lt;value&gt;
6663
-->
67-
一组额外的参数以 &lt;flagname&gt;=&lt;value&gt; 形式传递给 API 服务器或者覆盖默认参数
64+
一组 &lt;flagname&gt;=&lt;value&gt; 形式的额外参数,用来传递给 API 服务器
65+
或者覆盖其默认参数配置
6866
</td>
6967
</tr>
7068

@@ -109,6 +107,18 @@ Specify a stable IP address or DNS name for the control plane.
109107
</td>
110108
</tr>
111109

110+
<tr>
111+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
112+
<!--Path to a directory that contains files named "target[suffix][+patchtype].extension". For example, "kube-apiserver0+merge.yaml" or just "etcd.json". "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.-->
113+
包含名为 "target[suffix][+patchtype].extension" 的文件的目录。
114+
例如,"kube-apiserver0+merge.yaml" 或者 "etcd.json"。
115+
"patchtype" 可以是 "strategic"、"merge" 或 "json" 之一,分别与 kubectl
116+
所支持的 patch 格式相匹配。默认的 "patchtype" 是 "strategic"。
117+
"extension" 必须是 "json" 或 "yaml"。
118+
"suffix" 是一个可选的字符串,用来确定按字母顺序排序时首先应用哪些 patch。
119+
</td>
120+
</tr>
121+
112122
<tr>
113123
<td colspan="2">--feature-gates string</td>
114124
</tr>
@@ -117,7 +127,7 @@ Specify a stable IP address or DNS name for the control plane.
117127
<!--
118128
A set of key=value pairs that describe feature gates for various features. Options are:<br/>IPv6DualStack=true|false (ALPHA - default=false)<br/>PublicKeysECDSA=true|false (ALPHA - default=false)
119129
-->
120-
一组键值对,用于描述各种特征的特征事项。选项是:
130+
一组键值对,用于描述各种功能特性的特性门控。选项是:
121131
<br/>IPv6DualStack=true|false (ALPHA - 默认=false)
122132
<br/>PublicKeysECDSA=true|false (ALPHA - 默认=false)
123133
</td>

0 commit comments

Comments
 (0)