Skip to content
masterclass Buddy

Kubernetes · Concept

Init container

An init container runs to completion before a Pod's app containers start. Multiple init containers run in order, and each must succeed before the next one begins.

Last updated

Syntax

spec:
  initContainers:
  - name: <name>
    image: <image>
    command: [<command>]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • App container
  • Sidecar container
  • Pod
  • kubelet
  • restartPolicy
  • status.initContainerStatuses
  • activeDeadlineSeconds
  • kubectl logs

Source: Init Containers | Kubernetes. Checked 2026-11-03.