c12s-kubespray/roles/kubernetes-apps/ansible/templates/glusterfs-kubernetes-pv.yml.j2
2016-12-06 08:59:34 +01:00

14 lines
317 B
Django/Jinja

apiVersion: v1
kind: PersistentVolume
metadata:
name: glusterfs
spec:
capacity:
storage: "{{ hostvars[groups['gfs-cluster'][0]].gluster_disk_size_gb }}Gi"
accessModes:
- ReadWriteMany
glusterfs:
endpoints: glusterfs
path: gluster
readOnly: false
persistentVolumeReclaimPolicy: Retain