Write new Task: Configuring a Pod to use a PersistentVolume.

This commit is contained in:
steveperry-53
2017-01-17 12:04:57 -08:00
parent e4ea7eea30
commit 591adaffe5
5 changed files with 257 additions and 0 deletions
@@ -0,0 +1,22 @@
kind: Pod
apiVersion: v1
metadata:
name: task-pv-pod
spec:
volumes:
- name: task-pv-storage
persistentVolumeClaim:
claimName: task-pv-claim
containers:
- name: task-pv-container
image: nginx
ports:
- containerPort: 80
name: "http-server"
volumeMounts:
- mountPath: "/usr/share/nginx/html"
name: task-pv-storage