blob: 0a88b7c88712c3e4a199c44487de6550f84eb7e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{obj_name}}
{% if annotations is defined %}
annotations:
{% for key,value in annotations.items() %}
{{key}}: {{value}}
{% endfor %}
{% endif %}
spec:
{% if pv_selector is defined and pv_selector is mapping %}
selector:
matchLabels:
{% for key,value in pv_selector.items() %}
{{key}}: {{value}}
{% endfor %}
{% endif %}
accessModes:
{% for mode in access_modes %}
- {{mode}}
{% endfor %}
resources:
requests:
storage: {{size}}
storageClassName: ""
|