An open API service indexing awesome lists of open source software.

https://github.com/philips/federation-hacks


https://github.com/philips/federation-hacks

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# federation-hacks

Get the [kubefed tool](https://kubernetes.io/docs/tutorials/federation/set-up-cluster-federation-kubefed/).

Deploy the federation API server:

```
helm install -n fed ./federation-etcd-operator/
```

Start the kubectl proxy to the target cluster:

```
kubectl proxy
```

Join the fake clusters and ignore any errors:

```
export KUBECONFIG=$PWD/kubeconfig
kubefed join cluster1 --cluster-context=fed --kubeconfig=kubeconfig -v=10
kubefed join cluster2 --cluster-context=fed --kubeconfig=kubeconfig -v=10
kubefed join cluster3 --cluster-context=fed --kubeconfig=kubeconfig -v=10
```

See the clusters loaded into the federation API:

```
curl http://127.0.0.1:8001/api/v1/proxy/namespaces/default/services/fed-federation-etcd-operator:80/apis/federation/v1beta1/clusters
```