Troubleshooting
⏱ ~3-min readAceMark GuideWhat this topic is really about
The 'kubectl drain' command safely evicts or schedules replicas of your pods onto other nodes before you perform maintenance on the node. Using 'kubectl delete node' is incorrect because it removes the node object from the cluster API immediately without gracefully rescheduling the running workloads first.
The 'kubectl describe' command retrieves comprehensive details about a Pod, including its configuration, status, and lifecycle events that help diagnose failures. It provides much more than just the Pod's IP address, though it does not output actual container logs, which require 'kubectl logs'.
See the mechanism
The 'kubectl describe' command retrieves comprehensive details about a Pod, including its configuration, status, and lifecycle events that help diagnose failures. A diagram for this topic isn't available yet — the worked example below walks the same reasoning step by step.
An exam-style question, fully explained
kubectl describe pod <name> shows:
- Identify what the question tests: kubectl describe pod <name> shows:.
- The 'kubectl describe' command retrieves comprehensive details about a Pod, including its configuration, status, and lifecycle events that help diagnose failures.
- It provides much more than just the Pod's IP address, though it does not output actual container logs, which require 'kubectl logs'.
Traps the examiner sets
- Using 'kubectl delete node' is incorrect because it removes the node object from the cluster API immediately without gracefully rescheduling the running workloads first.
Test your recall
Answer each from memory — you'll see instantly whether you're right and why.
Run a focused 10-question mini-mock on Troubleshooting and see it stick.
Practice more of this topic →