diff options
author | Jason Colyer <jcolyer2007@gmail.com> | 2018-09-17 13:38:53 -0500 |
---|---|---|
committer | Jason Colyer <jcolyer2007@gmail.com> | 2018-09-17 13:38:53 -0500 |
commit | 1fa93c6e202132319d873f4699e051853caa421c (patch) | |
tree | 1911138789ec2e060592b44ae836be92d0522d0a /doc/user | |
parent | 1d925e5cbf7ed7902dc5cbcb18b7d61a6cac57e6 (diff) | |
download | gitlab-ce-1fa93c6e202132319d873f4699e051853caa421c.tar.gz |
Added info on getting k8s integration for existing cluster
Diffstat (limited to 'doc/user')
-rw-r--r-- | doc/user/project/clusters/index.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/user/project/clusters/index.md b/doc/user/project/clusters/index.md index 41768998a59..20accdb38b5 100644 --- a/doc/user/project/clusters/index.md +++ b/doc/user/project/clusters/index.md @@ -113,6 +113,19 @@ 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 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` +- 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` + - Replace `<SECRET_NAME>` with the secret you want the token for + ## Security implications CAUTION: **Important:** |