wait 5 * 4 secs until Tiller starts
This commit is contained in:
parent
760ca1c3a9
commit
f0a04b4d65
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,10 @@
|
|||
---
|
||||
- name: Metrics | Make sure Helm is installed
|
||||
command: "{{ bin_dir }}/helm version"
|
||||
register: helm_ready_result
|
||||
until: helm_ready_result|succeeded
|
||||
retries: 4
|
||||
delay: 5
|
||||
when:
|
||||
- prometheus_operator_enabled
|
||||
- inventory_hostname == groups['kube-master'][0]
|
||||
|
@ -21,7 +25,7 @@
|
|||
|
||||
- name: Metrics | Install K8s cluster metrics
|
||||
command: "{{ bin_dir }}/helm upgrade --install kube-prometheus coreos/kube-prometheus --namespace {{ monitoring_namespace }}"
|
||||
when:
|
||||
when:
|
||||
- prometheus_operator_enabled
|
||||
- k8s_metrics_enabled
|
||||
- inventory_hostname == groups['kube-master'][0]
|
||||
|
|
Loading…
Reference in a new issue