https://github.com/philips/federation-hacks
https://github.com/philips/federation-hacks
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/philips/federation-hacks
- Owner: philips
- Created: 2017-04-11T18:19:25.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-11T22:02:01.000Z (about 9 years ago)
- Last Synced: 2025-08-02T14:40:09.297Z (11 months ago)
- Language: Smarty
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
```