c12s-kubespray/roles/kubernetes/master/tasks
Rick Haan 5cba8b1614
Wait for kube-apiserver availability before starting upgrade (#6243)
* Wait for kube-apiserver availability before starting upgrade

I am experiencing a timing issue when upgrading from kubespray
2.11.0(k8s 1.15.3) to kubespray 2.12.6(k8s 1.16.9). The certificates get
replaced in `kubeadm-secondary-legacy.yml` and kube-apiserver notices a mismatch
(for a fraction of a second) between `apiserver.crt` and `apiserver.key`
which causes it to restart. And sometimes ( ~ 1 out of 5 upgrades) the
kube-apiserver isn't back on time for the start of the upgrade task. It
fails when kubeadm checks with the kube-apiserver to start the upgrade. The
kube-apiserver returns a `connect: connection refused`. I have created this
small task to check the availability of the kube-apiserver before starting the
upgrade, so that the upgrade will run without an issue.

Signed-off-by: Rick Haan <rickhaan94@gmail.com>

* Fix markdownlint

* Remove old CI

Co-authored-by: Maxime Guyot <maxime@root314.com>
2020-06-08 07:25:53 -07:00
..
encrypt-at-rest.yml ansible-lint: add spaces around variables [E206] (#4699) 2019-05-02 14:24:21 -07:00
kubeadm-certificate.yml Set certs and files with kubeadm token to mode 0640 (#5325) 2019-11-11 05:41:41 -08:00
kubeadm-cleanup-old-certs.yml Switch /root references to ansible_env.HOME (#4842) 2019-06-06 02:06:11 -07:00
kubeadm-etcd.yml Enable kubeadm etcd mode (#4818) 2019-06-20 11:12:51 -07:00
kubeadm-fix-apiserver.yml Set certs and files with kubeadm token to mode 0640 (#5325) 2019-11-11 05:41:41 -08:00
kubeadm-migrate-certs.yml Set certs and files with kubeadm token to mode 0640 (#5325) 2019-11-11 05:41:41 -08:00
kubeadm-secondary-experimental.yml Set certs and files with kubeadm token to mode 0640 (#5325) 2019-11-11 05:41:41 -08:00
kubeadm-secondary-legacy.yml Set certs and files with kubeadm token to mode 0640 (#5325) 2019-11-11 05:41:41 -08:00
kubeadm-setup.yml Fix scaling (#5889) (#5911) 2020-04-20 00:45:39 -07:00
kubeadm-upgrade.yml Wait for kube-apiserver availability before starting upgrade (#6243) 2020-06-08 07:25:53 -07:00
kubeadm-version.yml Set certs and files with kubeadm token to mode 0640 (#5325) 2019-11-11 05:41:41 -08:00
main.yml Add support for k8s v1.17.0-rc.1, remove hyperkube (#5378) 2019-11-28 05:41:03 -08:00
pre-upgrade.yml ansible-lint: add spaces around variables [E206] (#4699) 2019-05-02 14:24:21 -07:00
users-file.yml Remove non-kubeadm deployment (#3811) 2018-12-06 02:33:38 -08:00