Managing a Kubernetes cluster federation
Managing a Kubernetes cluster federation involves many activities above and beyond managing a single cluster. There are two ways to set up the federation. Then, you need to consider cascading resource deletion, load balancing across clusters, fail over across clusters, federated service discovery, and federated discovery. Let's go over each one in detail.
Setting up cluster federation from the ground up
Note: this approach is now deprecated in favor of using Kubefed
. I describe it here for the benefit of readers using older versions of Kubernetes.
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 ways 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...