summaryrefslogtreecommitdiffstats
path: root/roles/openshift_prometheus/tasks
diff options
context:
space:
mode:
authorZohar Galor <zgalor@redhat.com>2017-10-23 18:12:33 +0300
committerZohar Galor <zgalor@redhat.com>2017-10-24 17:21:55 +0300
commit108aebebe4bdababaf754c18856039f7b541b176 (patch)
tree53210ce602db38c493f36885302cf26973fa3567 /roles/openshift_prometheus/tasks
parentd54942dac6551d59e19e9f9a0096ca4684b7079f (diff)
downloadopenshift-108aebebe4bdababaf754c18856039f7b541b176.tar.gz
openshift-108aebebe4bdababaf754c18856039f7b541b176.tar.bz2
openshift-108aebebe4bdababaf754c18856039f7b541b176.tar.xz
openshift-108aebebe4bdababaf754c18856039f7b541b176.zip
Change default in prometheus storage type to emptydir
Only create pvcs when openshift_prometheus_<alertmanager|buffer>_storage_type==pvc By default deployment will use emptydir. Add some documentation and examples. bz: https://bugzilla.redhat.com/show_bug.cgi?id=1495446
Diffstat (limited to 'roles/openshift_prometheus/tasks')
-rw-r--r--roles/openshift_prometheus/tasks/install_prometheus.yaml3
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/openshift_prometheus/tasks/install_prometheus.yaml b/roles/openshift_prometheus/tasks/install_prometheus.yaml
index 67141a866..00c3c1987 100644
--- a/roles/openshift_prometheus/tasks/install_prometheus.yaml
+++ b/roles/openshift_prometheus/tasks/install_prometheus.yaml
@@ -128,6 +128,7 @@
access_modes: "{{ openshift_prometheus_pvc_access_modes }}"
volume_capacity: "{{ openshift_prometheus_pvc_size }}"
selector: "{{ openshift_prometheus_pvc_pv_selector }}"
+ when: openshift_prometheus_storage_type == 'pvc'
- name: create alertmanager pvc
oc_pvc:
@@ -136,6 +137,7 @@
access_modes: "{{ openshift_prometheus_alertmanager_pvc_access_modes }}"
volume_capacity: "{{ openshift_prometheus_alertmanager_pvc_size }}"
selector: "{{ openshift_prometheus_alertmanager_pvc_pv_selector }}"
+ when: openshift_prometheus_alertmanager_storage_type == 'pvc'
- name: create alertbuffer pvc
oc_pvc:
@@ -144,6 +146,7 @@
access_modes: "{{ openshift_prometheus_alertbuffer_pvc_access_modes }}"
volume_capacity: "{{ openshift_prometheus_alertbuffer_pvc_size }}"
selector: "{{ openshift_prometheus_alertbuffer_pvc_pv_selector }}"
+ when: openshift_prometheus_alertbuffer_storage_type == 'pvc'
# create prometheus stateful set
- name: Set prometheus template