Challenge - 5 Problems
Kubectl Describe Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
What does
kubectl describe pod mypod show?You run
kubectl describe pod mypod. What kind of information will you see in the output?Attempts:
2 left
💡 Hint
Think about what 'describe' means: it gives detailed info about a specific resource.
✗ Incorrect
kubectl describe shows detailed information about a specific Kubernetes resource. For pods, it includes labels, annotations, container states, events, and more. It does not show just IP or a list of pods or the YAML config.
💻 Command Output
intermediate2:00remaining
What error appears if you describe a non-existent pod?
You run
kubectl describe pod unknownpod but the pod does not exist. What is the output?Attempts:
2 left
💡 Hint
If a resource does not exist, kubectl usually reports a NotFound error.
✗ Incorrect
If you try to describe a pod that does not exist, kubectl returns an error message indicating the pod was not found.
❓ Configuration
advanced2:00remaining
Which option shows how to describe all pods in a namespace?
You want to see detailed info for all pods in the namespace
dev. Which command will do this?Attempts:
2 left
💡 Hint
Use plural resource name and specify namespace with -n.
✗ Incorrect
To describe all pods in a namespace, use kubectl describe pods -n dev. The resource name is plural 'pods'.
❓ Troubleshoot
advanced2:00remaining
Why does
kubectl describe pod mypod show no events?You run
kubectl describe pod mypod but the events section is empty. What could be a reason?Attempts:
2 left
💡 Hint
Events only appear if something happened recently.
✗ Incorrect
If no events appear, it usually means nothing notable happened recently for that pod. Events are transient and may expire.
✅ Best Practice
expert2:00remaining
What is the best way to get detailed info about a pod and save it for later?
You want to describe a pod named
mypod and save the detailed output to a file for sharing. Which command is best?Attempts:
2 left
💡 Hint
You want to see output on screen and save it at the same time.
✗ Incorrect
Using kubectl describe pod mypod | tee pod-details.txt shows the output on screen and saves it to a file simultaneously. Redirecting with > hides output from screen.