# From the task at K8S.io https://kubernetes.io/docs/tasks/configure-pod-container/configure-persistent-volume-storage/
# Cluster User role would define the Pod resource (actually a Deployment that has a Pod template)
# Note how the 'volumes' attribute has a 'persistentVolumeClaim' attribute.
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"
      #here we mount the volume defined
      #above in volumes
      name: task-pv-storage
