How would you structure Git repositories and environments for GitOps?
IntermediateProductionCluster Design & Multi-Tenancy
Answer
Separate app source repos from an environment/config repo. In the config repo, a base plus overlays per environment (Kustomize or Helm values), promoted by pull request. Argo CD or Flux in each cluster pulls and reconciles, with prune and selfHeal enabled. Production changes need review, and drift from manual edits is reverted automatically.
More on Cluster Design & Multi-Tenancy
How many clusters should a company run, and how do you decide?BeginnerNamespace per environment or per team: which do you pick?BeginnerWhat namespace conventions and labels do you standardize on?BeginnerWhy should you never run workloads on the control plane nodes?BeginnerWhat is the minimum HA setup for a self-managed control plane?BeginnerWhat goes in a "cluster baseline" before apps are deployed?Beginner