github.com/jlmeeker/kismatic@v1.10.1-0.20180612190640-57f9005a1f1a/ansible/roles/persistent-volume/templates/pv.yaml (about) 1 apiVersion: v1 2 kind: PersistentVolume 3 metadata: 4 name: "{{ volume_name }}" 5 annotations: 6 volume.beta.kubernetes.io/storage-class: "{{ volume_storage_class }}" 7 spec: 8 capacity: 9 storage: {{ volume_quota_gb }}Gi 10 accessModes: 11 {% for mode in volume_access_modes %} 12 - {{ mode }} 13 {% endfor %} 14 persistentVolumeReclaimPolicy: "{{ volume_reclaim_policy }}" 15 nfs: 16 path: /{{ volume_name }} 17 server: {{ storage_cluster_ip }}