0
0
Kubernetesdevops~5 mins

Node troubleshooting in Kubernetes - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What command shows the status of all nodes in a Kubernetes cluster?
Use kubectl get nodes to see the status, roles, and age of all nodes in the cluster.
Click to reveal answer
beginner
How can you describe a specific node to get detailed information?
Use kubectl describe node <node-name> to get detailed info like conditions, capacity, and events related to that node.
Click to reveal answer
intermediate
What does it mean if a node is in 'NotReady' state?
A 'NotReady' node means Kubernetes cannot schedule pods on it because it failed health checks or lost connection.
Click to reveal answer
intermediate
Which logs are useful to check when troubleshooting node issues?
Check the kubelet logs on the node using <code>journalctl -u kubelet</code> or system logs to find errors causing node problems.
Click to reveal answer
intermediate
How can you safely remove a problematic node from the cluster?
First, drain the node with kubectl drain <node-name> --ignore-daemonsets to move pods away, then delete it with kubectl delete node <node-name>.
Click to reveal answer
Which command lists all nodes and their status in Kubernetes?
Akubectl get nodes
Bkubectl get pods
Ckubectl describe pods
Dkubectl get services
What does the 'NotReady' status on a node indicate?
ANode is healthy and ready
BNode is unreachable or failing health checks
CNode is running pods normally
DNode is being deleted
How do you get detailed information about a node's conditions and events?
Akubectl describe node &lt;node-name&gt;
Bkubectl get nodes
Ckubectl logs node
Dkubectl get pods
Which logs are most helpful to check when a node has issues?
APod logs
BAPI server logs
CService logs
Dkubelet logs on the node
What is the correct order to safely remove a node from a cluster?
ADelete node, then drain it
BRestart node, then delete it
CDrain node, then delete it
DDelete pods, then delete node
Explain the steps you would take to troubleshoot a Kubernetes node that shows 'NotReady' status.
Start by checking status and logs, then move to deeper investigation.
You got /5 concepts.
    Describe how to safely remove a node from a Kubernetes cluster and why each step is important.
    Think about pod safety and cluster health.
    You got /4 concepts.