Commit e8c52b0a authored by Marco Lorini's avatar Marco Lorini
Browse files

2020-10-07 ML: add Enable API section in readme file

parent 7680ba55
......@@ -159,3 +159,33 @@ Command to show federated clusters:
```
$ kubectl -n kube-federation-system get kubefedclusters
```
##Enable API
To enable a resource to be federated it is necessary to use the enable command of kubefedctl:
```
$ kubefedctl enable <api-resources-name.api-group> --kubefed-namespace kube-federation-system
```
To know the list of resourses:
```
$ kubectl api-resources -o wide
```
Some examples:
```
$ kubefedctl enable deployments.apps --kubefed-namespace kube-federation-system
$ kubefedctl enable services --kubefed-namespace kube-federation-system
$ kubefedctl enable ingresses.extensions --kubefed-namespace kube-federation-system
```
Command to disable federated API:
```
$ kubefedctl disable services --kubefed-namespace kube-federation-system
```
**N.B.**: Do not federate the “kind: pod” resource. In this case, federating a whole namespace will federate pods and deployments at the same time. Deployments will create replicasets which in turn create pods. It will result a duplication of the pods resources.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment