2 changed files with 52 additions and 0 deletions
@ -0,0 +1,36 @@
|
||||
apiVersion: v1 |
||||
kind: Pod |
||||
metadata: |
||||
name: alpine-sleep |
||||
spec: |
||||
containers: |
||||
- name: alpine |
||||
image: alpine:3.13 |
||||
args: |
||||
- sleep |
||||
- "1000000" |
||||
volumeMounts: |
||||
- name: config |
||||
mountPath: "/etc/configmap" |
||||
readOnly: true |
||||
volumes: |
||||
- name: config |
||||
configMap: |
||||
name: cm-test-alpine |
||||
--- |
||||
apiVersion: v1 |
||||
kind: ConfigMap |
||||
metadata: |
||||
name: cm-test-alpine |
||||
data: |
||||
# property-like keys; each key maps to a simple value |
||||
nick_name: "13" |
||||
|
||||
# file-like keys |
||||
game.properties: | |
||||
enemy.types=aliens,monsters |
||||
player.maximum-lives=5 |
||||
user-interface.properties: | |
||||
color.good=purple |
||||
color.bad=yellow |
||||
allow.textmode=true |
@ -0,0 +1,16 @@
|
||||
apiVersion: v1 |
||||
kind: ConfigMap |
||||
metadata: |
||||
name: cm-test |
||||
data: |
||||
# property-like keys; each key maps to a simple value |
||||
nick_name: "13" |
||||
|
||||
# file-like keys |
||||
game.properties: | |
||||
enemy.types=aliens,monsters |
||||
player.maximum-lives=5 |
||||
user-interface.properties: | |
||||
color.good=purple |
||||
color.bad=yellow |
||||
allow.textmode=true |
Loading…
Reference in new issue