Check kube-apiserver up on all masters before upgrade (#7193) (#7217)

Only checking the kubernetes api on the first master when upgrading is not enough.
Each master needs to be checked before it's upgrade.

Signed-off-by: Rick Haan <rickhaan94@gmail.com>
This commit is contained in:
Rick Haan 2021-01-26 16:20:35 +01:00 committed by GitHub
parent 1727b3501f
commit 8a5139e54c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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']|first when: inventory_hostname == groups['kube-master']
register: _result register: _result
retries: 60 retries: 60
delay: 5 delay: 5