Commit bd5351f8 authored by Evan Read's avatar Evan Read

Merge branch 'docs-autodevops-ca' into 'master'

Update retrieval instruction of CA cert when adding k8s cluster

See merge request gitlab-org/gitlab!18031
parents e8928d60 059e41f0
...@@ -205,9 +205,13 @@ To add an existing Kubernetes cluster to your project: ...@@ -205,9 +205,13 @@ To add an existing Kubernetes cluster to your project:
`default-token-xxxxx`. Copy that token name for use below. `default-token-xxxxx`. Copy that token name for use below.
- Get the certificate by running this command: - Get the certificate by running this command:
```sh ```sh
kubectl get secret <secret name> -o jsonpath="{['data']['ca\.crt']}" | base64 --decode kubectl get secret <secret name> -o jsonpath="{['data']['ca\.crt']}" | base64 --decode
``` ```
NOTE: **Note:**
If the command returns the entire certificate chain, you need copy the *root ca*
certificate at the bottom of the chain.
- **Token** - - **Token** -
GitLab authenticates against Kubernetes using service tokens, which are GitLab authenticates against Kubernetes using service tokens, which are
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment