Setting up cluster federation from the ground up
To set up a Kubernetes cluster federation we need to run the components of the control plane, which are as follows:
etcd federation-apiserver federation-controller-manager
One of the easiest way to do that is to use the all-in-one hyperkube image:
https://github.com/kubernetes/kubernetes/tree/master/cluster/images/hyperkube.
The federation API server and the federation controller manager can be run as pods in an existing Kubernetes cluster, but as discussed earlier it is better from a fault tolerance and high availability point of view to run them in their own cluster.
Initial setup
First, you must have Docker running and get a Kubernetes release that contains the scripts we will use in this guide. The current release is 1.5.3. You can download the latest available version instead:
> curl -L https://github.com/kubernetes/kubernetes/releases/download/v1.5.3/kubernetes.tar.gz | tar xvzf - > cd kubernetes
We need to create a directory for the...