>_ IzzyLab

Topic breakdown

A pod is a group of containers sharing a network namespace (a common localhost) and, if desired, volumes. The sidecar pattern is a helper container next to the main one — a log collector, a proxy, an agent — that logically complements the application without being mixed into its image. Technically it's just another element of the spec.containers list. A nuance: minimalist images like busybox have no long-running process by default, so the container needs to be given a command that won't exit immediately, otherwise the pod goes into CrashLoopBackOff.

What's checked

  1. manifest is valid (kubeconform)
  2. the pod has two containers
  3. a log sidecar (busybox) next to app
  4. the log sidecar has a command

What it looks like