Kubernetes Pods Always ContainerCreating

4/4/2018

I have installed a cluster of one master and one node using kubadm

kubeadm version: &version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.0", GitCommit:"fc32d2f3698e36b93322a3465f63a14e9f0eaead", GitTreeState:"clean", BuildDate:"2018-03-26T16:44:10Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}

Whenever I try and install a pod (ngix, gafana, influxdb, heapster, tiller), it always stays in a state of ContainerCreating.

I can't figure out how to diagnose the issue to try and get the containers to move to a Running state.

-- Flea
centos7
kubeadm
kubectl
kubernetes

1 Answer

4/5/2018

Use the following commands to check logs of Kubelet and diagnose the issue accordingly:

systemctl status kubelet
journalctl -xeu kubelet

For details: https://kubernetes.io/docs/tasks/debug-application-cluster/debug-cluster/

-- Sibtain
Source: StackOverflow