From the course: Certified Kubernetes Administrator (CKA) Cert Prep

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Lesson 13 lab solution: Troubleshooting nodes

Lesson 13 lab solution: Troubleshooting nodes - Kubernetes Tutorial

From the course: Certified Kubernetes Administrator (CKA) Cert Prep

Lesson 13 lab solution: Troubleshooting nodes

- So how do we find out if cluster nodes are in good health? Well, I would say kubectl get nodes. They are ready, ready and ready. So that seems good enough. You know what I'm going to do. Kubectl create deploy test deploy - -images ngingx - -replicas is 10. Why 10 replicas? Well, because I want to make sure that they are scheduled all right. So kubectl get pods -o wide. And we can see that the replicas are scheduled all right between worker one and worker two. So I repeat, everything looking all right. Deleting the test deploy 'cause it's only wasting resources. And next you could consider checking the node health using kubectl describe nodes on every single one of these nodes. Investigate the events. Investigate the resource usage right here. Investigate the pods that are running. Check on the CPU information, on the capacity, and work your way through it. Because everything you want to know about the nodes is listed right here. Now, this is probably the most important one. It's…

Contents