List of all reasons for Container States in kubernetes

by user3079474   Last Updated September 11, 2019 09:26 AM

Is it possible to have a list of all reasons for the various container states mentioned in kubernetes. So list of reasons for the state Waiting, Running and Terminated. For example, a state of Waiting can have a Reason of ErrImagePull or CrashLoopBackOff.

Please note that this is different from the list of events given in the answer to this question. I have also looked at the docker container statuses mentioned here but they don't seem to cover all the possibilities.



Answers 1


This, what are you looking for is this document on official Kubernetes repository, which describes list of reasons for each of container status. For Waiting container status it is possible to get one of following reason:

  • ContainerCreating,
  • CrashLoopBackOff,
  • ErrImagePull,
  • ImagePullBackOff,
  • CreateContainerConfigError,
  • InvalidImageName,
  • CreateContainerError.

For Terminated container status there are different list of reasons:

  • OOMKilled,
  • Error,
  • Completed,
  • ContainerCannotRun,
  • DeadlineExceeded

And so on, I hope it will helps you.

abielak
abielak
September 11, 2019 09:25 AM

Related Questions


Updated October 17, 2018 06:26 AM

Updated November 19, 2018 02:26 AM

Updated June 12, 2019 10:26 AM

Updated August 23, 2018 05:26 AM

Updated December 20, 2017 13:26 PM