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/nodes-nodes-rebooting-gracefully.adoc
+57-2Lines changed: 57 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,13 @@
8
8
9
9
Before rebooting a node, it is recommended to backup etcd data to avoid any data loss on the node.
10
10
11
+
[NOTE]
12
+
====
13
+
For Single Node OpenShift (SNO) clusters that require users to perform the `oc login` command rather than having the certificates in `kubeconfig` file to manage the cluster, the `oc adm` commands might not be available after cordoning and draining the node. This is because the `openshift-oauth-apiserver` pod is not running due to the cordon. You can use SSH to access the nodes as indicated in the following procedure.
14
+
15
+
In an SNO cluster, pods cannot be rescheduled when cordoning and draining. However, doing so gives the pods, especially your workload pods, time to properly stop and release associated resources.
You might receive errors that pods associated with custom pod disruption budgets (PDB) cannot be evicted.
37
+
+
38
+
.Example error
39
+
[source,terminal]
40
+
----
41
+
error when evicting pods/"rails-postgresql-example-1-72v2w" -n "rails" (will retry after 5s): Cannot evict pod as it would violate the pod's disruption budget.
42
+
----
43
+
+
44
+
In this case, run the drain command again, adding the `disable-eviction` flag, which bypasses the PDB checks:
In a moment, the node enters the `NotReady` state.
73
+
+
74
+
[NOTE]
75
+
====
76
+
With some SNO clusters, the `oc` commands might not be available after you cordon and drain the node because the `openshift-oauth-apiserver` pod is not running. You can use SSH to connect to the node and perform the reboot.
. Mark the node as schedulable after the reboot is complete:
89
+
. After the reboot is complete, mark the node as schedulable by running the following command:
53
90
+
54
91
[source,terminal]
55
92
----
56
93
$ oc adm uncordon <node1>
57
94
----
95
+
+
96
+
[NOTE]
97
+
====
98
+
With some SNO clusters, the `oc` commands might not be available after you cordon and drain the node because the `openshift-oauth-apiserver` pod is not running. You can use SSH to connect to the node and uncordon it.
0 commit comments