How do you onboard a new cluster into an existing GitOps setup?
Short answer
Register the cluster (Secret with proper labels), and if using ApplicationSet cluster generators, matching apps deploy automatically. With App of Apps, add a root for the cluster. Labeling correctly ensures the right app set lands without hand-writing each Application.
Advertisement
AModel answer
Register the cluster (Secret with proper labels), and if using ApplicationSet cluster generators, matching apps deploy automatically. With App of Apps, add a root for the cluster. Labeling correctly ensures the right app set lands without hand-writing each Application.
Example
argocd cluster add new-ctx # label it so generators pick it up
Real-world example
Adding and labeling a new cluster causes the standard platform apps to deploy to it with no extra manifests.
Likely follow-ups
- What makes onboarding automatic? | Why label at registration?
Related topics