Skip to content

Instantly share code, notes, and snippets.

@abhirockzz
Created August 5, 2019 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhirockzz/335c77bf7619d190658bc96cb1567d86 to your computer and use it in GitHub Desktop.
Save abhirockzz/335c77bf7619d190658bc96cb1567d86 to your computer and use it in GitHub Desktop.
pod using env vars from config map
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