From 4fc4ed095eaf70cab584d754b371efbef34c1276 Mon Sep 17 00:00:00 2001 From: Maarten de Waard <maarten@greenhost.nl> Date: Fri, 25 Oct 2019 11:35:35 +0200 Subject: [PATCH] download manifests from specific prometheus version --- ansible/roles/apps/tasks/helmfiles.yml | 3 ++- helmfiles/helmfile.d/15-monitoring.yaml | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ansible/roles/apps/tasks/helmfiles.yml b/ansible/roles/apps/tasks/helmfiles.yml index 0bb45ba5b..e87fddefe 100644 --- a/ansible/roles/apps/tasks/helmfiles.yml +++ b/ansible/roles/apps/tasks/helmfiles.yml @@ -30,7 +30,8 @@ tags: - helmfile - monitoring - command: '/snap/bin/kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/master/example/prometheus-operator-crd/{{ item }}' + # NOTE: Change the commit hash in the URL when upgrading Prometheus + command: '/snap/bin/kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/3c7f982b4f03976d4f354e2dee0331c2cf877194/example/prometheus-operator-crd/{{ item }}' loop: - alertmanager.crd.yaml - prometheus.crd.yaml diff --git a/helmfiles/helmfile.d/15-monitoring.yaml b/helmfiles/helmfile.d/15-monitoring.yaml index b2fae2d4d..1db3eaa6a 100644 --- a/helmfiles/helmfile.d/15-monitoring.yaml +++ b/helmfiles/helmfile.d/15-monitoring.yaml @@ -7,7 +7,9 @@ releases: - name: "oas-{{ .Environment.Values.releaseName }}-prometheus" namespace: "oas" chart: "stable/prometheus-operator" - version: 6.21.0 + # NOTE: If you change this version, also change the commit hash in + # ansible/roles/apps/tasks/helmfiles.yml:34 + version: 5.15.0 values: - "../values/prometheus.yaml.gotmpl" - "/etc/OpenAppStack/values/apps/prometheus.yaml.gotmpl" -- GitLab