Skip to content

Commit 788b5f3

Browse files
committed
[zh] sync kubeadm_certs files
1 parent 93d87c3 commit 788b5f3

File tree

5 files changed

+82
-76
lines changed

5 files changed

+82
-76
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@ title: "创建 Kubeadm"
33
weight: 10
44
toc_hide: true
55
---
6-
6+
<!--
7+
title: "Kubeadm Generated"
8+
weight: 10
9+
toc_hide: true
10+
-->

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

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
1-
<!--
2-
The file is auto-generated from the Go source code of the component using a generic
3-
[generator](https://github.com/kubernetes-sigs/reference-docs/). To learn how
4-
to generate the reference documentation, please read
5-
[Contributing to the reference documentation](/docs/contribute/generate-ref-docs/).
6-
To update the reference content, please follow the
7-
[Contributing upstream](/docs/contribute/generate-ref-docs/contribute-upstream/)
8-
guide. You can file document formatting bugs against the
9-
[reference-docs](https://github.com/kubernetes-sigs/reference-docs/) project.
10-
-->
11-
121
<!--
132
Generate certificate keys
143
-->
15-
生成证书密钥
4+
生成证书密钥
165

176
<!--
187
### Synopsis
@@ -29,7 +18,7 @@ the "init" command.
2918
You can also use "kubeadm init -upload-certs" without specifying a certificate key and it will generate and print one for you.
3019
-->
3120
你也可以使用 `kubeadm init --upload-certs` 而无需指定证书密钥;
32-
命令将为你生成并打印一个证书密钥
21+
此命令将为你生成并打印一个证书密钥
3322

3423
```
3524
kubeadm certs certificate-key [flags]
@@ -56,7 +45,7 @@ kubeadm certs certificate-key [flags]
5645
<!--
5746
help for certificate-key
5847
-->
59-
certificate-key 操作的帮助命令
48+
certificate-key 操作的帮助命令
6049
</p>
6150
</td>
6251
</tr>
@@ -92,4 +81,3 @@ certificate-key 操作的帮助命令
9281

9382
</tbody>
9483
</table>
95-

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

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
1-
<!--
2-
The file is auto-generated from the Go source code of the component using a generic
3-
[generator](https://github.com/kubernetes-sigs/reference-docs/). To learn how
4-
to generate the reference documentation, please read
5-
[Contributing to the reference documentation](/docs/contribute/generate-ref-docs/).
6-
To update the reference content, please follow the
7-
[Contributing upstream](/docs/contribute/generate-ref-docs/contribute-upstream/)
8-
guide. You can file document formatting bugs against the
9-
[reference-docs](https://github.com/kubernetes-sigs/reference-docs/) project.
10-
-->
11-
121
<!--
132
Check certificates expiration for a Kubernetes cluster
143
-->
15-
为一个 Kubernetes 集群检查证书的到期时间
4+
为一个 Kubernetes 集群检查证书的到期时间
165

176
<!--
187
### Synopsis
@@ -31,7 +20,7 @@ kubeadm certs check-expiration [flags]
3120
<!--
3221
### Options
3322
-->
34-
### 选项
23+
### 选项
3524

3625
<table style="width: 100%; table-layout: fixed;">
3726
<colgroup>
@@ -44,14 +33,14 @@ kubeadm certs check-expiration [flags]
4433
<!--
4534
<td colspan="2">--cert-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "/etc/kubernetes/pki"</td>
4635
-->
47-
<td colspan="2">--cert-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值: "/etc/kubernetes/pki"</td>
36+
<td colspan="2">--cert-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值"/etc/kubernetes/pki"</td>
4837
</tr>
4938
<tr>
5039
<td></td><td style="line-height: 130%; word-wrap: break-word;">
5140
<!--
5241
<p>The path where to save the certificates</p>
5342
-->
54-
<p>保存证书的路径</p>
43+
<p>保存证书的路径</p>
5544
</td>
5645
</tr>
5746

@@ -63,7 +52,7 @@ kubeadm certs check-expiration [flags]
6352
<!--
6453
<p>Path to a kubeadm configuration file.</p>
6554
-->
66-
<p>kubeadm 配置文件的路径</p>
55+
<p>kubeadm 配置文件的路径</p>
6756
</td>
6857
</tr>
6958

@@ -75,7 +64,7 @@ kubeadm certs check-expiration [flags]
7564
<!--
7665
<p>help for check-expiration</p>
7766
-->
78-
<p>check-expiration 的帮助命令</p>
67+
<p>check-expiration 操作的帮助命令。</p>
7968
</td>
8069
</tr>
8170

@@ -84,7 +73,7 @@ kubeadm certs check-expiration [flags]
8473
<!--
8574
--kubeconfig string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "/etc/kubernetes/admin.conf"
8675
-->
87-
--kubeconfig string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认为: "/etc/kubernetes/admin.conf"
76+
--kubeconfig string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认为"/etc/kubernetes/admin.conf"
8877
</td>
8978
</tr>
9079
<tr>
@@ -93,7 +82,7 @@ kubeadm certs check-expiration [flags]
9382
<p>The kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations can be searched for an existing kubeconfig file.</p>
9483
-->
9584
<p>在和集群连接时使用该 kubeconfig 文件。
96-
如果该标志没有设置,那么将会在一些标准的位置去搜索存在的 kubeconfig 文件。</p>
85+
如果此标志未被设置,那么将会在一些标准的位置去搜索存在的 kubeconfig 文件。</p>
9786
</td>
9887
</tr>
9988

@@ -103,7 +92,7 @@ kubeadm certs check-expiration [flags]
10392
<!--
10493
### Options inherited from parent commands
10594
-->
106-
### 继承于父命令的选项
95+
### 继承于父命令的选项
10796

10897
<table style="width: 100%; table-layout: fixed;">
10998
<colgroup>
@@ -119,12 +108,10 @@ kubeadm certs check-expiration [flags]
119108
<td></td><td style="line-height: 130%; word-wrap: break-word;">
120109
<!--
121110
<p>[EXPERIMENTAL] The path to the 'real' host root filesystem.</p>
122-
-->
111+
-->
123112
<p>[实验] 到'真实'主机根文件系统的路径。</p>
124113
</td>
125114
</tr>
126115

127116
</tbody>
128117
</table>
129-
130-

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

Lines changed: 47 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Generates keys and certificate signing requests (CSRs) for all the certificates
1818
<!--
1919
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.
2020
-->
21-
此命令设计用于 [Kubeadm 外部 CA 模式](https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/kubeadm/kubeadm-certs/#external-ca-mode)
21+
此命令设计用于 [Kubeadm 外部 CA 模式](https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/kubeadm/kubeadm-certs/#external-ca-mode)
2222
它生成你可以提交给外部证书颁发机构进行签名的 CSR。
2323

2424
<!--
@@ -44,7 +44,7 @@ kubeadm certs generate-csr [flags]
4444
```
4545
-->
4646
```
47-
# 以下命令将为所有控制平面证书和 kubeconfig 文件生成密钥和 CSR :
47+
# 以下命令将为所有控制平面证书和 kubeconfig 文件生成密钥和 CSR
4848
kubeadm certs generate-csr --kubeconfig-dir /tmp/etc-k8s --cert-dir /tmp/etc-k8s/pki
4949
```
5050

@@ -64,33 +64,60 @@ kubeadm certs generate-csr --kubeconfig-dir /tmp/etc-k8s --cert-dir /tmp/etc-k8s
6464
<td colspan="2">--cert-dir string</td>
6565
</tr>
6666
<tr>
67-
<!-- td></td><td style="line-height: 130%; word-wrap: break-word;">The path where to save the certificates</td-->
68-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>保存证书的路径</p></td>
67+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
68+
<p>
69+
<!--
70+
The path where to save the certificates
71+
-->
72+
保存证书的路径。
73+
</p>
74+
</td>
6975
</tr>
7076

7177
<tr>
7278
<td colspan="2">--config string</td>
7379
</tr>
7480
<tr>
75-
<!-- td></td><td style="line-height: 130%; word-wrap: break-word;">Path to a kubeadm configuration file.</td -->
76-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>kubeadm 配置文件的路径。</p></td>
81+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
82+
<p>
83+
<!--
84+
Path to a kubeadm configuration file.
85+
-->
86+
到 kubeadm 配置文件的路径。
87+
</p></td>
7788
</tr>
7889

7990
<tr>
8091
<td colspan="2">-h, --help</td>
8192
</tr>
8293
<tr>
83-
<!-- td></td><td style="line-height: 130%; word-wrap: break-word;">help for generate-csr</td -->
84-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>generate-csr 命令的帮助</p></td>
94+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
95+
<p>
96+
<!--
97+
help for generate-csr
98+
-->
99+
generate-csr 操作的帮助命令。
100+
</p>
101+
</td>
85102
</tr>
86103

87104
<tr>
88-
<!-- td colspan="2">-kubeconfig-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "/etc/kubernetes"</td -->
89-
<td colspan="2">--kubeconfig-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值:"/etc/kubernetes"</td>
105+
<td colspan="2">
106+
<!--
107+
-kubeconfig-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "/etc/kubernetes"
108+
-->
109+
--kubeconfig-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值:"/etc/kubernetes"
110+
</td>
90111
</tr>
91112
<tr>
92-
<!-- td></td><td style="line-height: 130%; word-wrap: break-word;">The path where to save the kubeconfig file.</td-->
93-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>保存 kubeconfig 文件的路径。</p></td>
113+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
114+
<p>
115+
<!--
116+
The path where to save the kubeconfig file.
117+
-->
118+
保存 kubeconfig 文件的路径。
119+
</p>
120+
</td>
94121
</tr>
95122

96123
</tbody>
@@ -112,10 +139,15 @@ kubeadm certs generate-csr --kubeconfig-dir /tmp/etc-k8s --cert-dir /tmp/etc-k8s
112139
<td colspan="2">--rootfs string</td>
113140
</tr>
114141
<tr>
115-
<!-- <td></td><td style="line-height: 130%; word-wrap: break-word;">[EXPERIMENTAL] The path to the 'real' host root filesystem.</td> -->
116-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>[实验] 到'真实'主机根文件系统的路径。</p></td>
142+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
143+
<p>
144+
<!--
145+
[EXPERIMENTAL] The path to the 'real' host root filesystem.
146+
-->
147+
[实验] 到'真实'主机根文件系统的路径。
148+
</p>
149+
</td>
117150
</tr>
118151

119152
</tbody>
120153
</table>
121-

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

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
1-
<!--
2-
The file is auto-generated from the Go source code of the component using a generic
3-
[generator](https://github.com/kubernetes-sigs/reference-docs/). To learn how
4-
to generate the reference documentation, please read
5-
[Contributing to the reference documentation](/docs/contribute/generate-ref-docs/).
6-
To update the reference content, please follow the
7-
[Contributing upstream](/docs/contribute/generate-ref-docs/contribute-upstream/)
8-
guide. You can file document formatting bugs against the
9-
[reference-docs](https://github.com/kubernetes-sigs/reference-docs/) project.
10-
-->
11-
121
<!--
132
Renew the certificate embedded in the kubeconfig file for the admin to use and for kubeadm itself
143
-->
15-
续订 kubeconfig 文件中嵌入的证书,供管理员 和 kubeadm 自身使用。
4+
续订 kubeconfig 文件中嵌入的证书,供管理员和 kubeadm 自身使用。
165

176
<!--
187
### Synopsis
@@ -22,7 +11,7 @@ Renew the certificate embedded in the kubeconfig file for the admin to use and f
2211
<!--
2312
Renew the certificate embedded in the kubeconfig file for the admin to use and for kubeadm itself.
2413
-->
25-
续订 kubeconfig 文件中嵌入的证书,供管理员 和 kubeadm 自身使用。
14+
续订 kubeconfig 文件中嵌入的证书,供管理员和 kubeadm 自身使用。
2615

2716
<!--
2817
Renewals run unconditionally, regardless of certificate expiration date; extra attributes such as SANs will be based on the existing file/certificates, there is no need to resupply them.
@@ -47,7 +36,6 @@ kubeadm certs renew admin.conf [flags]
4736
<!--
4837
### Options
4938
-->
50-
5139
### 选项
5240

5341
<table style="width: 100%; table-layout: fixed;">
@@ -59,7 +47,9 @@ kubeadm certs renew admin.conf [flags]
5947

6048
<tr>
6149
<td colspan="2">
62-
<!-- --cert-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "/etc/kubernetes/pki" -->
50+
<!--
51+
--cert-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "/etc/kubernetes/pki"
52+
-->
6353
--cert-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值:"/etc/kubernetes/pki"
6454
</td>
6555
</tr>
@@ -77,8 +67,10 @@ kubeadm certs renew admin.conf [flags]
7767
</tr>
7868
<tr>
7969
<td></td><td style="line-height: 130%; word-wrap: break-word;">
80-
<!-- <p>Path to a kubeadm configuration file.</p> -->
81-
<p>kubeadm 配置文件的路径。</p>
70+
<!--
71+
<p>Path to a kubeadm configuration file.</p>
72+
-->
73+
<p>到 kubeadm 配置文件的路径。</p>
8274
</td>
8375
</tr>
8476

@@ -87,8 +79,10 @@ kubeadm certs renew admin.conf [flags]
8779
</tr>
8880
<tr>
8981
<td></td><td style="line-height: 130%; word-wrap: break-word;">
90-
<!-- <p>help for admin.conf</p> -->
91-
<p>admin.conf 子操作的帮助命令</p>
82+
<!--
83+
<p>help for admin.conf</p>
84+
-->
85+
<p>admin.conf 操作的帮助命令。</p>
9286
</td>
9387
</tr>
9488

@@ -97,7 +91,9 @@ kubeadm certs renew admin.conf [flags]
9791
</tr>
9892
<tr>
9993
<td></td><td style="line-height: 130%; word-wrap: break-word;">
100-
<!-- <p>The kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations can be searched for an existing kubeconfig file.</p> -->
94+
<!--
95+
<p>The kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations can be searched for an existing kubeconfig file.</p>
96+
-->
10197
<p>与集群通信时使用的 kubeconfig 文件。
10298
如果未设置该参数,则可以在一组标准位置中搜索现有的 kubeconfig 文件。</p>
10399
</td>
@@ -111,7 +107,7 @@ kubeadm certs renew admin.conf [flags]
111107
<!--
112108
Use the Kubernetes certificate API to renew certificates
113109
-->
114-
使用 Kubernetes 证书 API 续订证书
110+
使用 Kubernetes 证书 API 续订证书
115111
</td>
116112
</tr>
117113

@@ -144,4 +140,3 @@ Use the Kubernetes certificate API to renew certificates
144140

145141
</tbody>
146142
</table>
147-

0 commit comments

Comments
 (0)