diff options
author | Evan Read <eread@gitlab.com> | 2018-10-30 23:30:53 +0000 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2018-10-30 23:30:53 +0000 |
commit | 72319748314440ed918f5ad13dd7d10ac7afe2be (patch) | |
tree | de12c59a1863404aa91b0d31aa5aadb789418e00 | |
parent | 0f62aeb405f7d5526b2403a97cbce77eb4e19b6b (diff) | |
parent | bad48b1c241faff39991faec0787875a72c15d6e (diff) | |
download | gitlab-ce-72319748314440ed918f5ad13dd7d10ac7afe2be.tar.gz |
Merge branch 'docs-add-existing-k8s-integration-info' into 'master'
Added info on getting k8s integration for existing cluster
See merge request gitlab-org/gitlab-ce!21783
-rw-r--r-- | doc/user/project/clusters/index.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/user/project/clusters/index.md b/doc/user/project/clusters/index.md index 48004471f0a..762d254d6cc 100644 --- a/doc/user/project/clusters/index.md +++ b/doc/user/project/clusters/index.md @@ -113,6 +113,14 @@ 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). +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. + 1. Get the token for the appropriate 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 CAUTION: **Important:** |