Skip to content

Commit 4edf279

Browse files
authored
Merge pull request #47726 from windsonsea/admyhr
[zh] Sync kubeadm_completion, _kubeconfig, and _version
2 parents 0035a38 + f205f27 commit 4edf279

File tree

7 files changed

+64
-47
lines changed

7 files changed

+64
-47
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ kubeadm:轻松创建一个安全的 Kubernetes 集群
1616
│ https://github.com/kubernetes/kubeadm/issues │
1717
└──────────────────────────────────────────────────────────┘
1818
-->
19-
2019
```
2120
┌──────────────────────────────────────────────────────────┐
2221
│ KUBEADM │
@@ -37,7 +36,8 @@ Example usage:
3736
(which controls the cluster), and one worker node
3837
(where your workloads, like Pods and Deployments run).
3938
-->
40-
创建一个有两台机器的集群,包含一个主节点(用来控制集群)和一个工作节点(运行你的 Pod 和 Deployment 等工作负载)。
39+
创建一个有两台机器的集群,包含一个控制平面节点(用来控制集群)
40+
和一个工作节点(运行你的 Pod 和 Deployment 等工作负载)。
4141

4242
<!--
4343
┌──────────────────────────────────────────────────────────┐
@@ -54,7 +54,6 @@ Example usage:
5454
5555
You can then repeat the second step on as many other machines as you like.
5656
-->
57-
5857
```
5958
┌──────────────────────────────────────────────────────────┐
6059
│ 在第一台机器上: │
@@ -76,7 +75,7 @@ Example usage:
7675
-->
7776
### 选项
7877

79-
<table style="width: 100%; table-layout: fixed;">
78+
<table style="width: 100%; table-layout: fixed;">
8079
<colgroup>
8180
<col span="1" style="width: 10px;" />
8281
<col span="1" />
@@ -100,10 +99,12 @@ Example usage:
10099
</tr>
101100
<tr>
102101
<td></td><td style="line-height: 130%; word-wrap: break-word;">
102+
<p>
103103
<!--
104-
<p>[EXPERIMENTAL] The path to the 'real' host root filesystem.</p>
104+
The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path.
105105
-->
106-
<p>[实验] 指向 '真实' 宿主机根文件系统的路径。<p>
106+
到“真实”主机根文件系统的路径。设置此参数将导致 kubeadm 切换到所提供的路径。
107+
<p>
107108
</td>
108109
</tr>
109110

content/zh-cn/docs/reference/setup-tools/kubeadm/generated/kubeadm_completion.md renamed to content/zh-cn/docs/reference/setup-tools/kubeadm/generated/kubeadm_completion/_index.md

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!--
22
Output shell completion code for the specified shell (bash or zsh)
33
-->
4-
为指定的 shell(bashzsh)输出 shell 补全代码。
4+
为指定的 Shell(BashZsh)输出 Shell 补全代码。
55

66
<!--
77
### Synopsis
@@ -14,8 +14,9 @@ The shell code must be evaluated to provide interactive
1414
completion of kubeadm commands. This can be done by sourcing it from
1515
the .bash_profile.
1616
-->
17-
为指定的 shell(bash 或 zsh)输出 shell 补全代码。
18-
必须激活 shell 代码以提供交互式 kubeadm 命令补全。这可以通过加载 .bash_profile 文件完成。
17+
为指定的 Shell(Bash 或 Zsh)输出 Shell 补全代码。
18+
必须激活 Shell 代码以提供交互式 kubeadm 命令补全。
19+
这可以通过加载 .bash_profile 文件完成。
1920

2021
<!--
2122
Note: this requires the bash-completion framework.
@@ -29,28 +30,29 @@ Once installed, bash_completion must be evaluated. This can be done by adding th
2930
following line to the .bash_profile
3031
$ source $(brew --prefix)/etc/bash_completion
3132
-->
32-
在 Mac 上使用 homebrew 安装:
33+
在 Mac 上使用 Homebrew 安装:
3334

34-
```
35+
```bash
3536
brew install bash-completion
3637
```
3738

38-
安装后,必须激活 bash_completion。这可以通过在 .bash_profile 文件中添加下面的命令行来完成:
39+
安装后,必须激活 bash_completion。
40+
这可以通过在 .bash_profile 文件中添加下面的命令行来完成:
3941

40-
```
42+
```bash
4143
source $(brew --prefix)/etc/bash_completion
4244
```
4345

