This folder contains information and tools for debugging the Kubernetes controller manager.
-
Check Controller Manager Logs:
- Use
kubectl logs -n kube-system <controller-manager-pod-name>to view logs. - Look for errors related to resource reconciliation or controller loops.
- Use
-
Verify Controller Health:
- Run
kubectl get componentstatusesto check the health of the controller manager.
- Run
-
Inspect Events:
- Use
kubectl get events --all-namespacesto identify issues managed by controllers.
- Use
-
Inspect Configuration:
- Review the controller manager configuration file (e.g.,
/etc/kubernetes/manifests/kube-controller-manager.yaml).
- Review the controller manager configuration file (e.g.,
kubectl- Log analysis tools like
sternork9s.
Problem: PersistentVolumeClaims (PVCs) are not being bound.
Solution:
- Check controller manager logs:
kubectl logs -n kube-system <controller-manager-pod-name>. - Inspect PVC events:
kubectl describe pvc <pvc-name>. - Verify storage class configuration:
kubectl get storageclass.