What are init containers and how do they differ from sidecars?
IntermediateConceptPods & Workloads
Answer
Init containers run sequentially to completion before app containers start, useful for waiting on dependencies, running migrations or fetching config. Native sidecar containers (GA in 1.33) are init containers with restartPolicy: Always: they start before the app, keep running, and are shut down after the app, which fixes ordering problems for Jobs and mesh proxies.
initContainers:
- name: proxy
image: envoy:v1.31
restartPolicy: Always