SymptomKubernetes pods are not in Running status.
CauseLikely caused by SELinux
Action-
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.
-
To disable SELinux, run the following command:
-
To restart the Kubernetes services, run the following command:
systemctl restart kubelet
-
To check the status of Kubernetes services, run the following command:
It has to be in
Running state.
-
Run the following command to recheck the status of all Kubernetes pods:
kubectl get pods --all-namespaces
-
Once the Kubernetes is in
Running state, run the following command to enable SELinux: