List of all reasons for Container States in kubernetes

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

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.

September 11, 2019 09:25 AM

Related Questions

Kubernetes Secrets Volumes vs Environment Variables

Updated November 19, 2018 02:26 AM