github.com/argoproj/argo-cd/v2@v2.10.9/docs/operator-manual/cluster-management.md (about)

     1  # Cluster Management
     2  
     3  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](./declarative-setup.md#clusters).
     4  
     5  Not all commands are described here, see the [argocd cluster Command Reference](../user-guide/commands/argocd_cluster.md) for all available commands.
     6  
     7  ## Adding a cluster
     8  
     9  Run `argocd cluster add context-name`.
    10  
    11  If you're unsure about the context names, run `kubectl config get-contexts` to get them all listed.
    12  
    13  This will connect to the cluster and install the necessary resources for ArgoCD to connect to it.
    14  Note that you will need privileged access to the cluster.
    15  
    16  ## Removing a cluster
    17  
    18  Run `argocd cluster rm context-name`.
    19  
    20  This removes the cluster with the specified name.
    21  
    22  !!!note "in-cluster cannot be removed"
    23      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`](./argocd-cm-yaml.md) to `"false"`