Skip to content

Latest commit

 

History

History
77 lines (48 loc) · 1.59 KB

04-Control-Plane-Failure.md

File metadata and controls

77 lines (48 loc) · 1.59 KB

Control Plane Failure

  • Take me to Lecture

  • In this lecture we will use how to troubleshoot the Control Plane components.

  • To check the status of the nodes if they are healthy

    kubectl get nodes
    
  • To check the status of the pods if the are running

    kubectl get pods
    
  • To check the status of all the pods of the Control Plane components(if they are deployed with kubeadm tool) and make sure they are Running

    kubectl get pods -n kube-system
    

    node

  • If the Control Plane components are deployed as services then check the status of all the components

    cp

  • To check the status of kube-apiserver

    service kube-apiserver status
    
  • To check the status of kube-controller-manager

    service kube-controller-manager status
    
  • To check the status of kube-scheduler

    service kube-scheduler status
    

    cp1

  • To check the status of kubelet

    service kubelet status
    
  • To check the status of kube-proxy on the worker nodes.

    service kube-proxy status
    
  • To check the logs of the Control Plane components deployed as Pods:

    kubectl logs kube-apiserver-master -n kube-system
    

    logs

  • To check the logs of the Control Plane components deployed as SystemD Service

    sudo journalctl -u kube-apiserver