ArgoCD and Velocity
If ArgoCD is running outside of your targeted development or staging cluster, you will need to make some configuration adjustments to your ArgoCD application definitions
Certain advanced ArgoCD deployment strategies such as App of Apps and App of AppSets may require the solution described in this article.
If ArgoCD is running outside of your targeted development or staging cluster, you will need to make some configuration adjustments to your ArgoCD application definition(s) in order to suspend the autosync functionality and work with Velocity sessions.
This will allow Velocity to temporarily replace an ArgoCD-managed deployment in order to run a Velocity development session.
If ArgoCD is running in the same cluster as the service you're developing, no changes are required in order to use Velocity.
Prerequisites
The minimum required version of ArgoCD for either of the following options is 2.1.0
Configuration updates
You can choose for either of two configuration approaches:
See our demo video at the bottom of this article for more help.
Option 1: Update the CRD YAML manifest
For this option, you will update the CRD YAML manifest file and then apply the changes with kubectl.
Adjust your manifest file to appear similar to the following example:apiVersion: argoproj.io/v1alpha1
Once you've updated the manifest file, apply the changes with
kubectl
:
Following the application of these changes, the ArgoCD autosync functionality remains active for any additional services that are deployed in your cluster. The autosync is also reactivated for the target service when your original deployment is restored following the conclusion of your Velocity development session.
Option 2: Update the Argo Application
With this option, you will update the Argo application via the ArgoCD interface.
Click on the application tile in the Argo Workflows interface.
Click App Details.
Select Manifest from the top bar of the application details view.
Click Edit, add the following to your application manifest:
Click Save. Following the application of these changes, the ArgoCD autosync functionality remains active for any additional services that are deployed in your cluster. The autosync is also reactivated for the target service when your original deployment is restored following the conclusion of your Velocity development session.
Demo video
Last updated