Skip to content

Commit

Permalink
Update docs/content/en/tasks/data-plane-registration/_index.md
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Dejanovski <[email protected]>
  • Loading branch information
Miles-Garnsey and adejanovski authored May 28, 2024
1 parent a9e044b commit af772bb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/content/en/tasks/data-plane-registration/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ Proceed with caution before deleting a ClientConfig or the secrets backing it. I
#### Creating a ClientConfig and Kubeconfig secret
Registering a data plane to a control plane can be error prone if done by hand. Instead use the `k8ssandra-client` CLI tool which can be found [here](https://github.com/k8ssandra/k8ssandra-client). It can be installed as a kubectl plugin by placing it on your `$PATH` or run completely separately.

An example command to register a data plane to a control plane would be `./kubectl-k8ssandra register --source-context gke_k8ssandra_us-central1-c_registration-2 --dest-context gke_k8ssandra_us-central1-c_registration-1` where the source context (`gke_k8ssandra_us-central1-c_registration-2`) is the data plane (because that's the source of the credentials) and the destination context (`gke_k8ssandra_us-central1-c_registration-1`) is the control plane.
An example command to register a data plane to a control plane would be `kubectl k8ssandra register --source-context gke_k8ssandra_us-central1-c_registration-2 --dest-context gke_k8ssandra_us-central1-c_registration-1` where the source context (`gke_k8ssandra_us-central1-c_registration-2`) is the data plane (because that's the source of the credentials) and the destination context (`gke_k8ssandra_us-central1-c_registration-1`) is the control plane.

If the operator was installed in a different namespace than `k8ssandra-operator` in either the source or the destination cluster, use the following flags to indicate the actual namespaces:

- `--dest-namespace <namespace>`
- `--source-namespace <namespace>`

A full list of options for this command can be found by using the `--help` flag.

Expand Down

0 comments on commit af772bb

Please sign in to comment.