Secrets and configmaps
Course: Kubernetes Part 2 - chapter 13

Kubernetes suggests some standard configuration practises.
These include things like
- You should always create a deployment rather than creating naked pods
- Write your configuration files using YAML rather than JSON
- Configuration files should be stored in version control before being pushed to the cluster
Kubernetes v1 API also gives you a way to store configuration of your application outside the image/pod
This is done using
- ConfigMaps
- Secrets
Rule of thumb
Section titled “Rule of thumb”Don’t bake your application secrets in your docker image
Pass them in as environment variables whenever you’re starting the container
