Kubernetes pods are not in Running status

Symptom

Kubernetes pods are not in Running status.

Cause

Likely caused by SELinux

Action
  1. To verify the status of all the Kubernetes pods, run the following command:
    kubectl get pods --all-namespaces

    If the status displayed is not Running, then proceed to the next step.

  2. To disable SELinux, run the following command:
    setenforce 0
  3. To restart the Kubernetes services, run the following command:
    systemctl restart kubelet
  4. To check the status of Kubernetes services, run the following command:
    systemctl status kubelet
    It has to be in Running state.
  5. Run the following command to recheck the status of all Kubernetes pods:
    kubectl get pods --all-namespaces
  6. Once the Kubernetes is in Running state, run the following command to enable SELinux:
    setenforce 1