Goal
Feed a Pod its configuration from a ConfigMap and a Secret as environment variables.
Requirements (your default namespace, lab)
- A ConfigMap
app-configwith keyAPP_MODE=production - A Secret
app-secretwith keyAPI_KEY=s3cr3t - A Pod
app(imagebusybox:1.36, command that sleeps) whose container getsAPP_MODEfrom the ConfigMap andAPI_KEYfrom the Secret as env vars - The Pod must be Running