This folder contains information and tools for debugging the Kubernetes node agent (kubelet).
-
Check Kubelet Logs:
- Use
journalctl -u kubeletto view logs on the node. - Look for errors related to pod creation, health checks, or resource usage.
- Use
-
Verify Node Health:
- Run
kubectl get nodesto check the status of nodes. - Use
kubectl describe node <node-name>for detailed information.
- Run
-
Inspect Pod Status:
- Use
kubectl get pods -o wideto check pod status and node assignment. - Use
kubectl describe pod <pod-name>for more details.
- Use
-
Check Resource Usage:
- Use tools like
toporhtopon the node to monitor CPU and memory usage.
- Use tools like
-
Inspect Configuration:
- Review the kubelet configuration file (e.g.,
/var/lib/kubelet/config.yaml).
- Review the kubelet configuration file (e.g.,
kubectljournalctl- Node monitoring tools like
top,htop, ornmon.
Problem: Pods are not starting on a node.
Solution:
- Check kubelet logs:
journalctl -u kubelet. - Verify node status:
kubectl get nodes. - Inspect pod events:
kubectl describe pod <pod-name>. - Check resource availability on the node:
toporhtop.