summaryrefslogtreecommitdiffstats
path: root/ansible/roles/k8s-persistent-volume/templates/pv.yaml.j2
blob: 979ef2c6f2385cff57452e686c402b0e3fc3d7eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
apiVersion: v1
kind: PersistentVolume
metadata:
  name: {{ item.name }}
spec:
  capacity:
    storage: {{ item.capacity }}
  volumeMode: Filesystem
  accessModes:
    - ReadWriteOnce
  persistentVolumeReclaimPolicy: Retain
  storageClassName: {{ item.name }}
  hostPath:
    path: {{ item.path_prefix }}/{{ item.name }}
    type: ""