Skip to content

Commit f8a5af2

Browse files
authored
Merge pull request #53308 from my-git9/npe-26114
[zh-cn]sync kubeadm_certs_renew_apiserver-etcd-client kubeadm_upgrade_node_phase_addon_all
2 parents b25795e + 39bfbef commit f8a5af2

File tree

2 files changed

+58
-43
lines changed

2 files changed

+58
-43
lines changed

content/zh-cn/docs/reference/setup-tools/kubeadm/generated/kubeadm_certs/kubeadm_certs_renew_apiserver-etcd-client.md

Lines changed: 41 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
<!--
2-
Renew the certificate the apiserver uses to access etcd
3-
-->
4-
续订 apiserver 用于访问 etcd 的证书。
5-
61
<!--
72
### Synopsis
83
-->
@@ -16,20 +11,23 @@ Renew the certificate the apiserver uses to access etcd.
1611
<!--
1712
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.
1813
-->
19-
无论证书的到期日期如何,续订都会无条件地进行;SAN 等额外属性将基于现有文件/证书,因此无需重新提供它们。
14+
无论证书的到期日期如何,续订都会无条件地进行;SAN 等额外属性将基于现有文件/证书,
15+
因此无需重新提供它们。
2016

2117
<!--
2218
Renewal by default tries to use the certificate authority in the local PKI managed by kubeadm; as alternative it is possible to use K8s certificate API for certificate renewal, or as a last option, to generate a CSR request.
2319
-->
24-
默认情况下,续订尝试使用在 kubeadm 所管理的本地 PKI 中的证书颁发机构;作为替代方案,
25-
可以使用 K8s 证书 API 进行证书更新,或者作为最后一个选择来生成 CSR 请求。
20+
默认情况下,续订尝试使用在 kubeadm 所管理的本地 PKI 中的证书颁发机构;
21+
作为替代方案,可以使用 K8s 证书 API 进行证书更新,或者(作为最后一个选项)生成
22+
CSR 请求。
2623

2724
<!--
2825
After renewal, in order to make changes effective, is is required to restart control-plane components and eventually re-distribute the renewed certificate in case the file is used elsewhere.
2926
-->
30-
续订后,为了使更改生效,需要重新启动控制平面组件,并最终重新分发更新的证书,以防文件在其他地方使用。
27+
续订后,为了使更改生效,需要重新启动控制平面组件,并最终重新分发更新的证书,
28+
以防文件在其他地方使用。
3129

