Skip to content

Latest commit

 

History

History
73 lines (47 loc) · 1.51 KB

File metadata and controls

73 lines (47 loc) · 1.51 KB

Control Plane Failure

  • 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