I am having problems with some pod staying in init phase all the time.
I do not see any errors when I run the pod describe command. This is the list of the events:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 5m default-scheduler Successfully assigned infrastructure/jenkins-74cc957b47-mxvqd to ip-XX-XX-XXX-XXX.eu-west-1.compute.internal
Warning BackOff 3m (x3 over 4m) kubelet, ip-XX-XX-XXX-XXX.eu-west-1.compute.internal Back-off restarting failed container
Normal Pulling 3m (x4 over 5m) kubelet, ip-XX-XX-XXX-XXX.eu-west-1.compute.internal pulling image "jenkins/jenkins:lts"
Normal Pulled 3m (x4 over 5m) kubelet, ip-XX-XX-XXX-XXX.eu-west-1.compute.internal Successfully pulled image "jenkins/jenkins:lts"
Normal Created 3m (x4 over 5m) kubelet, ip-XX-XX-XXX-XXX.eu-west-1.compute.internal Created container
Normal Started 3m (x4 over 5m) kubelet, ip-XX-XX-XXX-XXX.eu-west-1.compute.internal Started container
I can see this also:
State: Running
Started: Wed, 23 Sep 2020 09:49:56 +0200
Last State: Terminated
Reason: Error
Exit Code: 1
Started: Wed, 23 Sep 2020 09:49:06 +0200
Finished: Wed, 23 Sep 2020 09:49:27 +0200
Ready: False
Restart Count: 3
If I list the pods, it looks like this:
Error from server (BadRequest): container "jenkins" in pod "jenkins-74cc957b47-mxvqd" is waiting to start: PodInitializing
But I am not able to see the specific error. Can someone help?