summaryrefslogtreecommitdiffstats
path: root/roles/openshift_metrics/templates/pvc.j2
blob: 8fbfa8b5d860eb8c4efa4fb4640ae4aeb0a75db4 (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 labels is not defined %}
  labels:
    logging-infra: support
{% elif labels %}
  labels:
{% for key, value in labels.iteritems() %}
    {{ key }}: {{ value }}
{% endfor %}
{% endif %}
{% if annotations is defined and annotations %}
  annotations:
{% for key,value in annotations.iteritems() %}
    {{key}}: {{value}}
{% endfor %}
{% endif %}
spec:
  accessModes:
{% for mode in access_modes %}
    - {{ mode }}
{% endfor %}
  resources:
    requests:
      storage: {{size}}