- Create a configmap pets-config with the values
DEBUG: "true"
andOPTION_A: "Kitties"
- Add a label
app: pets
- Save its definition under k8s/config/pets-configmap.yaml
- Add to the pod definition a reference to this configmap as environment variables (
envFrom
) - Run a pod and check if debug is enabled
Don't forget to push all changes to git repo!