Skip to content
masterclass Buddy

Kubernetes · Concept

Sidecar container

A Kubernetes sidecar is a helper container that runs in the same Pod as the main application. Define a native sidecar in initContainers with restartPolicy: Always so it follows init ordering but keeps running with the app.

Last updated

Since
v1.28

Syntax

spec.initContainers[].restartPolicy: Always

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

Subscribe
  • init containers
  • regular init containers
  • readinessProbe
  • startupProbe
  • restartPolicy
  • Jobs
  • Pod lifecycle
  • emptyDir

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