7 — Sidecars
Purpose
[stub: sidecars]
Metadata
| Author | Amit Singh |
| Scope | kubernetes |
Local graph
Related notes
9 — Application Health Patterns
Conflating liveness (should this be restarted) with readiness (should this receive traffic) causes cascading restarts when a pod is merely overloaded and slow rather than actually broken.
1 — ConfigMaps
ConfigMaps mounted as volumes update live on the filesystem when the source changes, but env vars sourced from a ConfigMap are frozen at container start until the pod restarts.
3 — Downward API
The Downward API lets a container read its own pod's metadata — labels, annotations, resource limits, IP — as env vars or files, avoiding an API server round trip and the RBAC permissions that would require.
4 — Environment Variables
Env vars are resolved once when the container process starts, so a downstream ConfigMap or Secret edit has no effect until the pod is recreated — unlike a mounted volume, which the kubelet syncs live.