Skip to content

Commit 603347a

Browse files
authored
Merge pull request #79928 from ShreyaSharma-shrsharm/patch-2
Reordering the steps to restart the cluster gracefully
2 parents 866d070 + 1b4205b commit 603347a

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

modules/graceful-restart.adoc

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ The control plane nodes are ready if the status is `Ready`, as shown in the foll
3434
+
3535
[source,terminal]
3636
----
37-
NAME STATUS ROLES AGE VERSION
38-
ip-10-0-168-251.ec2.internal Ready master 75m v1.29.4
39-
ip-10-0-170-223.ec2.internal Ready master 75m v1.29.4
40-
ip-10-0-211-16.ec2.internal Ready master 75m v1.29.4
37+
NAME STATUS ROLES AGE VERSION
38+
ip-10-0-168-251.ec2.internal Ready control-plane,master 75m v1.29.4
39+
ip-10-0-170-223.ec2.internal Ready control-plane,master 75m v1.29.4
40+
ip-10-0-211-16.ec2.internal Ready control-plane,master 75m v1.29.4
4141
----
4242

4343
. If the control plane nodes are _not_ ready, then check whether there are any pending certificate signing requests (CSRs) that must be approved.
@@ -105,6 +105,14 @@ $ oc describe csr <csr_name> <1>
105105
$ oc adm certificate approve <csr_name>
106106
----
107107

108+
. After the control plane and worker nodes are ready, mark all the nodes in the cluster as schedulable.
109+
Run the following command:
110+
+
111+
[source,terminal]
112+
----
113+
for node in $(oc get nodes -o jsonpath='{.items[*].metadata.name}'); do echo ${node} ; oc adm uncordon ${node} ; done
114+
----
115+
108116
. Verify that the cluster started properly.
109117

110118
.. Check that there are no degraded cluster Operators.
@@ -141,21 +149,13 @@ Check that the status for all nodes is `Ready`.
141149
+
142150
[source,terminal]
143151
----
144-
NAME STATUS ROLES AGE VERSION
145-
ip-10-0-168-251.ec2.internal Ready master 82m v1.29.4
146-
ip-10-0-170-223.ec2.internal Ready master 82m v1.29.4
147-
ip-10-0-179-95.ec2.internal Ready worker 70m v1.29.4
148-
ip-10-0-182-134.ec2.internal Ready worker 70m v1.29.4
149-
ip-10-0-211-16.ec2.internal Ready master 82m v1.29.4
150-
ip-10-0-250-100.ec2.internal Ready worker 69m v1.29.4
152+
NAME STATUS ROLES AGE VERSION
153+
ip-10-0-168-251.ec2.internal Ready control-plane,master 82m v1.29.4
154+
ip-10-0-170-223.ec2.internal Ready control-plane.master 82m v1.29.4
155+
ip-10-0-179-95.ec2.internal Ready worker 70m v1.29.4
156+
ip-10-0-182-134.ec2.internal Ready worker 70m v1.29.4
157+
ip-10-0-211-16.ec2.internal Ready control-plane,master 82m v1.29.4
158+
ip-10-0-250-100.ec2.internal Ready worker 69m v1.29.4
151159
----
152160
+
153161
If the cluster did not start properly, you might need to restore your cluster using an etcd backup.
154-
155-
. After the control plane and worker nodes are ready, mark all the nodes in the cluster as schedulable.
156-
Run the following command:
157-
+
158-
[source,terminal]
159-
----
160-
for node in $(oc get nodes -o jsonpath='{.items[*].metadata.name}'); do echo ${node} ; oc adm uncordon ${node} ; done
161-
----

0 commit comments

Comments
 (0)