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)
      Preview
    • never
      Preview
    • OnFailure
      • exit code => success
      • exit code => failure
        Preview

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

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

Please turn AdBlock off
Animated Social Media Icons by Acurax Wordpress Development Company

Discover more from Direct DevOps from Quality Thought

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

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube