c12s-kubespray/roles
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
..
adduser fix useradd etcd (#5281) 2019-11-11 03:27:41 -08:00
bastion-ssh-config Adding "-F /dev/null" to load null SSH config file. (#4933) 2019-07-02 01:53:08 -07:00
bootstrap-os added "Flatcar", "Flatcar Container Linux by Kinvolk" for all coreOS role (#5607) (#5818) 2020-03-27 06:06:23 -07:00
container-engine remove duplicate ppa step and replace with circtl package download (#5455) 2020-03-30 01:11:53 -07:00
download Update hashes and set default k8s version to 1.16.9 (#6032) 2020-04-28 00:10:04 -07:00
etcd Fix scaling (#5889) (#5911) 2020-04-20 00:45:39 -07:00
kubernetes Wait for kube-apiserver availability before starting upgrade (#6243) 2020-06-08 07:25:53 -07:00
kubernetes-apps added "Flatcar", "Flatcar Container Linux by Kinvolk" for all coreOS role (#5607) (#5818) 2020-03-27 06:06:23 -07:00
kubespray-defaults Update hashes and set default k8s version to 1.16.9 (#6032) 2020-04-28 00:10:04 -07:00
network_plugin added "Flatcar", "Flatcar Container Linux by Kinvolk" for all coreOS role (#5607) (#5818) 2020-03-27 06:06:23 -07:00
recover_control_plane Add default value for bin_dir in recover control plane (#5396) 2019-12-09 02:54:02 -08:00
remove-node Fix issue in remove-node/post-remove task (#5185) (#5186) 2019-10-10 05:17:43 -07:00
reset added "Flatcar", "Flatcar Container Linux by Kinvolk" for all coreOS role (#5607) (#5818) 2020-03-27 06:06:23 -07:00
upgrade Fix Ansible-lint error [E502] (#4743) 2019-05-16 00:27:43 -07:00
win_nodes/kubernetes_patch Add wait for kubectl get ds after upgrades (#5433) 2019-12-11 11:23:55 -08:00