From 04c8a738892f30b19b348af77e971fad91c096da Mon Sep 17 00:00:00 2001 From: Rick Haan Date: Wed, 20 Jan 2021 10:42:03 +0100 Subject: [PATCH] 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 --- roles/kubernetes/master/tasks/kubeadm-upgrade.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes/master/tasks/kubeadm-upgrade.yml b/roles/kubernetes/master/tasks/kubeadm-upgrade.yml index 9c0ff4fab..36828573b 100644 --- a/roles/kubernetes/master/tasks/kubeadm-upgrade.yml +++ b/roles/kubernetes/master/tasks/kubeadm-upgrade.yml @@ -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