Deploying a Helm chart to multiple environments
In the previous sections, we used Argo CD to deploy a Helm chart to a single environment (or namespace). However, when deploying applications in the enterprise, you will often expect to deploy across multiple different environments, achieving a process similar to what’s shown in the following diagram:
Figure 10.5 – Deploying to multiple namespaces
You may want to deploy charts to different environments (separate namespaces or even separate clusters) for a variety of reasons, including high availability or for deploying an application across multiple stages of a pipeline, such as dev, test, and prod. Luckily, we can achieve this in Argo CD using the ApplicationSet
construct.
Imagine that we have two separate namespaces – one for dev and another for prod. We could create two separate Application
resources, each targeting a separate namespace in the destination section:
- Dev would look...