ConfigMaps hold settings and Secrets hold passwords and keys. Both are passed to containers as environment variables or files, so the same image works in every environment.
kubectl create configmap web-config --from-literal=MODE=production kubectl create secret generic db-pass --from-literal=PASSWORD=change-me # in the container spec: envFrom: - configMapRef: name: web-config - secretRef: name: db-pass