Setup argocd with multiple microservices (nginx, postgres) in a single umbrella chart, each microservice has to be in their own namespace. Project structure has to follow best practises and be able to be deployed only once through Argocd GUI.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Setting up ArgoCD with multiple microservices (e.g., nginx, postgres) using a single Helm umbrella chart, where each service is deployed into its own namespace, requires careful structuring of your Helm charts and ArgoCD application definitions. Here's a comprehensive guide to achieve this while following best practices.
✅ Goals Recap
Use a single umbrella Helm chart to manage deployment.
Each microservice (nginx, postgres) should run in its own Kubernetes namespace.
Deploy everything via a single ArgoCD Application through the GUI.
Follow best practices for project structure and maintainability.
Helm does not support setting namespaces directly in the chart. To deploy each subchart into a different namespace, use the namespaceOverride pattern or pass --set <chart>.namespaceOverride=....
🚀 3. Deploying with ArgoCD
To deploy the umbrella chart using ArgoCD, create a Git repo containing your Helm chart structure and then configure a single ArgoCD Application.
ArgoCD Application (via GUI)
General Settings
Application Name: microservices-app
Project: default (or a custom one)
Sync Policy: Manual/Auto-sync as desired
Repository URL: Your Git repo URL (e.g., GitHub/GitLab)
Path: helm/umbrella-chart
Target Namespace: Leave blank (we’ll set per-service)
Helm Settings
Click on Helm tab or expand parameters:
Helm Parameters:
Name
Value
nginx.namespaceOverride
nginx-ns
postgres.namespaceOverride
postgres-ns
This tells Helm to install each subchart into its respective namespace.
Ensure that these namespaces exist beforehand or include namespace creation in your chart (optional).