Skip to content

Instantly share code, notes, and snippets.

@abhirockzz
Created August 23, 2019 10:32
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/fe77367d657f728d86d609c8aa42b31c to your computer and use it in GitHub Desktop.
Save abhirockzz/fe77367d657f728d86d609c8aa42b31c to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: ConfigMap
metadata:
name: config3
data:
appconfig.json: |
{
"array": [
1,
2,
3
],
"boolean": true,
"number": 123,
"object": {
"a": "b",
"c": "d",
"e": "f"
},
"string": "Hello World"
}
---
apiVersion: v1
kind: Pod
metadata:
name: pod4
spec:
containers:
- name: nginx
image: nginx
env:
- name: APP_CONFIG_JSON
valueFrom:
configMapKeyRef:
name: config3
key: appconfig.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment