kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch05/sleep/sleep-with-hostPath.yaml

25 lines
456 B
YAML
Raw Normal View History

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
volumeMounts:
- name: node-root
mountPath: /node-root
volumes:
- name: node-root
hostPath:
path: /
type: Directory