c12s-kubespray/roles/kubernetes
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
..
client Revert Pull Request #5084 (#5120) 2019-10-17 05:26:37 -07:00
kubeadm Ensure we always fixup kube-proxy kubeconfig (#5524) (#5558) 2020-02-20 04:15:05 -08:00
master Wait for kube-apiserver availability before starting upgrade (#6243) 2020-06-08 07:25:53 -07:00
node added "Flatcar", "Flatcar Container Linux by Kinvolk" for all coreOS role (#5607) (#5818) 2020-03-27 06:06:23 -07:00
node-label/tasks set node label via kubectl label command (#5257) 2019-12-09 01:43:09 -08:00
preinstall Fix scaling (#5889) (#5911) 2020-04-20 00:45:39 -07:00
tokens ansible-lint: add spaces around variables [E206] (#4699) 2019-05-02 14:24:21 -07:00