Skip to content

Instantly share code, notes, and snippets.

@abhirockzz
Last active August 6, 2019 08:40
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/6e64f71ac818b57d201f0a296424c5c3 to your computer and use it in GitHub Desktop.
Save abhirockzz/6e64f71ac818b57d201f0a296424c5c3 to your computer and use it in GitHub Desktop.
using envVar in pod spec
apiVersion: v1
kind: ConfigMap
metadata:
name: config2
data:
FOO_ENV: bar
HELLO_ENV: world
---
apiVersion: v1
kind: Pod
metadata:
name: pod3
spec:
containers:
- name: nginx
image: nginx
envFrom:
- configMapRef:
name: config2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment