Kubernetes: ConfigMaps and Secrets
Move the API's settings out of the image: config in a ConfigMap, the database password in a Secret.
Tasks
- Create ConfigMap app-config with MODE=prod.
- Create Secret db-pass with key password.
- Run pod envpod (image busybox, command sleep 3600) that loads app-config with envFrom.