DevOps Classroomnotes 26/Apr/2023

Pods (Contd)

Imperative Way to manage k8s objects

Pod lifecycle

  • K8s Pods will have following states
    • Pending
    • Running
    • Succeded
    • Failed
    • Unknown

Container States in k8s pod

  • Waiting
  • Running
  • Terminated
  • Refer Here for container states
  • IN pods we can specify container restart policy Refer Here

Container restart policy

  • Lets try to create a short lived contianer with different restart policies
  • Refer Here for manifests with restartPolicy
    • always (Default)
    • never
    • OnFailure
      • exit code => success
      • exit code => failure
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a comment

Turn on JavaScript to leave a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Customized Social Media Icons from Acurax Digital Marketing Agency
Exit mobile version
%%footer%%