Created
July 21, 2021 07:42
-
-
Save GaetanoPiazzolla/1f9a735c5f498a6165a8039700405d34 to your computer and use it in GitHub Desktop.
Using config map as valueFrom
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... containers: | |
- name: test-container | |
image: k8s.gcr.io/busybox | |
command: [ "/bin/sh", "-c", "env" ] | |
env: | |
- name: ENV_API_BACKEND_URL | |
valueFrom: | |
configMapKeyRef: | |
name: the_configmap_name_id | |
key: ENV_API_BACKEND_URL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related to medium article:
Update Angular/React environment dynamically reading variables from Kubernetes ConfigMaps