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 ReplyCancel reply

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

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%