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
Copy file name to clipboardExpand all lines: modules/graceful-shutdown.adoc
+54-4Lines changed: 54 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,18 +33,68 @@ If your cluster fails to recover, follow the steps to restore to a previous clus
33
33
34
34
.Procedure
35
35
36
-
. If you are shutting the cluster down for an extended period, determine the date on which certificates expire.
36
+
. If you plan to shut down the cluster for an extended period of time, determine the date that cluster certificates expire.
37
+
+
38
+
You must restart the cluster prior to the date that certificates expire. As the cluster restarts, the process might require you to manually approve the pending certificate signing requests (CSRs) to recover kubelet certificates.
39
+
40
+
.. Check the expiration date for the `kube-apiserver-to-kubelet-signer` CA certificate:
41
+
+
42
+
[source,terminal]
43
+
----
44
+
$ oc -n openshift-kube-apiserver-operator get secret kube-apiserver-to-kubelet-signer -o jsonpath='{.metadata.annotations.auth\.openshift\.io/certificate-not-after}{"\n"}'
45
+
----
46
+
+
47
+
.Example output
48
+
[source,terminal]
49
+
----
50
+
2023-08-05T14:37:50Z
51
+
----
52
+
53
+
.. Check the expiration date for the kubelet certificates:
54
+
55
+
... Start a debug session for a control plane node by running the following command:
56
+
+
57
+
[source,terminal]
58
+
----
59
+
$ oc debug node/<node_name>
60
+
----
61
+
62
+
... Change your root directory to `/host` by running the following command:
37
63
+
38
64
[source,terminal]
39
65
----
40
-
$ oc -n openshift-kube-apiserver-operator get secret kube-apiserver-to-kubelet-signer -o jsonpath='{.metadata.annotations.auth\.openshift\.io/certificate-not-after}'
66
+
sh-4.4# chroot /host
67
+
----
68
+
69
+
... Check the kubelet client certificate expiration date by running the following command:
<1> To ensure that the cluster can restart gracefully, plan to restart it on or before the specified date. As the cluster restarts, the process might require you to manually approve the pending certificate signing requests (CSRs) to recover kubelet certificates.
94
+
95
+
... Exit the debug session.
96
+
97
+
... Repeat these steps to check certificate expiration dates on all control plane nodes. To ensure that the cluster can restart gracefully, plan to restart it before the earliest certificate expiration date.
48
98
49
99
. Shut down all of the nodes in the cluster. You can do this from your cloud provider's web console, or run the following loop:
0 commit comments