kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch16/lab/solution/sleep.yaml

27 lines
511 B
YAML
Raw Normal View History

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