nfs.json.j2 485 B

123456789101112131415161718192021
  1. {
  2. "apiVersion": "v1",
  3. "kind": "PersistentVolume",
  4. "metadata": {
  5. "name": "pv-{{ inventory_hostname | regex_replace("\.", "-") }}-{{ item }}",
  6. "labels": {
  7. "type": "nfs"
  8. }
  9. },
  10. "spec": {
  11. "capacity": {
  12. "storage": "{{ osnl_volume_size }}Gi"
  13. },
  14. "accessModes": [ "ReadWriteMany" ],
  15. "persistentVolumeReclaimPolicy": "Recycle",
  16. "nfs": {
  17. "Server": "{{ inventory_hostname }}",
  18. "Path": "{{ osnl_mount_dir }}/{{ item }}"
  19. }
  20. }
  21. }