ConfigMap and Secrets are mounted as volumes when they need to be used by a Pod
Kubernetes Secrets
The value of the secret has to be base64 encoded
Storing data as secrets does not make the data secure. Addition security like the build-in encryption feature needs to be used
Secrets have to be always created before the deployment
Kubernetes Config Map
It is an central location for storing configuration/ environmental variables
Can be used by multiple components