Fix "api is up" check (#7295)

Signed-off-by: Etienne Champetier <e.champetier@ateme.com>
(cherry picked from commit 662a37ab4f)
This commit is contained in:
Etienne Champetier 2021-02-19 12:12:25 -05:00 committed by Kubernetes Prow Robot
parent c7658c0256
commit 3292887cae

View file

@ -3,7 +3,7 @@
uri: uri:
url: "https://{{ ip | default(fallback_ips[inventory_hostname]) }}:{{ kube_apiserver_port }}/healthz" url: "https://{{ ip | default(fallback_ips[inventory_hostname]) }}:{{ kube_apiserver_port }}/healthz"
validate_certs: false validate_certs: false
when: inventory_hostname == groups['kube-master'] when: inventory_hostname in groups['kube-master']
register: _result register: _result
retries: 60 retries: 60
delay: 5 delay: 5