Creating an Environment as an Application of Applications
Explore how to deploy and manage a full environment using GitOps principles with Argo CD. Understand creating an app of apps to synchronize multiple applications from repositories, simplifying deployment and updates in Kubernetes clusters. Gain insight into managing resources and resolving issues like incorrect Ingress configurations.
We'll cover the following...
What do we need?
We need to define an Argo CD app of the apps. We’ll create an application that will reference those two applications (or whichever other we add there later). Those, in turn, will be referencing the “base” app manifests stored in application repositories.
That might be confusing, so let's look at yet another Argo CD Application definition.
The output is as follows.
This one is almost the same as the previous application definition. The major difference is that it references the helm directory of the vfarcic/argocd-production repository. That’s the directory with the Chart that has the applications defined in devops-paradox.yaml and devops-toolkit.yaml files. As a result, Argo CD will synchronize changes to vfarcic/argocd-production and the repos referenced in devops-paradox.yaml and devops-toolkit.yaml.
We need to change that address to be your fork of that repo, or, to be more precise, to use your GitHub organization. As usual, we’ll use a bit of sed ...