Challenge - 5 Problems
Event Inspection Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:30remaining
What is the output of this command?
You run the command
kubectl get events --field-selector involvedObject.kind=Pod,involvedObject.name=myapp-pod. What does this command show?Kubernetes
kubectl get events --field-selector involvedObject.kind=Pod,involvedObject.name=myapp-podAttempts:
2 left
💡 Hint
Field selectors filter events by object kind and name.
✗ Incorrect
The command filters events to show only those related to the Pod named 'myapp-pod'. It helps diagnose issues specific to that pod.
❓ Troubleshoot
intermediate1:30remaining
Why does this event inspection command return no events?
You run
kubectl get events --namespace=production --field-selector reason=FailedScheduling but get no events. What is the most likely reason?Kubernetes
kubectl get events --namespace=production --field-selector reason=FailedSchedulingAttempts:
2 left
💡 Hint
Field selectors only show matching events if they exist.
✗ Incorrect
If no events match the filter, kubectl returns no output. The command is correct but no FailedScheduling events exist now.
❓ Configuration
advanced2:00remaining
How to configure event retention duration in Kubernetes?
You want to increase how long Kubernetes keeps events before deleting them. Which configuration change achieves this?
Attempts:
2 left
💡 Hint
Event TTL is controlled by the API server flag.
✗ Incorrect
The
--event-ttl flag on kube-apiserver sets how long events are kept before automatic deletion.🔀 Workflow
advanced2:30remaining
What is the correct workflow to diagnose a pod crash using events?
You notice a pod is crashing repeatedly. Which sequence of commands helps diagnose the issue using events?
Attempts:
2 left
💡 Hint
Start by listing pods, then describe, then check events and logs.
✗ Incorrect
First list pods to confirm status, then describe pod for details, then get related events, finally check logs for errors.
✅ Best Practice
expert3:00remaining
Which practice best improves event inspection for long-term diagnostics?
You want to keep Kubernetes events for weeks to analyze intermittent issues. What is the best approach?
Attempts:
2 left
💡 Hint
Kubernetes events are ephemeral; external storage is recommended.
✗ Incorrect
Events are short-lived in Kubernetes. Exporting them to external systems allows long-term storage and analysis.