Commit Graph

6 Commits (d6e5cc181b6f1a3d0cd00f28c8d7e19e1efc85d0)

Author SHA1 Message Date
Steven Hardy dc621da47f Add yml extension to kubespray inventory
Since the update to ansible 2.4 this seems required to select the appropriate
inventory plugin

Change-Id: I9499dac7b13284bccd05043eb59bbba67c24fa20
2017-11-14 15:42:27 +00:00
Jiri Stransky 38ab147d0b Enable in-cluster loadbalancing of kubernetes API
I originally disabled this because i couldn't successfully deploy the
API this way, but it was probably caused by garbled up node hostnames,
which was fixed in I1c0251be58535d59fe0ec157cb9acaba209e8732.

Change-Id: I0f51e971fad11568c2f9db13c0d1c54122c51f5d
2017-11-07 16:37:56 +01:00
Jiri Stransky a314d1b546 Allow installing multiple-node Kubernetes
By setting loadbalancer_apiserver_localhost to false we tell the
kubelets to register with 1st master rather than assuming there's an
API proxy running on each host.

Also Kubespray expects a specific format of inventory because it tries
to enforce that hostname matches the invenotry name of the node. This
previously resulted in incorrect hostnames being set.

And we also open the necessary firewall ports to allow the cluster to
communicate.

Change-Id: I1c0251be58535d59fe0ec157cb9acaba209e8732
2017-11-02 11:31:42 +01:00
Jiri Stransky 48b1cfd61e Don't alter default docker configuration during kubernetes install
Previously we've overriden the MountFlags option to 'shared' for
Kubernetes installation. This is no longer needed when Kubespray
deploys kubelet non-containerized.

Change-Id: I20b0f4bd6d99941a0a1876e68420cffd35f3ccfe
2017-10-19 18:17:05 +02:00
Jiri Stransky 215515e788 Generate Kubespray artifacts on undercloud
Write kubectl binary and admin.conf file on undercloud.

Change-Id: I5dd6ad0f69a12c984b1c5b7c2735bc301f8cb763
2017-10-19 18:17:05 +02:00
Jiri Stransky d77327d6e2 Kubespray installation via config download mechanism
Add external_deploy_tasks for Kubespray installation. This makes
Kubespray installation work with the config download mechanism.

If the undercloud doesn't already contain /usr/share/kubespray
directory, it will be git-cloned. This is to bridge a gap before we
figure out where we get Kubespray RPM from.

Co-Authored-By: Flavio Percoco <flaper87@gmail.com>
Change-Id: I2573261bfd3d63aff1310b80fc454becc7504437
2017-10-19 18:08:01 +02:00