A team wants to manage their Argo CD Application YAML themselves, but you do not want them editing the `argocd` namespace. What do you set up?
AdvancedScenarioAdopting GitOps & Repo Design
Answer
Situation read → Self-service Applications with guardrails.
What I'd do →
- Enable apps in any namespace:
application.namespaces: team-*-appsinargocd-cmd-params-cm, restart server and controller. - Create namespace
team-a-appswith Kubernetes RBAC letting team-a manageapplications.argoproj.iothere. - In the AppProject
team-a, setsourceNamespaces: [team-a-apps]plus restricted repos and destinations. - Alternatively, keep Applications in Git under
teams/team-a/with CODEOWNERS and an ApplicationSet that generates them.
Why → The project still bounds what their apps can deploy, while they own the Application objects.
Interview tip → Contrast "self-service through Git" (preferred) with "self-service through kubectl".
More on Adopting GitOps & Repo Design
Your team deploys with Jenkins running `kubectl apply` and wants to move to Argo CD without downtime. How do you migrate?IntermediateA startup with three services asks whether they need a separate config repo. What do you recommend?BeginnerA team wants a Git branch per environment (`dev`, `staging`, `prod`). How do you respond?IntermediateDevelopers keep running `kubectl edit` in production to "quickly fix" things. How do you stop it without blocking incident response?IntermediateYou must deploy one microservice to 4 environments with Helm. Which values structure do you choose?BeginnerYour config repo has 400 Applications in one monorepo and every commit triggers a refresh of everything. What do you change?Advanced