Deploy the Ververica Agent with a GitOps Tool
On this page
You can deploy the Ververica Agent from a Git repository with a GitOps tool such as Argo CD, instead of running the Helm command from the setup pages yourself. You deploy the same vv-agent Helm chart either way. Two things work differently from a manual installation: the registration token, and the Secret that holds the agent's certificate.
Before You Begin
- Register the agent in the Ververica Portal and download its
values.yamlfile, as described in Install the AWS Ververica Agent or Install the Azure Ververica Agent. - Point your GitOps tool at the chart
oci://registry.ververica.cloud/agent-charts/vv-agentand pin an exact chart version, so the agent is upgraded only when you change the version in Git.
The Registration Token
The values.yaml file you download when you register an agent contains an access token that expires 30 minutes after registration. The agent needs the token only for its first registration. While the agent shows as Online, Helm upgrades and pod restarts don't need the token.
The first sync of the agent must complete within 30 minutes of registering it. Plan the first sync before you register the agent and download the file.
Store the token and the other sensitive values from values.yaml with the secret management you already use for your GitOps repository. The agent doesn't require a specific secret store.
Agent Certificate Out-of-Sync Issue with Argo CD
The tls.crt and tls.key fields of the pyxis-api-gateway-agent-auth Secret in the agent namespace hold the agent's certificate. When you deploy the vv-agent Helm chart with Argo CD, Argo CD shows these two fields as out of sync after the chart is installed.
If Argo CD shows drift on the tls.crt and tls.key fields of the pyxis-api-gateway-agent-auth Secret, don't sync the Application. A sync can break the agent and leave it Offline on the Agents page of the Ververica Portal.
Configure the Argo CD Application as described in the next section, and check that Argo CD no longer shows drift on these two fields.
Configure Argo CD
Add the following fields to the spec of the Argo CD Application that deploys the vv-agent chart, before the first sync. If the Application already has syncOptions, add RespectIgnoreDifferences=true to the existing list.
1spec:
2 ignoreDifferences:
3 - kind: Secret
4 name: pyxis-api-gateway-agent-auth
5 jsonPointers:
6 - /data/tls.crt
7 - /data/tls.key
8 syncPolicy:
9 syncOptions:
10 - RespectIgnoreDifferences=trueYou need both settings. With ignoreDifferences alone, Argo CD hides the diff but still overwrites these fields on the next sync. ServerSideApply=true doesn't protect these fields.
If the agent already shows as Offline after a sync, add this configuration first, so the next sync doesn't overwrite the certificate again. Then contact Ververica support to bring the agent back online.
Upgrade the Agent
To upgrade the agent, change the chart version in your Git repository. Some versions need steps beyond the chart, such as updating existing workspaces and restarting pods, and your GitOps tool doesn't run them. Before you change the version, read Upgrade the Ververica Agent and run any extra steps for your version after the sync.