Control Plane Troubleshooting Commands

Some commands to help troubleshoot control-plane component failure in a cluster that was set up using the kubeadm tool:

Check the status of the nodes:

kubectl get nodes

Check the status of the pods

kubectl get pods

Check controlplane pods

kubectl get pods -n=kube-system

Check ControlPlane Services:

service kube-apiserver status
service kube-controller-manager status
service kube-scheduler status
service kubelet status
service kube-proxy status

Check logs of controlplane components

kubectl logs kube-apiserver-master -n kube-system
sudo journalctl -u kube-apiserver

For more tips, refer to the kubernetes troubleshooting documentation. https://kubernetes.io/docs/tasks/debug-application-cluster/debug-cluster/