4446
<!--
4547
If bash-completion is not installed on Linux, please install the 'bash-completion' package
4648
via your distribution's package manager.
4749
-->
48-
如果在 Linux 上没有安装 bash-completion,请通过你的发行版的包管理器安装 `bash-completion` 软件包。
50+
如果在 Linux 上没有安装 `bash-completion`,请通过你的发行版的包管理器安装 `bash-completion` 软件包。
4951

5052
<!--
5153
Note for zsh users: [1] zsh completions are only supported in versions of zsh &gt;= 5.2
5254
-->
53-
zsh 用户注意事项:[1] zsh 自动补全仅在 v5.2 及以上版本中支持。
55+
Zsh 用户注意事项:[1] Zsh 自动补全仅在 v5.2 及以上版本中支持。
5456

5557
```
5658
kubeadm completion SHELL [flags]
@@ -70,28 +72,28 @@ source $HOME/.bash_profile
7072
# Load the kubeadm completion code for bash into the current shell
7173
source <(kubeadm completion bash)
7274
73-
# Write bash completion code to a file and source if from .bash_profile
75+
# Write bash completion code to a file and source it from .bash_profile
7476
kubeadm completion bash > ~/.kube/kubeadm_completion.bash.inc
7577
printf "\n# Kubeadm shell completion\nsource '$HOME/.kube/kubeadm_completion.bash.inc'\n" >> $HOME/.bash_profile
7678
source $HOME/.bash_profile
7779
7880
# Load the kubeadm completion code for zsh[1] into the current shell
7981
source <(kubeadm completion zsh)
8082
-->
81-
```
82-
# 在 Mac 上使用 homebrew 安装 bash completion
83+
```bash
84+
# 在 Mac 上使用 Homebrew 安装 bash completion
8385
brew install bash-completion
8486
printf "\n# Bash completion support\nsource $(brew --prefix)/etc/bash_completion\n" >> $HOME/.bash_profile
8587
source $HOME/.bash_profile
8688

87-
# 将 bash 版本的 kubeadm 自动补全代码加载到当前 shell
89+
# 将 bash 版本的 kubeadm 自动补全代码加载到当前 Shell
8890
source <(kubeadm completion bash)
8991

90-
# 将 bash 自动补全完成代码写入文件并且从 .bash_profile 文件加载它
92+
#Bash 自动补全完成代码写入文件并且从 .bash_profile 文件加载它
9193
printf "\n# Kubeadm shell completion\nsource '$HOME/.kube/kubeadm_completion.bash.inc'\n" >> $HOME/.bash_profile
9294
source $HOME/.bash_profile
9395

94-
# 将 zsh 版本的 kubeadm 自动补全代码加载到当前 shell
96+
#Zsh 版本的 kubeadm 自动补全代码加载到当前 Shell
9597
source <(kubeadm completion zsh)
9698
```
9799

@@ -112,10 +114,10 @@ source <(kubeadm completion zsh)
112114
</tr>
113115
<tr>
114116
<td></td><td style="line-height: 130%; word-wrap: break-word;">
117+
<p>
115118
<!--
116119
help for completion
117120
-->
118-
<p>
119121
completion 操作的帮助命令。
120122
</p>
121123
</td>
@@ -129,7 +131,7 @@ completion 操作的帮助命令。
129131
-->
130132
### 从父命令继承的选项
131133

132-
<table style="width: 100%; table-layout: fixed;">
134+
<table style="width: 100%; table-layout: fixed;">
133135
<colgroup>
134136
<col span="1" style="width: 10px;" />
135137
<col span="1" />
@@ -141,11 +143,11 @@ completion 操作的帮助命令。
141143
</tr>
142144
<tr>
143145
<td></td><td style="line-height: 130%; word-wrap: break-word;">
146+
<p>
144147
<!--
145-
[EXPERIMENTAL] The path to the 'real' host root filesystem.
148+
The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path.
146149
-->
147-
<p>
148-
[实验] 到 '真实' 主机根文件系统的路径。
150+
到“真实”主机根文件系统的路径。设置此标志将导致 kubeadm 切换到所提供的路径。
149151
</p>
150152
</td>
151153
</tr>

content/zh-cn/docs/reference/setup-tools/kubeadm/generated/kubeadm_kubeconfig.md renamed to content/zh-cn/docs/reference/setup-tools/kubeadm/generated/kubeadm_kubeconfig/_index.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ kubeconfig 文件工具。
2727
</tr>
2828
<tr>
2929
<td></td><td style="line-height: 130%; word-wrap: break-word;">
30+
<p>
3031
<!--
3132
help for kubeconfig
3233
-->
3334
kubeconfig 操作的帮助命令。
35+
<p>
3436
</td>
3537
</tr>
3638

