commit | author | age | ||
c9ce48 | 1 | --- |
S | 2 | {% for pv in range(1,user_vols|int) %} |
3 | apiVersion: v1 | |
4 | kind: PersistentVolume | |
5 | metadata: | |
6 | name: vol{{ pv }} | |
7 | spec: | |
8 | capacity: | |
9 | storage: {{ user_vols_size }} | |
10 | accessModes: | |
11 | - ReadWriteOnce | |
12 | {% if pv % 2 == 0 %} | |
13 | - ReadWriteMany | |
14 | {% endif %} | |
15 | nfs: | |
16 | path: {{ nfs_export_path }}/user-vols/vol{{pv}} | |
17 | server: {{ nfs_server_address }} | |
18 | persistentVolumeReclaimPolicy: Reclaim | |
b5b5e5 | 19 | storageClassName: nfs |
c9ce48 | 20 | --- |
S | 21 | {% endfor %} |