diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-10-23 23:19:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-23 23:19:31 -0400 |
commit | 641445638b67aecfa2462de2068bbcc985145580 (patch) | |
tree | 0ba670b5f9e126c8c34876b2015e557048af95de /roles/openshift_prometheus/tasks | |
parent | d3ae358d8eda7d74a158d9ff7de3a23fca4e8b51 (diff) | |
parent | 3792787d7e7cc3b8c44ccbbc83a3c2f9a9299f38 (diff) | |
download | openshift-641445638b67aecfa2462de2068bbcc985145580.tar.gz openshift-641445638b67aecfa2462de2068bbcc985145580.tar.bz2 openshift-641445638b67aecfa2462de2068bbcc985145580.tar.xz openshift-641445638b67aecfa2462de2068bbcc985145580.zip |
Merge pull request #5808 from zgalor/stateful_set
Switch to stateful set in prometheus
Diffstat (limited to 'roles/openshift_prometheus/tasks')
-rw-r--r-- | roles/openshift_prometheus/tasks/install_prometheus.yaml | 12 |
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 |