@@ -54,11 +56,12 @@ kubeconfig 操作的帮助命令。
5456
</tr>
5557
<tr>
5658
<td></td><td style="line-height: 130%; word-wrap: break-word;">
59+
<p>
5760
<!--
58-
[EXPERIMENTAL] The path to the 'real' host root filesystem.
61+
The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path.
5962
-->
60-
[实验] 到 '真实' 主机根文件系统的路径。
61-
</td>
63+
到“真实”主机根文件系统的路径。设置此标志将导致 kubeadm 切换到所提供的路径
64+
</p>
6265
</td>
6366
</tr>
6467

content/zh-cn/docs/reference/setup-tools/kubeadm/generated/kubeadm_kubeconfig_user.md renamed to content/zh-cn/docs/reference/setup-tools/kubeadm/generated/kubeadm_kubeconfig/kubeadm_kubeconfig_user.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ kubeadm alpha kubeconfig user --client-name=foo --config=bar
4141
-->
4242
### 选项
4343

44-
<table style="width: 100%; table-layout: fixed;">
44+
<table style="width: 100%; table-layout: fixed;">
4545
<colgroup>
4646
<col span="1" style="width: 10px;" />
4747
<col span="1" />
@@ -53,10 +53,12 @@ kubeadm alpha kubeconfig user --client-name=foo --config=bar
5353
</tr>
5454
<tr>
5555
<td></td><td style="line-height: 130%; word-wrap: break-word;">
56+
<p>
5657
<!--
5758
The name of user. It will be used as the CN if client certificates are created
5859
-->
5960
用户名。如果生成客户端证书,则用作其 CN。
61+
</p>
6062
</td>
6163
</tr>
6264

@@ -65,10 +67,12 @@ The name of user. It will be used as the CN if client certificates are created
6567
</tr>
6668
<tr>
6769
<td></td><td style="line-height: 130%; word-wrap: break-word;">
70+
<p>
6871
<!--
6972
Path to a kubeadm configuration file.
7073
-->
7174
指向 kubeadm 配置文件的路径。
75+
</p>
7276
</td>
7377
</tr>
7478

@@ -77,10 +81,12 @@ Path to a kubeadm configuration file.
7781
</tr>
7882
<tr>
7983
<td></td><td style="line-height: 130%; word-wrap: break-word;">
84+
<p>
8085
<!--
8186
help for user
8287
-->
8388
user 操作的帮助命令。
89+
</p>
8490
</td>
8591
</tr>
8692

@@ -89,10 +95,12 @@ user 操作的帮助命令。
8995
</tr>
9096
<tr>
9197
<td></td><td style="line-height: 130%; word-wrap: break-word;">
98+
<p>
9299
<!--
93100
The organizations of the client certificate. It will be used as the O if client certificates are created
94101
-->
95102
客户端证书的组织。如果创建客户端证书,此值将用作其 O 字段值。
103+
</p>
96104
</td>
97105
</tr>
98106

@@ -102,10 +110,12 @@ The organizations of the client certificate. It will be used as the O if client
102110

103111
<tr>
104112
<td></td><td style="line-height: 130%; word-wrap: break-word;">
113+
<p>
105114
<!--
106115
The token that should be used as the authentication mechanism for this kubeconfig, instead of client certificates
107116
-->
108117
应该用此令牌做为 kubeconfig 的身份验证机制,而不是客户端证书。
118+
</p>
109119
</td>
110120
</tr>
111121

@@ -114,10 +124,10 @@ The token that should be used as the authentication mechanism for this kubeconfi
114124
</tr>
115125
<tr>
116126
<td></td><td style="line-height: 130%; word-wrap: break-word;">
127+
<p>
117128
<!--
118129
The validity period of the client certificate. It is an offset from the current time.
119130
-->
120-
<p>
121131
客户证书的合法期限。所设置值为相对当前时间的偏移。
122132
</p></td>
123133
</tr>
@@ -130,7 +140,7 @@ The validity period of the client certificate. It is an offset from the current
130140
-->
131141
### 从父命令继承的选项
132142

133-
<table style="width: 100%; table-layout: fixed;">
143+
<table style="width: 100%; table-layout: fixed;">
134144
<colgroup>
135145
<col span="1" style="width: 10px;" />
136146
<col span="1" />
@@ -142,10 +152,12 @@ The validity period of the client certificate. It is an offset from the current
142152
</tr>
143153
<tr>
144154
<td></td><td style="line-height: 130%; word-wrap: break-word;">
155+
<p>
145156
<!--
146-
[EXPERIMENTAL] The path to the 'real' host root filesystem.
157+
The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path.
147158
-->
148-
[实验] 指向 '真实' 宿主机的根目录。
159+
到“真实”主机根文件系统的路径。设置此标志将导致 kubeadm 切换到所提供的路径。
160+
</p>
149161
</td>
150162
</tr>
151163

