Skip to content
Captain's Academy0
← Kubernetes sea chart
Island 4 · App Lifecycle · Port 4.9

Init & sidecar containers

Ask the Captain
Instagram
App crashes because the DB isn't ready? Make it wait.
You'll learn to

order startup with init containers; native sidecars

Recap

  1. 1Init containers run in order, must succeed
  2. 2The app starts only after all of them
  3. 3Native sidecar: initContainer + restartPolicy: Always (1.33+)
Check yourself

A pod has two init containers. The first one fails. Does the second one run?

4.9

Stamp this lesson

Watched it and passed the check? Mark it in your logbook.