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
This command performs the renewal using CA (or front-proxy-CA) certificate and key stored in `/etc/kubernetes/pki`.
@@ -286,26 +286,29 @@ to keep them both in sync.
286
286
{{< /note >}}
287
287
288
288
<!--
289
-
`kubeadm certs renew` provides the following options:
289
+
`kubeadm certs renew` can renew any specific certificate or, with the subcommand `all`, it can renew all of them, as shown below:
290
290
-->
291
-
`kubeadm certs renew`提供以下选项:
291
+
`kubeadm certs renew`可以更新任何特定的证书,或者使用子命令 `all`
292
+
更新所有的证书,如下所示:
292
293
293
-
<!--
294
-
- The Kubernetes certificates normally reach their expiration date after one year.
295
-
-->
296
-
- Kubernetes 证书通常在一年后到期。
294
+
```shell
295
+
kubeadm certs renew all
296
+
```
297
297
298
+
{{< note >}}
298
299
<!--
299
-
- `--csr-only`can be used to renew certificates with an external CA by generating certificate
300
-
signing requests (without actually renewing certificates in place); see next paragraph for more
301
-
information.
302
-
303
-
- It's also possible to renew a single certificate instead of all.
300
+
Clusters built with kubeadm often copy the `admin.conf` certificate into `$HOME/.kube/config`, as instructed in [Creating a cluster with kubeadm](https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/). On such a system, to update the contents of `$HOME/.kube/config` after renewing the `admin.conf` you must run the following commands:
304
301
-->
305
-
- `--csr-only`可用于经过一个外部 CA 生成的证书签名请求来更新证书(无需实际替换更新证书);
0 commit comments