diff options
author | Jason Colyer <jcolyer2007@gmail.com> | 2018-10-24 07:32:07 -0500 |
---|---|---|
committer | Jason Colyer <jcolyer2007@gmail.com> | 2018-10-24 07:32:07 -0500 |
commit | 742a9c834425fef126d066b66e5780b48ff035ef (patch) | |
tree | e18cf084f9f7462d26c9b8c88e3671d20bbeadb9 | |
parent | 54330656ac3abbe566a24ddcaa5d85ea5f7e8f6b (diff) | |
download | gitlab-ce-742a9c834425fef126d066b66e5780b48ff035ef.tar.gz |
Added Evan's suggestions
-rw-r--r-- | doc/user/project/clusters/index.md | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/doc/user/project/clusters/index.md b/doc/user/project/clusters/index.md index 5076dfc8107..8a522a3e255 100644 --- a/doc/user/project/clusters/index.md +++ b/doc/user/project/clusters/index.md @@ -113,18 +113,13 @@ To add an existing Kubernetes cluster to your project: After a couple of minutes, your cluster will be ready to go. You can now proceed to install some [pre-defined applications](#installing-applications). -If you need to determine some of the above values, the following should prove helpful: - -- The API URL: - - You can get this via the command: `kubectl cluster-info | grep 'Kubernetes master' | awk '/http/ {print $NF}'` -- The Token: - - You will first need to determine which secret you need the token for. - - To list the secrets, run the command: `kubectl get secrets` - - Determine which secret you want the token for - - Run this command to get the token: `kubectl get secret <SECRET_NAME> -o jsonpath="{['data']['token']}" | base64 -D` - - Replace `<SECRET_NAME>` with the secret you want the token for -- The CA Certificate: - - You can determine the certificate via this command: `kubectl get secret <secret name> -o jsonpath="{['data']['ca\.crt']}" | base64 -D` +To determine the: + +- API URL, run `kubectl cluster-info | grep 'Kubernetes master' | awk '/http/ {print $NF}'` +- Token: + 1. List the secrets by running `kubectl get secrets`. Note the name of the secret you need the token for. + 2. Get the token for the noted secret by running `kubectl get secret <SECRET_NAME> -o jsonpath="{['data']['token']}" | base64 -D` +- CA Certificate, run `kubectl get secret <secret name> -o jsonpath="{['data']['ca\.crt']}" | base64 -D` ## Security implications |