Docs feedback: Wrong procedure to add an existing Kubernetes cluster
In the doc you mention the following step: 3. Retrieve the token for the gitlab-admin service account:
kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep gitlab-admin | awk '{print $1}')
Copy the <authentication_token> value from the output.
In reality the token is base64 encoded, so the right procedure would be:
kubectl -n kube-system get secrets $(kubectl -n kube-system get secret | grep gitlab-admin | awk '{print $1}') -o jsonpath='{.data.token}' | base64 -d
Edited by Ivan Rizzante