c12s-kubespray/roles/kubernetes/preinstall/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
..
0010-swapoff.yml ansible-lint: don't compare to empty string [E602] (#4665) 2019-04-28 23:00:20 -07:00
0020-verify-settings.yml added "Flatcar", "Flatcar Container Linux by Kinvolk" for all coreOS role (#5607) (#5818) 2020-03-27 06:06:23 -07:00
0030-pre_upgrade.yml Update dir list 2018-08-31 13:45:08 +02:00
0040-set_facts.yml added "Flatcar", "Flatcar Container Linux by Kinvolk" for all coreOS role (#5607) (#5818) 2020-03-27 06:06:23 -07:00
0050-create_directories.yml add Kube-OVN cni to kubespray (#5020) 2019-07-30 20:10:20 -07:00
0060-resolvconf.yml added "Flatcar", "Flatcar Container Linux by Kinvolk" for all coreOS role (#5607) (#5818) 2020-03-27 06:06:23 -07:00
0061-systemd-resolved.yml Enable systemd-resolved DNS resolution mode (#5318) 2019-11-06 03:33:52 -08:00
0070-system-packages.yml added "Flatcar", "Flatcar Container Linux by Kinvolk" for all coreOS role (#5607) (#5818) 2020-03-27 06:06:23 -07:00
0080-system-configurations.yml added "Flatcar", "Flatcar Container Linux by Kinvolk" for all coreOS role (#5607) (#5818) 2020-03-27 06:06:23 -07:00
0090-etchosts.yml Fix scaling (#5889) (#5911) 2020-04-20 00:45:39 -07:00
0100-dhclient-hooks.yml Remove unnecessary and risky reload network for resolvconf propagation (#5322) 2019-11-06 10:11:52 -08:00
0110-dhclient-hooks-undo.yml Remove unnecessary and risky reload network for resolvconf propagation (#5322) 2019-11-06 10:11:52 -08:00
0120-growpart-azure-centos-7.yml ansible-lint: E403 Package installs should not use latest (#4500) 2019-04-18 01:34:08 -07:00
main.yml added "Flatcar", "Flatcar Container Linux by Kinvolk" for all coreOS role (#5607) (#5818) 2020-03-27 06:06:23 -07:00