Skip to content

Commit 79d12e7

Browse files
author
mikemckiernan
authored
Merge pull request #36971 from chinmayi-chandrasekar/BZ1967977_sosreport_for_tainted_node
BZ1967977: steps for generating sos report when a node has taint with NoExecute configuration
2 parents 3732f2f + 383da4b commit 79d12e7

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

modules/support-generating-a-sosreport-archive.adoc

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,24 @@ $ oc get nodes
3131
----
3232
$ oc debug node/my-cluster-node
3333
----
34-
34+
+
35+
To enter into a debug session on the target node that is tainted with the `NoExecute` effect, add a toleration to a dummy namespace, and start the debug pod in the dummy namespace:
36+
+
37+
[source,terminal]
38+
----
39+
$ oc new-project dummy
40+
----
41+
+
42+
[source,terminal]
43+
----
44+
$ oc patch namespace dummy --type=merge -p '{"metadata": {"annotations": { "scheduler.alpha.kubernetes.io/defaultTolerations": "[{\"operator\": \"Exists\"}]"}}}'
45+
----
46+
+
47+
[source,terminal]
48+
----
49+
$ oc debug node/my-cluster-node
50+
----
51+
+
3552
. Set `/host` as the root directory within the debug shell. The debug pod mounts the host's root file system in `/host` within the pod. By changing the root directory to `/host`, you can run binaries contained in the host's executable paths:
3653
+
3754
[source,terminal]

0 commit comments

Comments
 (0)