c12s-kubespray/roles/kubernetes/master/tasks
Etienne Champetier fa35cc02a7
Fix scaling (#5889) (#5911)
* etcd: etcd-events doesn't depend on etcd_cluster_setup

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>

* etcd: remove condition already present on include_tasks

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>

* etcd: fix scaling up

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>

* etcd: use *access_addresses, do not delegate to etcd[0]

We want to wait for the full cluster to be healthy,
so use all the cluster addresses
Also we should be able to run the playbook when etcd[0] is down
(not tested), so do not delegate to etcd[0]

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>

* etcd: use failed_when for health check

unhealthy cluster is expected on first run, so use failed_when
instead of ignore_errors to remove scary red messages

Also use run_once

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>

* kubernetes/preinstall: ensure ansible_fqdn is up to date after changing /etc/hosts

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>

* kubernetes/master: regenerate apiserver cert if needed

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
(cherry picked from commit a35b6dc1af)
2020-04-20 00:45:39 -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 scale down coredns on each master during graceful upgrade (#5344) 2019-11-18 00:13:41 -08: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