|
| 1 | +### renew certificates inside cluster### |
| 2 | + |
| 3 | +running on master node |
| 4 | + |
| 5 | +``` |
| 6 | +kubeadm certs renew all |
| 7 | +``` |
| 8 | + |
| 9 | +then restart kubelet running on the master node (or container if in kind env) with |
| 10 | + |
| 11 | +``` |
| 12 | +systemctm restart kubelet |
| 13 | +``` |
| 14 | + |
| 15 | + |
| 16 | +run this command to verify cluster certificates |
| 17 | + |
| 18 | +``` |
| 19 | +
|
| 20 | +kubeadm certs check-expiration |
| 21 | +
|
| 22 | +CERTIFICATE EXPIRES RESIDUAL TIME CERTIFICATE AUTHORITY EXTERNALLY MANAGED |
| 23 | +admin.conf Mar 01, 2025 02:27 UTC 364d ca no |
| 24 | +apiserver Mar 01, 2025 02:27 UTC 364d ca no |
| 25 | +apiserver-etcd-client Mar 01, 2025 02:27 UTC 364d etcd-ca no |
| 26 | +apiserver-kubelet-client Mar 01, 2025 02:27 UTC 364d ca no |
| 27 | +controller-manager.conf Mar 01, 2025 02:27 UTC 364d ca no |
| 28 | +etcd-healthcheck-client Mar 01, 2025 02:27 UTC 364d etcd-ca no |
| 29 | +etcd-peer Mar 01, 2025 02:27 UTC 364d etcd-ca no |
| 30 | +etcd-server Mar 01, 2025 02:27 UTC 364d etcd-ca no |
| 31 | +front-proxy-client Mar 01, 2025 02:27 UTC 364d front-proxy-ca no |
| 32 | +scheduler.conf Mar 01, 2025 02:27 UTC 364d ca no |
| 33 | +
|
| 34 | +CERTIFICATE AUTHORITY EXPIRES RESIDUAL TIME EXTERNALLY MANAGED |
| 35 | +ca Feb 15, 2033 17:36 UTC 8y no |
| 36 | +etcd-ca Feb 15, 2033 17:36 UTC 8y no |
| 37 | +front-proxy-ca Feb 15, 2033 17:36 UTC 8y no |
| 38 | +``` |
| 39 | + |
| 40 | + |
0 commit comments