Create 5-5-kuard-pod-vol.yaml

This commit is contained in:
Brendan Burns 2017-08-19 21:34:17 -07:00 committed by GitHub
parent 47654c6a63
commit 6d67b4f3ca

19
5-5-kuard-pod-vol.yaml Normal file
View File

@ -0,0 +1,19 @@
apiVersion: v1
kind: Pod
metadata:
name: kuard
spec:
volumes:
- name: "kuard-data"
hostPath:
path: "/var/lib/kuard"
containers:
- image: gcr.io/kuar-demo/kuard-amd64:1
name: kuard
volumeMounts:
- mountPath: "/data"
name: "kuard-data"
ports:
- containerPort: 8080
name: http
protocol: TCP