32-
```
30+
```shell
3331
kubeadm certs renew apiserver-etcd-client [flags]
3432
```
3533

@@ -38,7 +36,7 @@ kubeadm certs renew apiserver-etcd-client [flags]
3836
-->
3937
### 选项
4038

41-
<table style="width: 100%; table-layout: fixed;">
39+
<table style="width: 100%; table-layout: fixed;">
4240
<colgroup>
4341
<col span="1" style="width: 10px;" />
4442
<col span="1" />
@@ -54,35 +52,44 @@ cert-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "/etc/kubernetes/pki"
5452
</td>
5553
</tr>
5654
<tr>
57-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
55+
<td></td>
56+
<td style="line-height: 130%; word-wrap: break-word;">
57+
<p>
5858
<!--
59-
<p>The path where to save and store the certificates.</p>
59+
The path where to save and store the certificates.
6060
-->
61-
<p>存储证书的路径。</p>
61+
存储证书的路径。
62+
</p>
6263
</td>
6364
</tr>
6465

6566
<tr>
6667
<td colspan="2">--config string</td>
6768
</tr>
6869
<tr>
69-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
70+
<td></td>
71+
<td style="line-height: 130%; word-wrap: break-word;">
72+
<p>
7073
<!--
71-
<p>Path to a kubeadm configuration file.</p>
74+
Path to a kubeadm configuration file.
7275
-->
73-
<p>kubeadm 配置文件的路径。</p>
76+
kubeadm 配置文件的路径。
77+
</p>
7478
</td>
7579
</tr>
7680

7781
<tr>
7882
<td colspan="2">-h, --help</td>
7983
</tr>
8084
<tr>
81-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
85+
<td></td>
86+
<td style="line-height: 130%; word-wrap: break-word;">
87+
<p>
8288
<!--
83-
<p>help for apiserver-etcd-client</p>
89+
help for apiserver-etcd-client
8490
-->
85-
<p>apiserver-etcd-client 操作的帮助命令。</p>
91+
apiserver-etcd-client 操作的帮助命令。
92+
</p>
8693
</td>
8794
</tr>
8895

@@ -95,12 +102,15 @@ cert-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "/etc/kubernetes/pki"
95102
</td>
96103
</tr>
97104
<tr>
98-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
105+
<td></td>
106+
<td style="line-height: 130%; word-wrap: break-word;">
107+
<p>
99108
<!--
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>
109+
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.
101110
-->
102-
<p>与集群通信时使用的 kubeconfig 文件。
103-
如果未设置该参数,则可以在一组标准位置中搜索现有的 kubeconfig 文件。</p>
111+
与集群通信时使用的 kubeconfig 文件。
112+
如果未设置该参数,则可以在一组标准位置中搜索现有的 kubeconfig 文件。
113+
</p>
104114
</td>
105115
</tr>
106116

@@ -112,7 +122,7 @@ cert-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "/etc/kubernetes/pki"
112122
-->
113123
### 从父命令继承的选项
114124

115-
<table style="width: 100%; table-layout: fixed;">
125+
<table style="width: 100%; table-layout: fixed;">
116126
<colgroup>
117127
<col span="1" style="width: 10px;" />
118128
<col span="1" />
@@ -123,11 +133,14 @@ cert-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "/etc/kubernetes/pki"
123133
<td colspan="2">--rootfs string</td>
124134
</tr>
125135
<tr>
126-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
136+
<td></td>
137+
<td style="line-height: 130%; word-wrap: break-word;">
138+
<p>
127139
<!--
128-
<p>[EXPERIMENTAL] The path to the 'real' host root filesystem.</p>
140+
[EXPERIMENTAL] The path to the 'real' host root filesystem.
129141
-->
130-
<p>[实验] 到 '真实' 主机根文件系统的路径。</p>
142+
[实验] 到 '真实' 主机根文件系统的路径。
143+
</p>
131144
</td>
132145
</tr>
133146

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

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
<!--
2-
Upgrade all the addons
3-
-->
4-
升级所有插件
5-
61
<!--
72
### Synopsis
83
-->
@@ -33,11 +28,12 @@ kubeadm upgrade node phase addon all [flags]
3328
<td colspan="2">--config string</td>
3429
</tr>
3530
<tr>
36-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
31+
<td></td>
32+
<td style="line-height: 130%; word-wrap: break-word;">
33+
<p>
3734
<!--
3835
Path to a kubeadm configuration file.
3936
-->
40-
<p>
4137
kubeadm 配置文件的路径。
4238
</p>
4339
</td>
@@ -47,7 +43,8 @@ kubeadm 配置文件的路径。
4743
<td colspan="2">--dry-run</td>
4844
</tr>
4945
<tr>
50-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
46+
<td></td>
47+
<td style="line-height: 130%; word-wrap: break-word;">
5148
<p>
5249
<!--
5350
Do not change any state, just output the actions that would be performed.
@@ -62,10 +59,10 @@ Do not change any state, just output the actions that would be performed.
6259
</tr>
6360
<tr>
6461
<td></td><td style="line-height: 130%; word-wrap: break-word;">
62+
<p>
6563
<!--
6664
help for all
6765
-->
68-
<p>
6966
all 操作的帮助命令。
7067
</p>
7168
</td>
@@ -76,7 +73,7 @@ all 操作的帮助命令。
7673
<!--
7774
--kubeconfig string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default: "/etc/kubernetes/admin.conf"
7875
-->
79-
--kubeconfig string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值: "/etc/kubernetes/admin.conf"
76+
--kubeconfig string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值"/etc/kubernetes/admin.conf"
8077
</td>
8178
</tr>
8279
<tr>
@@ -85,7 +82,8 @@ all 操作的帮助命令。
8582
<!--
8683
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.
8784
-->
88-
用于和集群通信的 KubeConfig 文件。如果它没有被设置,那么 kubeadm 将会搜索一个已经存在于标准路径的 KubeConfig 文件。
85+
用于和集群通信的 KubeConfig 文件。如果它没有被设置,那么 kubeadm
86+
将会搜索一个已经存在于标准路径的 KubeConfig 文件。
8987
</p>
9088
</td>
9189
</tr>
@@ -94,19 +92,22 @@ The kubeconfig file to use when talking to the cluster. If the flag is not set,
9492
<td colspan="2">--patches string</td>
9593
</tr>
9694
<tr>
97-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
95+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
96+
<p>
9897
<!--
9998
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.
10099
-->
101100
包含名为 &quot;target[suffix][+patchtype].extension&quot; 的文件的目录的路径。
102101
例如,&quot;kube-apiserver0+merge.yaml&quot;或仅仅是 &quot;etcd.json&quot;
103-
&quot;target&quot; 可以是 &quot;kube-apiserver&quot;&quot;kube-controller-manager&quot;&quot;kube-scheduler&quot;&quot;etcd&quot;&quot;kubeletconfiguration&quot; 之一。
102+
&quot;target&quot; 可以是 &quot;kube-apiserver&quot;&quot;kube-controller-manager&quot;
103+
&quot;kube-scheduler&quot;&quot;etcd&quot;&quot;kubeletconfiguration&quot; 之一。
104104
&quot;patchtype&quot; 可以是 &quot;strategic&quot;&quot;merge&quot; 或者 &quot;json&quot; 之一,
105105
并且它们与 kubectl 支持的补丁格式相同。
106106
默认的 &quot;patchtype&quot;&quot;strategic&quot;
107107
&quot;extension&quot; 必须是&quot;json&quot;&quot;yaml&quot;
108108
&quot;suffix&quot; 是一个可选字符串,可用于确定首先按字母顺序应用哪些补丁。
109-
</p></td>
109+
</p>
110+
</td>
110111
</tr>
111112

112113
</tbody>
@@ -128,7 +129,8 @@ Path to a directory that contains files named &quot;target[suffix][+patchtype].e
128129
<td colspan="2">--rootfs string</td>
129130
</tr>
130131
<tr>
131-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
132+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
133+
<p>
132134
<!--
133135
The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path.
134136
-->

0 commit comments

Comments
 (0)