Skip to content

Instantly share code, notes, and snippets.

@abhirockzz

abhirockzz/example.yaml

Last active Aug 5, 2019
Embed
What would you like to do?
simple config map with pod using the its data
apiVersion: v1
kind: ConfigMap
metadata:
name: simpleconfig
data:
foo: bar
hello: world
---
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
You can’t perform that action at this time.