0
0
Kubernetesdevops~20 mins

Node troubleshooting in Kubernetes - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Node Troubleshooting Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2:00remaining
Check node status with kubectl
You run the command kubectl get nodes on your cluster. What output indicates that a node is NotReady?
Kubernetes
kubectl get nodes
A
NAME       STATUS     ROLES    AGE   VERSION
node1      Ready      worker   10d   v1.26.0
node2      NotReady   worker   10d   v1.26.0
B
NAME       STATUS     ROLES    AGE   VERSION
node1      Ready      master   10d   v1.26.0
node2      Ready      worker   10d   v1.26.0
C
NAME       STATUS     ROLES    AGE   VERSION
node1      Unknown    worker   10d   v1.26.0
node2      Ready      worker   10d   v1.26.0
D
NAME       STATUS     ROLES    AGE   VERSION
node1      Ready      worker   10d   v1.26.0
node2      SchedulingDisabled   worker   10d   v1.26.0
Attempts:
2 left
💡 Hint
Look for the STATUS column showing node health.
Troubleshoot
intermediate
2:00remaining
Diagnose node unreachable error
You notice pods stuck in Pending state and suspect a node is unreachable. Which command helps you check node connectivity issues?
Akubectl logs <pod-name>
Bkubectl get pods --all-namespaces
Ckubectl exec <pod-name> -- ping 8.8.8.8
Dkubectl describe node <node-name>
Attempts:
2 left
💡 Hint
You want detailed info about the node itself.
Configuration
advanced
2:00remaining
Identify correct kubelet config for node readiness
Which kubelet configuration option ensures the node reports Ready status only when the node is healthy?
A--fail-swap-on=false
B--read-only-port=10255
C--eviction-hard=memory.available<500Mi,nodefs.available<10%
D--node-status-update-frequency=10s
Attempts:
2 left
💡 Hint
Look for settings that control node health eviction.
🔀 Workflow
advanced
3:00remaining
Sequence to safely drain a node
What is the correct order of commands to safely drain a node before maintenance?
A2,1,3,4
B1,2,3,4
C1,3,2,4
D4,1,2,3
Attempts:
2 left
💡 Hint
First prevent new pods, then move existing pods, then allow scheduling again.
Best Practice
expert
3:00remaining
Identify best practice for node failure alerting
Which approach is best to get immediate alerts when a Kubernetes node becomes NotReady?
ASet up Prometheus to monitor node status and alert on <code>NotReady</code> condition
BRestart kubelet service on all nodes daily
CUse <code>kubectl logs</code> on pods to check node health
DManually run <code>kubectl get nodes</code> every hour
Attempts:
2 left
💡 Hint
Automated monitoring and alerting is key for fast response.