Kubernetes Pod Patterns

Sidecar, init, ambassador and adapter: the multi-container Pod patterns, each with an architecture picture, the pattern itself, a common use case, the YAML and where it sits in the CKAD.

Watch the video series: Kubernetes SidecarsSpace Llama, one episode per article
  1. 1Kubernetes multi-container Pod patterns: sidecar, init, ambassador and adapterFour proven ways to run a helper beside your app in one Pod: init containers, sidecars, ambassadors and adapters. Where they come from, how to choose one, the YAML, and what the CKAD asks.
  2. 2Init containers in Kubernetes: how they work, with examplesInit containers run one at a time, in order, and must finish before your app starts. How they work, worked YAML examples, how they differ from sidecars and from Docker, and how to debug a Pod stuck in Init.
  3. 3Kubernetes sidecar containers: native sidecars, use cases and YAMLA Kubernetes sidecar is a helper container in your app's Pod. How native sidecars start before the app and stop after it, a real git-sync example in YAML, the Docker Compose equivalent, and how to debug them.
  4. 4Kubernetes ambassador pattern: a proxy container on localhostAn ambassador is a proxy container in your app's Pod: the app talks to localhost, the proxy deals with shards, credentials and encryption. How it works, a cache-sharding pair, the Cloud SQL Auth Proxy as a native sidecar, the YAML and when not to use it.
  5. 5Kubernetes adapter pattern: metrics exporters and log normalizersAn adapter is a container in your app's Pod that makes the app look standard from outside: Prometheus metrics, clean log streams, enriched data. How it works, redis_exporter beside Redis, a log-streaming example, the YAML and when not to use it.
  6. 6Service mesh sidecars vs Istio ambient modeIstio's sidecar mode puts an Envoy proxy in every Pod; ambient mode moves it to a ztunnel per node and optional waypoints. North-south vs east-west, mTLS between proxies, native sidecars since Istio 1.27, the trade-offs and the YAML.