File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -17,35 +17,44 @@ To perform a graceful restart of a node:
17
17
----
18
18
$ oc adm cordon <node1>
19
19
----
20
- +
20
+
21
21
. Drain the node to remove all the running pods:
22
22
+
23
23
[source,terminal]
24
24
----
25
25
$ oc adm drain <node1> --ignore-daemonsets --delete-emptydir-data
26
26
----
27
- +
27
+
28
28
. Access the node in debug mode:
29
29
+
30
30
[source,terminal]
31
31
----
32
32
$ oc debug node/<node1>
33
33
----
34
+
35
+ . Change your root directory to the host:
34
36
+
37
+ [source,terminal]
38
+ ----
39
+ $ chroot /host
40
+ ----
41
+
35
42
. Restart the node:
36
43
+
37
44
[source,terminal]
38
45
----
39
46
$ systemctl reboot
40
47
----
41
48
+
49
+ In a moment, the node enters the `NotReady` state.
50
+
42
51
. Mark the node as schedulable after the reboot is complete:
43
52
+
44
53
[source,terminal]
45
54
----
46
55
$ oc adm uncordon <node1>
47
56
----
48
- +
57
+
49
58
. Verify that the node is ready:
50
59
+
51
60
[source,terminal]
You can’t perform that action at this time.
0 commit comments