How do you remove a cluster from ArgoCD?
Short answer
Use `argocd cluster rm ` or delete its cluster Secret. First ensure no Applications target it (or they'll go Unknown/fail). Removing the Secret revokes ArgoCD's access and drops it from the destinations list.
Advertisement
AModel answer
Use `argocd cluster rm <server-or-name>` or delete its cluster Secret. First ensure no Applications target it (or they'll go Unknown/fail). Removing the Secret revokes ArgoCD's access and drops it from the destinations list.
Example
argocd cluster rm prod-eu
Real-world example
A decommissioned cluster is removed after migrating its apps, cleaning up its credentials.
Likely follow-ups
- What should you do before removing a cluster? | What does removal revoke?
Related topics