* docs: add documentation for the argocd cluster commands This adds initial non-reference documentation for the `argocd cluster` commands as part of #14531. The main goal here is to bootstrap that page and point users wanting to remove the `in-cluster` cluster to the right setting. Signed-off-by: Maurice Meyer <[email protected]> * fixup! docs: add documentation for the argocd cluster commands Signed-off-by: Morre <[email protected]> * fixup! docs: add documentation for the argocd cluster commands Signed-off-by: Maurice Meyer <[email protected]> --------- Signed-off-by: Maurice Meyer <[email protected]> Signed-off-by: Morre <[email protected]>
1.0 KiB
Cluster Management
This guide is for operators looking to manage clusters on the CLI. If you want to use Kubernetes resources for this, check out Declarative Setup.
Not all commands are described here, see the argocd cluster Command Reference for all available commands.
Adding a cluster
Run argocd cluster add context-name.
If you're unsure about the context names, run kubectl config get-contexts to get them all listed.
This will connect to the cluster and install the necessary resources for ArgoCD to connect to it. Note that you will need privileged access to the cluster.
Removing a cluster
Run argocd cluster rm context-name.
This removes the cluster with the specified name.
!!!note "in-cluster cannot be removed"
The in-cluster cluster cannot be removed with this. If you want to disable the in-cluster configuration, you need to update your argocd-cm ConfigMap. Set cluster.inClusterEnabled to "false"