Skip to content

Commit 75e5fe4

Browse files
authored
Merge pull request #24543 from howieyuen/zh-kubeadm
[zh] translate kubeadm commands which are missing in zh version
2 parents 846d41a + 2bbaefb commit 75e5fe4

6 files changed

+470
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
2+
<!-- ### Synopsis -->
3+
### 概要
4+
5+
6+
7+
<!-- Commands related to handling kubernetes certificates -->
8+
与处理 kubernetes 证书相关的命令
9+
10+
<!-- ### Options -->
11+
### 选项
12+
13+
<table style="width: 100%; table-layout: fixed;">
14+
<colgroup>
15+
<col span="1" style="width: 10px;" />
16+
<col span="1" />
17+
</colgroup>
18+
<tbody>
19+
20+
<tr>
21+
<td colspan="2">-h, --help</td>
22+
</tr>
23+
<tr>
24+
<!-- <td></td><td style="line-height: 130%; word-wrap: break-word;">help for certs</td> -->
25+
<td></td><td style="line-height: 130%; word-wrap: break-word;"><!-- help for certs-->certs 命令的帮助</td>
26+
</tr>
27+
28+
</tbody>
29+
</table>
30+
31+
32+
33+
<!-- ### Options inherited from parent commands -->
34+
### 继承于父命令的选项
35+
36+
<table style="width: 100%; table-layout: fixed;">
37+
<colgroup>
38+
<col span="1" style="width: 10px;" />
39+
<col span="1" />
40+
</colgroup>
41+
<tbody>
42+
43+
<tr>
44+
<td colspan="2">--rootfs string</td>
45+
</tr>
46+
<tr>
47+
<!-- <td></td><td style="line-height: 130%; word-wrap: break-word;">[EXPERIMENTAL] The path to the 'real' host root filesystem.</td> -->
48+
<td></td><td style="line-height: 130%; word-wrap: break-word;">[实验] 到'真实'主机根文件系统的路径。</td>
49+
</tr>
50+
51+
</tbody>
52+
</table>
53+
54+
55+
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
2+
<!-- ### Synopsis -->
3+
### 概要
4+
5+
<!--
6+
Generates keys and certificate signing requests (CSRs) for all the certificates required to run the control plane. This command also generates partial kubeconfig files with private key data in the "users &gt; user &gt; client-key-data" field, and for each kubeconfig file an accompanying ".csr" file is created.
7+
-->
8+
为运行控制平面所需的所有证书生成密钥和证书签名请求(CSR)。该命令会生成部分 kubeconfig 文件,
9+
其中 "users &gt; user &gt; client-key-data" 字段包含私钥数据,并为每个 kubeconfig 文件创建一个随附的".csr"文件。
10+
11+
<!--
12+
This command is designed for use in [Kubeadm External CA Mode](https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-certs/#external-ca-mode). It generates CSRs which you can then submit to your external certificate authority for signing.
13+
-->
14+
该命令设计用于 [Kubeadm 外部 CA 模式](https://kubernetes.io/zh/docs/tasks/administer-cluster/kubeadm/kubeadm-certs/#external-ca-mode)
15+
它生成 CSR,然后你可以将其提交给外部证书颁发机构进行签名。
16+
17+
<!--
18+
The PEM encoded signed certificates should then be saved alongside the key files, using ".crt" as the file extension, or in the case of kubeconfig files, the PEM encoded signed certificate should be base64 encoded and added to the kubeconfig file in the "users &gt; user &gt; client-certificate-data" field.
19+
-->
20+
然后,应使用 ".crt" 作为文件扩展名将 PEM 编码的签名证书与密钥文件一起保存,或者,对于 kubeconfig 文件,
21+
PEM 编码的签名证书应使用 base64 编码,并添加到 "users &gt; user &gt; client-certificate-data" 字段。
22+
23+
```
24+
kubeadm alpha certs generate-csr [flags]
25+
```
26+
27+
<!-- ### Examples -->
28+
### 示例
29+
30+
<!--
31+
```
32+
# The following command will generate keys and CSRs for all control-plane certificates and kubeconfig files:
33+
kubeadm alpha certs generate-csr --kubeconfig-dir /tmp/etc-k8s --cert-dir /tmp/etc-k8s/pki
34+
```
35+
-->
36+
```
37+
# 以下命令将为所有控制平面证书和 kubeconfig 文件生成密钥和 CSR :
38+
kubeadm alpha certs generate-csr --kubeconfig-dir /tmp/etc-k8s --cert-dir /tmp/etc-k8s/pki
39+
```
40+
41+
<!-- ### Options -->
42+
### 选项
43+
44+
<table style="width: 100%; table-layout: fixed;">
45+
<colgroup>
46+
<col span="1" style="width: 10px;" />
47+
<col span="1" />
48+
</colgroup>
49+
<tbody>
50+
51+
<tr>
52+
<td colspan="2">--cert-dir string</td>
53+
</tr>
54+
<tr>
55+
<!-- <td></td><td style="line-height: 130%; word-wrap: break-word;">The path where to save the certificates</td> -->
56+
<td></td><td style="line-height: 130%; word-wrap: break-word;">保存证书的路径</td>
57+
</tr>
58+
59+
<tr>
60+
<td colspan="2">--config string</td>
61+
</tr>
62+
<tr>
63+
<!-- <td></td><td style="line-height: 130%; word-wrap: break-word;">Path to a kubeadm configuration file.</td> -->
64+
<td></td><td style="line-height: 130%; word-wrap: break-word;">kubeadm 配置文件的路径。</td>
65+
</tr>
66+
67+
<tr>
68+
<td colspan="2">-h, --help</td>
69+
</tr>
70+
<tr>
71+
<!-- <td></td><td style="line-height: 130%; word-wrap: break-word;">help for generate-csr</td> -->
72+
<td></td><td style="line-height: 130%; word-wrap: break-word;">generate-csr 命令的帮助</td>
73+
</tr>
74+
75+
<tr>
76+
<!-- <td colspan="2">--kubeconfig-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "/etc/kubernetes"</td> -->
77+
<td colspan="2">--kubeconfig-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值:"/etc/kubernetes"</td>
78+
</tr>
79+
<tr>
80+
<!-- <td></td><td style="line-height: 130%; word-wrap: break-word;">The path where to save the kubeconfig file.</td> -->
81+
<td></td><td style="line-height: 130%; word-wrap: break-word;">保存 kubeconfig 文件的路径。</td>
82+
</tr>
83+
84+
</tbody>
85+
</table>
86+
87+
88+
89+
<!-- ### Options inherited from parent commands -->
90+
### 继承于父命令的选项
91+
92+
<table style="width: 100%; table-layout: fixed;">
93+
<colgroup>
94+
<col span="1" style="width: 10px;" />
95+
<col span="1" />
96+
</colgroup>
97+
<tbody>
98+
99+
<tr>
100+
<td colspan="2">--rootfs string</td>
101+
</tr>
102+
<tr>
103+
<!-- <td></td><td style="line-height: 130%; word-wrap: break-word;">[EXPERIMENTAL] The path to the 'real' host root filesystem.</td> -->
104+
<td></td><td style="line-height: 130%; word-wrap: break-word;">[实验] 到'真实'主机根文件系统的路径。</td>
105+
</tr>
106+
107+
</tbody>
108+
</table>
109+
110+
111+
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
2+
<!-- ### Synopsis -->
3+
### 概要
4+
5+
<!-- Updates settings relevant to the kubelet after TLS bootstrap -->
6+
TLS 引导后更新与 kubelet 相关的设置
7+
8+
```
9+
kubeadm init phase kubelet-finalize [flags]
10+
```
11+
12+
<!-- ### Examples -->
13+
### 示例
14+
15+
<!--
16+
```
17+
# Updates settings relevant to the kubelet after TLS bootstrap
18+
kubeadm init phase kubelet-finalize all --config
19+
```
20+
-->
21+
```
22+
# 在 TLS 引导后更新与 kubelet 相关的设置
23+
kubeadm init phase kubelet-finalize all --config
24+
```
25+
26+
<!-- ### Options -->
27+
### 选项
28+
29+
<table style="width: 100%; table-layout: fixed;">
30+
<colgroup>
31+
<col span="1" style="width: 10px;" />
32+
<col span="1" />
33+
</colgroup>
34+
<tbody>
35+
36+
<tr>
37+
<td colspan="2">-h, --help</td>
38+
</tr>
39+
<tr>
40+
<!-- <td></td><td style="line-height: 130%; word-wrap: break-word;">help for kubelet-finalize</td> -->
41+
<td></td><td style="line-height: 130%; word-wrap: break-word;">kubelet-finalize 操作的帮助命令</td>
42+
</tr>
43+
44+
</tbody>
45+
</table>
46+
47+
48+
49+
<!-- ### Options inherited from parent commands -->
50+
### 继承于父命令的选项
51+
52+
<table style="width: 100%; table-layout: fixed;">
53+
<colgroup>
54+
<col span="1" style="width: 10px;" />
55+
<col span="1" />
56+
</colgroup>
57+
<tbody>
58+
59+
<tr>
60+
<td colspan="2">--rootfs string</td>
61+
</tr>
62+
<tr>
63+
<!-- <td></td><td style="line-height: 130%; word-wrap: break-word;">[EXPERIMENTAL] The path to the 'real' host root filesystem.</td> -->
64+
<td></td><td style="line-height: 130%; word-wrap: break-word;">[实验] 到'真实'主机根文件系统的路径。</td>
65+
</tr>
66+
67+
</tbody>
68+
</table>
69+
70+
71+
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
2+
<!-- ### Synopsis -->
3+
### 概要
4+
5+
6+
<!-- Run all kubelet-finalize phases -->
7+
运行所有 kubelet-finalize 阶段
8+
9+
```
10+
kubeadm init phase kubelet-finalize all [flags]
11+
```
12+
13+
<!-- ### Examples -->
14+
### 示例
15+
16+
<!--
17+
```
18+
# Updates settings relevant to the kubelet after TLS bootstrap
19+
kubeadm init phase kubelet-finalize all --config
20+
```
21+
-->
22+
```
23+
# 在 TLS 引导后更新与 kubelet 相关的设置
24+
kubeadm init phase kubelet-finalize all --config
25+
```
26+
27+
<!-- ### Options -->
28+
### 选项
29+
30+
<table style="width: 100%; table-layout: fixed;">
31+
<colgroup>
32+
<col span="1" style="width: 10px;" />
33+
<col span="1" />
34+
</colgroup>
35+
<tbody>
36+
37+
<tr>
38+
<!-- <td colspan="2">--cert-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "/etc/kubernetes/pki"</td> -->
39+
<td colspan="2">--cert-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值: "/etc/kubernetes/pki"</td>
40+
</tr>
41+
<tr>
42+
<!-- <td></td><td style="line-height: 130%; word-wrap: break-word;">The path where to save and store the certificates.</td> -->
43+
<td></td><td style="line-height: 130%; word-wrap: break-word;">保存和存储证书的路径。</td>
44+
</tr>
45+
46+
<tr>
47+
<td colspan="2">--config string</td>
48+
</tr>
49+
<tr>
50+
<!-- <td></td><td style="line-height: 130%; word-wrap: break-word;">Path to a kubeadm configuration file.</td> -->
51+
<td></td><td style="line-height: 130%; word-wrap: break-word;">kubeadm 配置文件的路径。</td>
52+
</tr>
53+
54+
<tr>
55+
<td colspan="2">-h, --help</td>
56+
</tr>
57+
<tr>
58+
<!-- <td></td><td style="line-height: 130%; word-wrap: break-word;">help for all</td> -->
59+
<td></td><td style="line-height: 130%; word-wrap: break-word;">all 操作的帮助命令</td>
60+
</tr>
61+
62+
</tbody>
63+
</table>
64+
65+
66+
67+
<!-- ### Options inherited from parent commands -->
68+
### 继承于父命令的选项
69+
70+
<table style="width: 100%; table-layout: fixed;">
71+
<colgroup>
72+
<col span="1" style="width: 10px;" />
73+
<col span="1" />
74+
</colgroup>
75+
<tbody>
76+
77+
<tr>
78+
<td colspan="2">--rootfs string</td>
79+
</tr>
80+
<tr>
81+
<!-- <td></td><td style="line-height: 130%; word-wrap: break-word;">[EXPERIMENTAL] The path to the 'real' host root filesystem.</td> -->
82+
<td></td><td style="line-height: 130%; word-wrap: break-word;">[实验] 到'真实'主机根文件系统的路径。</td>
83+
</tr>
84+
85+
</tbody>
86+
</table>
87+
88+
89+

0 commit comments

Comments
 (0)