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

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>
pull/7201/head
Rick Haan 2021-01-20 10:42:03 +01:00 committed by GitHub
parent 9a75501152
commit 04c8a73889
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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