Skip to content

Instantly share code, notes, and snippets.

@abhirockzz

abhirockzz/env-from.yaml

Last active Aug 6, 2019
Embed
What would you like to do?
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
You can’t perform that action at this time.