Created
August 5, 2019 16:57
-
-
Save abhirockzz/335c77bf7619d190658bc96cb1567d86 to your computer and use it in GitHub Desktop.
pod using env vars from config map
This file contains 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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: pod2 | |
spec: | |
containers: | |
- name: nginx | |
image: nginx | |
env: | |
- name: FOO_ENV_VAR | |
valueFrom: | |
configMapKeyRef: | |
name: simpleconfig | |
key: foo | |
- name: HELLO_ENV_VAR | |
valueFrom: | |
configMapKeyRef: | |
name: simpleconfig | |
key: hello | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment