37 lines
674 B
YAML
37 lines
674 B
YAML
|
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
|