Study. uk . com
  1. Home
  2. All questions
  3. Question 373

CKA study material · question 373 of 1000

Which command opens a shell on a node when no Pod on it is usable?

  1. kubectl run --node=<name>
  2. kubectl attach node/<name>
  3. kubectl exec node/<name> -- /bin/sh
  4. kubectl debug node/<name> -it --image=<image>
Show the answer

Answer: D. kubectl debug node/<name> -it --image=<image>

kubectl debug node starts a Pod on that node with the host's filesystem reachable, which is the route to node problems.

Source: Debug Running Pods (Kubernetes) — Debugging via a shell on the node

Challenge yourself on this topic → Study as cards