summaryrefslogtreecommitdiffstats
path: root/roles/openshift_prometheus/tasks
diff options
context:
space:
mode:
authorZohar Galor <zgalor@redhat.com>2017-10-19 11:11:32 +0300
committerZohar Galor <zgalor@redhat.com>2017-10-23 14:44:28 +0300
commit3792787d7e7cc3b8c44ccbbc83a3c2f9a9299f38 (patch)
treefa23626996b87b8580340b5963356a4ccd0aa5a1 /roles/openshift_prometheus/tasks
parent64f452f9081e380db41acf588a28fe4bb79a4e9e (diff)
downloadopenshift-3792787d7e7cc3b8c44ccbbc83a3c2f9a9299f38.tar.gz
openshift-3792787d7e7cc3b8c44ccbbc83a3c2f9a9299f38.tar.bz2
openshift-3792787d7e7cc3b8c44ccbbc83a3c2f9a9299f38.tar.xz
openshift-3792787d7e7cc3b8c44ccbbc83a3c2f9a9299f38.zip
Switch to stateful set in prometheus
Also update prometheus and alert-buffer image versions, and add prometheus, and oauth-proxy arguments to align with origin template
Diffstat (limited to 'roles/openshift_prometheus/tasks')
-rw-r--r--roles/openshift_prometheus/tasks/install_prometheus.yaml12
1 files changed, 6 insertions, 6 deletions
diff --git a/roles/openshift_prometheus/tasks/install_prometheus.yaml b/roles/openshift_prometheus/tasks/install_prometheus.yaml
index cb75eedca..67141a866 100644
--- a/roles/openshift_prometheus/tasks/install_prometheus.yaml
+++ b/roles/openshift_prometheus/tasks/install_prometheus.yaml
@@ -145,21 +145,21 @@
volume_capacity: "{{ openshift_prometheus_alertbuffer_pvc_size }}"
selector: "{{ openshift_prometheus_alertbuffer_pvc_pv_selector }}"
-# create prometheus deployment
-- name: Set prometheus deployment template
+# create prometheus stateful set
+- name: Set prometheus template
template:
- src: prometheus_deployment.j2
+ src: prometheus.j2
dest: "{{ tempdir }}/templates/prometheus.yaml"
vars:
namespace: "{{ openshift_prometheus_namespace }}"
- prom_replicas: "{{ openshift_prometheus_replicas }}"
+# prom_replicas: "{{ openshift_prometheus_replicas }}"
-- name: Set prometheus deployment
+- name: Set prometheus stateful set
oc_obj:
state: "{{ state }}"
name: "prometheus"
namespace: "{{ openshift_prometheus_namespace }}"
- kind: deployment
+ kind: statefulset
files:
- "{{ tempdir }}/templates/prometheus.yaml"
delete_after: true