diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-12-13 08:49:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-13 08:49:49 -0500 |
commit | 37470e0e1d298b804dbc38e2217990af9eea441a (patch) | |
tree | c64d12d224c7eb2e41e3f100d807b9af76d5abf2 /roles/openshift_prometheus/tasks | |
parent | 374b5386d53e92052836db67f863057533239da4 (diff) | |
parent | 0e7d9fe8d950c41e134b793ab861b29ae9d68f7b (diff) | |
download | openshift-37470e0e1d298b804dbc38e2217990af9eea441a.tar.gz openshift-37470e0e1d298b804dbc38e2217990af9eea441a.tar.bz2 openshift-37470e0e1d298b804dbc38e2217990af9eea441a.tar.xz openshift-37470e0e1d298b804dbc38e2217990af9eea441a.zip |
Merge pull request #5839 from jmencak/prometheus-storage_class
Add support for storage classes to openshift_prometheus role.
Diffstat (limited to 'roles/openshift_prometheus/tasks')
-rw-r--r-- | roles/openshift_prometheus/tasks/install_prometheus.yaml | 3 |
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 ad15dc65f..abc5dd476 100644 --- a/roles/openshift_prometheus/tasks/install_prometheus.yaml +++ b/roles/openshift_prometheus/tasks/install_prometheus.yaml @@ -131,6 +131,7 @@ access_modes: "{{ openshift_prometheus_pvc_access_modes }}" volume_capacity: "{{ openshift_prometheus_pvc_size }}" selector: "{{ openshift_prometheus_pvc_pv_selector }}" + storage_class_name: "{{ openshift_prometheus_sc_name }}" when: openshift_prometheus_storage_type == 'pvc' - name: create alertmanager pvc @@ -140,6 +141,7 @@ access_modes: "{{ openshift_prometheus_alertmanager_pvc_access_modes }}" volume_capacity: "{{ openshift_prometheus_alertmanager_pvc_size }}" selector: "{{ openshift_prometheus_alertmanager_pvc_pv_selector }}" + storage_class_name: "{{ openshift_prometheus_alertmanager_sc_name }}" when: openshift_prometheus_alertmanager_storage_type == 'pvc' - name: create alertbuffer pvc @@ -149,6 +151,7 @@ access_modes: "{{ openshift_prometheus_alertbuffer_pvc_access_modes }}" volume_capacity: "{{ openshift_prometheus_alertbuffer_pvc_size }}" selector: "{{ openshift_prometheus_alertbuffer_pvc_pv_selector }}" + storage_class_name: "{{ openshift_prometheus_alertbuffer_sc_name }}" when: openshift_prometheus_alertbuffer_storage_type == 'pvc' # prometheus configmap |