|
@@ -27,12 +27,12 @@
|
|
|
src: pvc.j2
|
|
|
dest: "{{ mktemp.stdout }}/templates/hawkular-cassandra-pvc{{ item }}.yaml"
|
|
|
vars:
|
|
|
- obj_name: "{{ openshift_metrics_cassandra_pv_prefix }}-{{ item }}"
|
|
|
+ obj_name: "{{ openshift_metrics_cassandra_pvc_prefix }}-{{ item }}"
|
|
|
labels:
|
|
|
metrics-infra: hawkular-cassandra
|
|
|
access_modes:
|
|
|
- ReadWriteOnce
|
|
|
- size: "{{ openshift_metrics_cassandra_pv_size }}"
|
|
|
+ size: "{{ openshift_metrics_cassandra_pvc_size }}"
|
|
|
with_sequence: count={{ openshift_metrics_cassandra_replicas }}
|
|
|
when: openshift_metrics_cassandra_storage_type == 'pv'
|
|
|
changed_when: false
|
|
@@ -42,14 +42,14 @@
|
|
|
src: pvc.j2
|
|
|
dest: "{{ mktemp.stdout }}/templates/hawkular-cassandra-pvc{{ item }}.yaml"
|
|
|
vars:
|
|
|
- obj_name: "{{ openshift_metrics_cassandra_pv_prefix }}-{{ item }}"
|
|
|
+ obj_name: "{{ openshift_metrics_cassandra_pvc_prefix }}-{{ item }}"
|
|
|
labels:
|
|
|
metrics-infra: hawkular-cassandra
|
|
|
annotations:
|
|
|
volume.alpha.kubernetes.io/storage-class: dynamic
|
|
|
access_modes:
|
|
|
- ReadWriteOnce
|
|
|
- size: "{{ openshift_metrics_cassandra_pv_size }}"
|
|
|
+ size: "{{ openshift_metrics_cassandra_pvc_size }}"
|
|
|
with_sequence: count={{ openshift_metrics_cassandra_replicas }}
|
|
|
when: openshift_metrics_cassandra_storage_type == 'dynamic'
|
|
|
changed_when: false
|