4 — Environment Variables
Purpose
[stub: environment-variables]
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.
6 — Init Containers
Init containers run sequentially to completion before any app container starts, making them the natural place for one-time setup like schema migrations or dependency wait-checks that shouldn't re-run on every app-container restart.