Study. uk . com
  1. Home
  2. All questions
  3. Question 427

CKA study material · question 427 of 1000

A sidecar container keeps restarting even though the Pod's restartPolicy is OnFailure. Why?

  1. Sidecars ignore exit codes
  2. OnFailure does not apply to containers with probes
  3. A sidecar is an init container whose own restartPolicy is Always
  4. The kubelet restarts sidecars on every sync
Show the answer

Answer: C. A sidecar is an init container whose own restartPolicy is Always

Sidecars are init containers with a container-level restartPolicy of Always, so they ignore the Pod-level policy.

Source: Pod Lifecycle (Kubernetes) — Container restart policy

Challenge yourself on this topic → Study as cards