Update docs/cluster-registration.md

Co-authored-by: Mario Manno <mario.manno@gmail.com>
This commit is contained in:
Jiwon Hu 2024-08-26 18:07:30 +08:00 committed by GitHub
parent bb1df2dd9a
commit 901c0d7dc9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ API_SERVER_URL=https://<API_URL>:6443
API_SERVER_CA_DATA=...
```
`API_SERVER_URL` should be in format of `https://<API_URL>:6443` that can be referenced from `.kube/config` file. Do not use apiServerURL of `https://<FQDN>` from previously generated `values.yaml` file.
If the API server is not listening on the https port (443), the `API_SERVER_URL` should include the port, e.g. `https://<API_URL>:6443`. The URL can be found in the `.kube/config` file.
Value in `API_SERVER_CA_DATA` can be obtained from a `.kube/config` file with valid data to connect to the upstream cluster
(under the `certificate-authority-data` key). Alternatively it can be obtained from within the upstream cluster itself,
by looking up the default ServiceAccount secret name (typically prefixed with `default-token-`, in the default namespace),