From e6f7281f0fd11329dc5c2f5a19a10001e0886054 Mon Sep 17 00:00:00 2001
From: Marco <marco.lorini@garr.it>
Date: Tue, 3 Nov 2020 15:31:11 +0100
Subject: [PATCH] 2020-11-03 ML: update Installation section with Helm v3

---
 README.md | 41 +++++++----------------------------------
 1 file changed, 7 insertions(+), 34 deletions(-)

diff --git a/README.md b/README.md
index 9f97758..3f267b5 100644
--- a/README.md
+++ b/README.md
@@ -85,7 +85,7 @@ $ kubectl config use-context <context-name>
 To install the KubeFed client run the following commands in your local machine:
 
 ```bash
-$ VERSION=0.2.0-alpha.1
+$ VERSION=<version>
 $ OS=linux
 $ ARCH=amd64
 $ curl -LO https://github.com/kubernetes-sigs/kubefed/releases/download/v${VERSION}/kubefedctl-${VERSION}-${OS}-${ARCH}.tgz
@@ -94,46 +94,19 @@ $ chmod u+x kubefedctl
 $ sudo mv kubefedctl /usr/local/bin/ # make sure the location is in the PATH
 ```
 
-**N.B.**: the versions we tested are: 0.1.0-rc6 and 0.2.0-alpha.1, you can try the latest version.
+To consult the available versions go to the page: https://github.com/kubernetes-sigs/kubefed/releases.
 
 ### KubeFed server (Control Plane)
 
-To install the Controll Plane, switch to the host context and configuring the RBAC role for Tiller (in this case we use Helm v2):
+Make sure you have selected the host cluster as the current context (if necessary, perform the context switch to move to it).
 
-```bash
-$ cat << EOF | kubectl apply -f -
-	apiVersion: v1
-	kind: ServiceAccount
-	metadata:
-	  name: tiller
-	  namespace: kube-system
-	---
-	apiVersion: rbac.authorization.k8s.io/v1
-	kind: ClusterRoleBinding
-	metadata:
-	  name: tiller
-	roleRef:
-	  apiGroup: rbac.authorization.k8s.io
-	  kind: ClusterRole
-	  name: cluster-admin
-	subjects:
-	  - kind: ServiceAccount
-	    name: tiller
-	    namespace: kube-system
-	EOF
-```
-
-helm init command:
-
-```bash
-$ helm init --service-account tiller
-```
-
-Now it is possible install the Control Plane on the Host Cluster:
+The Control Plane installation will be carried out through Helm v3, with the following commands the Control Plane will be installed through the KubeFed chart:
 
 ```bash
 $ helm repo add kubefed-charts https://raw.githubusercontent.com/kubernetes-sigs/kubefed/master/charts
-$ helm install kubefed-charts/kubefed --name kubefed --version=0.2.0-alpha.1 --namespace kube-federation-system
+$ helm repo list
+$ helm search repo kubefed
+$ helm --namespace kube-federation-system install -i kubefed kubefed-charts/kubefed --version=<version> --set controllermanager.featureGates.FederatedIngress=Enabled --set controllermanager.featureGates.CrossClusterServiceDiscovery=Enabled --create-namespace # version tested: 0.5.0 
 ```
 
 **N.B.**: use the same version for client and server.
-- 
GitLab