summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Colyer <jcolyer2007@gmail.com>2018-10-11 15:41:17 -0500
committerJason Colyer <jcolyer2007@gmail.com>2018-10-11 15:41:17 -0500
commit54330656ac3abbe566a24ddcaa5d85ea5f7e8f6b (patch)
treebd38586ca8fa2cde7b92e146d8659896d49868f2
parent1fa93c6e202132319d873f4699e051853caa421c (diff)
downloadgitlab-ce-54330656ac3abbe566a24ddcaa5d85ea5f7e8f6b.tar.gz
Updated commands and order from MR recomendations
-rw-r--r--doc/user/project/clusters/index.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/user/project/clusters/index.md b/doc/user/project/clusters/index.md
index 20accdb38b5..5076dfc8107 100644
--- a/doc/user/project/clusters/index.md
+++ b/doc/user/project/clusters/index.md
@@ -116,15 +116,15 @@ 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 config view|grep server`
-- The CA Certificate:
- - You can determine the certificate via this command: `kubectl config view --raw|awk '/certificate-authority-data/ {print $NF}'|base64 -d`
+ - 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 describe secrets/<SECRET_NAME>|grep ^token`
+ - 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`
## Security implications