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

CKA study material · question 492 of 1000

Which command opens a shell on a node that cannot be reached over SSH?

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

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

kubectl debug node deploys a Pod to that node and opens an interactive shell, needing host-filesystem permissions.

Source: Debugging Kubernetes Nodes With Kubectl (Kubernetes) — Debugging a Node using kubectl debug node

Challenge yourself on this topic → Study as cards