27 lines
511 B
YAML
27 lines
511 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: sleep
|
||
|
labels:
|
||
|
kiamol: ch16-lab
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: sleep
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: sleep
|
||
|
kiamol: ch16-lab
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: sleep
|
||
|
image: kiamol/ch03-sleep
|
||
|
volumeMounts:
|
||
|
- name: node-var
|
||
|
mountPath: /node-var
|
||
|
volumes:
|
||
|
- name: node-var
|
||
|
hostPath:
|
||
|
path: /var
|
||
|
type: Directory
|