content/zh-cn/docs/reference/setup-tools/kubeadm/generated/kubeadm_version.md renamed to content/zh-cn/docs/reference/setup-tools/kubeadm/generated/kubeadm_version/_index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ kubeadm version [flags]
2222
-->
2323
### 选项
2424

25-
<table style="width: 100%; table-layout: fixed;">
25+
<table style="width: 100%; table-layout: fixed;">
2626
<colgroup>
2727
<col span="1" style="width: 10px;" />
2828
<col span="1" />
@@ -34,10 +34,10 @@ kubeadm version [flags]
3434
</tr>
3535
<tr>
3636
<td></td><td style="line-height: 130%; word-wrap: break-word;">
37+
<p>
3738
<!--
3839
help for version
3940
-->
40-
<p>
4141
version 操作的帮助命令。
4242
</p>
4343
</td>
@@ -48,10 +48,10 @@ version 操作的帮助命令。
4848
</tr>
4949
<tr>
5050
<td></td><td style="line-height: 130%; word-wrap: break-word;">
51+
<p>
5152
<!--
5253
Output format; available options are 'yaml', 'json' and 'short'
5354
-->
54-
<p>
5555
输出格式;可用的选项有 'yaml'、'json' 和 'short'。
5656
</p>
5757
</td>
@@ -65,7 +65,7 @@ Output format; available options are 'yaml', 'json' and 'short'
6565
-->
6666
### 从父命令继承的选项
6767

68-
<table style="width: 100%; table-layout: fixed;">
68+
<table style="width: 100%; table-layout: fixed;">
6969
<colgroup>
7070
<col span="1" style="width: 10px;" />
7171
<col span="1" />
@@ -77,11 +77,11 @@ Output format; available options are 'yaml', 'json' and 'short'
7777
</tr>
7878
<tr>
7979
<td></td><td style="line-height: 130%; word-wrap: break-word;">
80+
<p>
8081
<!--
81-
[EXPERIMENTAL] The path to the 'real' host root filesystem.
82+
The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path.
8283
-->
83-
<p>
84-
[实验] 指向 '真实' 宿主机根文件系统的路径。
84+
到“真实”主机根文件系统的路径。设置此标志将导致 kubeadm 切换到所提供的路径。
8585
</p>
8686
</td>
8787
</tr>

content/zh-cn/docs/reference/setup-tools/kubeadm/kubeadm-kubeconfig.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ For examples on how to use `kubeadm kubeconfig user` see
1212
-->
1313
`kubeadm kubeconfig` 提供用来管理 kubeconfig 文件的工具。
1414

15-
如果希望查看如何使用 `kubeadm kubeconfig user` 的示例,请参阅
16-
[为其他用户生成 kubeconfig 文件](/zh-cn/docs/tasks/administer-cluster/kubeadm/kubeadm-certs#kubeconfig-additional-users).
15+
如果希望查看如何使用 `kubeadm kubeconfig user` 的示例,
16+
请参阅[为其他用户生成 kubeconfig 文件](/zh-cn/docs/tasks/administer-cluster/kubeadm/kubeadm-certs#kubeconfig-additional-users)
1717

1818
## kubeadm kubeconfig {#cmd-kubeconfig}
1919

2020
{{< tabs name="tab-kubeconfig" >}}
21-
{{< tab name="overview" include="generated/kubeadm_kubeconfig.md" />}}
21+
{{< tab name="概述" include="generated/kubeadm_kubeconfig/_index.md" />}}
2222
{{< /tabs >}}
2323

2424
## kubeadm kubeconfig user {#cmd-kubeconfig-user}
@@ -29,5 +29,5 @@ This command can be used to output a kubeconfig file for an additional user.
2929
此命令可用来为其他用户生成一个 kubeconfig 文件。
3030

3131
{{< tabs name="tab-kubeconfig-user" >}}
32-
{{< tab name="user" include="generated/kubeadm_kubeconfig_user.md" />}}
32+
{{< tab name="user" include="generated/kubeadm_kubeconfig/kubeadm_kubeconfig_user.md" />}}
3333
{{< /tabs >}}

0 commit comments

Comments
 (0)