28 lines
596 B
YAML
28 lines
596 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: sleep
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: sleep
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: sleep
|
|
spec:
|
|
containers:
|
|
- name: sleep
|
|
image: kiamol/ch03-sleep
|
|
envFrom:
|
|
- configMapRef:
|
|
name: sleep-config-env-file
|
|
env:
|
|
- name: KIAMOL_CHAPTER
|
|
value: "04"
|
|
- name: KIAMOL_SECTION
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: sleep-config-literal
|
|
key: kiamol.section
|