Skip to content
Snippets Groups Projects
Commit 760ca1c3 authored by Vladimir Vasilkin's avatar Vladimir Vasilkin
Browse files

adding checking for prometheus_operator_enabled

parent 23b38338
No related branches found
No related tags found
No related merge requests found
......@@ -2,11 +2,13 @@
- name: Metrics | Make sure Helm is installed
command: "{{ bin_dir }}/helm version"
when:
- prometheus_operator_enabled
- inventory_hostname == groups['kube-master'][0]
- name: Metrics | Add coreos repo
command: "{{ bin_dir }}/helm repo add coreos https://s3-eu-west-1.amazonaws.com/coreos-charts/stable/"
when:
- prometheus_operator_enabled
- inventory_hostname == groups['kube-master'][0]
run_once: true
......@@ -20,6 +22,7 @@
- name: Metrics | Install K8s cluster metrics
command: "{{ bin_dir }}/helm upgrade --install kube-prometheus coreos/kube-prometheus --namespace {{ monitoring_namespace }}"
when:
- prometheus_operator_enabled
- k8s_metrics_enabled
- inventory_hostname == groups['kube-master'][0]
run_once: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment