You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[PKI certificates and requirements](/docs/setup/best-practices/certificates/) includes guidance on
@@ -89,17 +97,19 @@ setting up a cluster to use an external CA.
89
97
<!--
90
98
## Check certificate expiration
91
99
92
-
You can use the `check-expiration` subcommand to check certificate expiration.
100
+
You can use the `check-expiration` subcommand to check when certificates expire:
93
101
-->
94
102
## 检查证书是否过期
95
103
96
-
你可以使用 `check-expiration`子命令来检查证书是否过期
104
+
你可以使用 `check-expiration`子命令来检查证书何时过期
97
105
98
106
```shell
99
107
kubeadm alpha certs check-expiration
100
-
```
108
+
```
101
109
102
-
<!-- The output is similar to this: -->
110
+
<!--
111
+
The output is similar to this:
112
+
-->
103
113
输出类似于以下内容:
104
114
105
115
```
@@ -124,8 +134,9 @@ front-proxy-ca Dec 28, 2029 23:36 UTC 9y no
124
134
<!--
125
135
The command shows expiration/residual time for the client certificates in the `/etc/kubernetes/pki` folder and for the client certificate embedded in the KUBECONFIG files used by kubeadm (`admin.conf`, `controller-manager.conf` and `scheduler.conf`).
Additionally, kubeadm informs the user if the certificate is externally managed; in this case, the user should take care of managing certificate renewal manually/using other tools.
@@ -135,9 +146,9 @@ Additionally, kubeadm informs the user if the certificate is externally managed;
135
146
136
147
<!--
137
148
`kubeadm` cannot manage certificates signed by an external CA.
`kubeadm` renews all the certificates during control plane [upgrade](/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade-1-15/).
173
184
-->
185
+
174
186
## 自动更新证书
175
187
176
188
`kubeadm`会在控制面
@@ -230,24 +242,29 @@ If you are running an HA cluster, this command needs to be executed on all the c
230
242
如果你运行了一个 HA 集群,这个命令需要在所有控制面板节点上执行。
231
243
{{< /warning >}}
232
244
233
-
<!-- `alpha certs renew` uses the existing certificates as the authoritative source for attributes (Common Name, Organization, SAN, etc.) instead of the kubeadm-config ConfigMap. It is strongly recommended to keep them both in sync. -->
245
+
<!--
246
+
` certs renew`uses the existing certificates as the authoritative source for attributes (Common Name, Organization, SAN, etc.) instead of the kubeadm-config ConfigMap. It is strongly recommended to keep them both in sync.
`kubeadm alpha certs renew` provides the following options:
255
+
-->
256
+
`kubeadm certs renew`提供以下选项:
257
+
239
258
<!--
240
259
The Kubernetes certificates normally reach their expiration date after one year.
241
260
-->
242
261
Kubernetes 证书通常在一年后到期。
243
262
244
263
<!--
245
-
`kubeadm alpha certs renew` provides the following options:
246
264
247
265
- `--csr-only`can be used to renew certificats with an external CA by generating certificate signing requests (without actually renewing certificates in place); see next paragraph for more information.
248
266
- It's also possible to renew a single certificate instead of all.
249
267
-->
250
-
`kubeadm alpha certs renew`提供下列选项
251
268
252
269
- `--csr-only`可用于经过一个外部 CA 生成的证书签名请求来更新证书(无需实际替换更新证书);
253
270
更多信息请参见下节。
@@ -274,10 +291,11 @@ These are advanced topics for users who need to integrate their organization's c
274
291
### Set up a signer
275
292
276
293
The Kubernetes Certificate Authority does not work out of the box.
277
-
You can configure an external signer such as [cert-manager][cert-manager-issuer], or you can use the build-in signer.
278
-
The built-in signer is part of [`kube-controller-manager`][kcm].
279
-
To activate the build-in signer, you pass the `--cluster-signing-cert-file` and `--cluster-signing-key-file` arguments.
294
+
You can configure an external signer such as [cert-manager](https://docs.cert-manager.io/en/latest/tasks/issuers/setup-ca.html), or you can use the build-in signer.
295
+
The built-in signer is part of [`kube-controller-manager`](/docs/reference/command-line-tools-reference/kube-controller-manager/).
296
+
To activate the build-in signer, you must pass the `--cluster-signing-cert-file` and `--cluster-signing-key-file` flags.
The built-in signer is part of [`kube-controller-manager`][kcm].
294
-
To activate the build-in signer, you must pass the `--cluster-signing-cert-file` and `--cluster-signing-key-file` flags.
311
+
If you're creating a new cluster, you can use a kubeadm [configuration file](https://godoc.org/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta2):
If you set up an external signer such as [cert-manager][cert-manager], certificate signing requests (CSRs) are automatically approved.
325
-
Otherwise, you must manually approve certificates with the [`kubectl certificate`][certs] command.
335
+
If you set up an external signer such as [cert-manager](https://github.com/jetstack/cert-manager), certificate signing requests (CSRs) are automatically approved.
336
+
Otherwise, you must manually approve certificates with the [`kubectl certificate`](/docs/setup/best-practices/certificates/) command.
326
337
The following kubeadm command outputs the name of the certificate to approve, then blocks and waits for approval to occur:
0 commit comments