123456789101112131415161718192021 |
- {
- "apiVersion": "v1",
- "kind": "PersistentVolume",
- "metadata": {
- "name": "pv-{{ inventory_hostname | regex_replace("\.", "-") }}-{{ item }}",
- "labels": {
- "type": "nfs"
- }
- },
- "spec": {
- "capacity": {
- "storage": "{{ osnl_volume_size }}Gi"
- },
- "accessModes": [ "ReadWriteOnce", "ReadWriteMany" ],
- "persistentVolumeReclaimPolicy": "{{ osnl_volume_reclaim_policy }}",
- "nfs": {
- "server": "{{ inventory_hostname }}",
- "path": "{{ osnl_mount_dir }}/{{ item }}"
- }
- }
- }
|