Created
August 23, 2019 10:32
-
-
Save abhirockzz/fe77367d657f728d86d609c8aa42b31c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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