This guide assumes you are familiar with Argo CD and its basic concepts. See the Argo CD documentation for more information.
There are a few options for installing the ApplicationSet controller.
A) Install ApplicationSet into an existing Argo CD install¶
The ApplicationSet controller must be installed into the same namespace as the Argo CD it is targetting.
Presuming that Argo CD is installed into the
argocd namespace, run the following command:
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj-labs/applicationset/v0.2.0/manifests/install.yaml
Once installed, the ApplicationSet controller requires no additional setup.
manifests/install.yaml file contains the Kubernetes manifests required to install the ApplicationSet controller:
- CustomResourceDefinition for
- Deployment for
- ServiceAccount for use by ApplicationSet controller, to access Argo CD resources
- Role granting RBAC access to needed resources, for ServiceAccount
- RoleBinding to bind the ServiceAccount and Role
B) Install ApplicationSet and Argo CD together¶
You may instead install both the ApplicationSet controller and the latest stable Argo CD together, by creating a namespace and applying
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj-labs/applicationset/v0.2.0/manifests/install-with-argo-cd.yaml
Once installed, follow the Argo CD Getting Started to access Argo CD and log-in to the Web UI.
The ApplicationSet controller requires no additional setup.
C) Install development builds of ApplicationSet controller for access to the latest features¶
Development builds of the ApplicationSet controller can be installed by running the following command:
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj-labs/applicationset/master/manifests/install.yaml
With this option you will need to ensure that Argo CD is already installed into the
How it works:
- After each successful commit to argoproj-labs/applicationset
masterbranch, a GitHub action will run that performs a container build/push to
- Documentation for the
master-branch-based developer builds is available from Read the Docs.
Development builds contain newer features and bug fixes, but are more likely to be unstable, as compared to release builds.
master branch Read the Docs page for documentation on post-release features.
D) Customized install using Kustomize¶
Upgrading to a Newer Release¶
To upgrade from an older release (eg 0.1.0) to a newer release (eg 0.2.0), you only need to
kubectl apply the
install.yaml for the new release, as described under Installation above.
There are no manual upgrade steps required between any release of ApplicationSet controller, including 0.1.0 and 0.2.0, as of this writing.
If you installed using the combined 'ApplicationSet and Argo CD' bundle, you may wish to consult the Argo CD release upgrade docs as well, to familiarize yourself with Argo CD upgrades, and to confirm if there is anything on the Argo CD side you need to be aware of.
Optional: Additional Post-Upgrade Safeguards¶
See the Controlling Resource Modification page for information on additional parameters you may wish to add to the ApplicationSet
install.yaml, to provide extra security against any initial, unexpected post-upgrade behaviour.
For instance, to temporarily prevent the upgraded ApplicationSet controller from making any changes, you could:
- Enable dry-run
- Use a create-only policy
preserveResourcesOnDeletionon your ApplicationSets
- Temporarily disable automated sync in your ApplicationSets' template
These parameters would allow you to observe/control the behaviour of the new version of the ApplicationSet controller in your environment, to ensure you are happy with the result (see the ApplicationSet log file for details). Just don't forget to remove any temporary changes when you are done testing!
However, as mentioned above, these steps are not strictly necessary: upgrading the ApplicationSet controller should be a minimally invasive process, and these are only suggested as an optional precaution for extra safety.