Argo CD

Deploy Argo CD for GitOps delivery to Kubernetes clusters you control. Covers topology, SSO, AppProject boundaries, high availability, export backups and upgrade planning.

On this page

Where Argo CD fits in Kubernetes delivery

Argo CD is a declarative GitOps continuous delivery tool for Kubernetes that applies the state Git describes to your clusters. It suits teams that want a reviewed Git change to be the only accepted path to production.

The project is licensed under Apache-2.0 and belongs to the Argo project, which the CNCF lists as Graduated since December 6, 2022. The repository page mentions no paid or enterprise edition. The application controller compares live state with desired state in Git, marks drift as OutOfSync and can correct it automatically or wait for an operator.

Argo CD does not build images or run tests. A CI system produces artifacts and updates manifests, Helm values or Kustomize overlays in Git, and Argo CD applies what Git describes. Once it is in place, permission to merge into a deployment repository is permission to change a cluster. Branch protection and path ownership become production change controls.

Automated sync with self-heal suits environments where Git is the only accepted change path. For production, consider starting with manual sync or automated sync without pruning, then tighten as teams gain confidence. The installation guide lists the non-HA manifests as evaluation only and recommends the ha/install.yaml manifests for production.

What runs inside an Argo CD installation

Most state lives in Kubernetes objects, which shapes scaling and recovery.

API server

Serves the UI, CLI and API, manages repository and cluster credentials, enforces RBAC and receives Git webhooks. It is stateless, so you scale it by adding replicas. Three or more replicas allow zero-downtime upgrades.

Repository server

Caches Git repositories and renders manifests with Helm, Kustomize or plain YAML. It has no Kubernetes privileges and stores no Git or service credentials. Large repositories and heavily templated charts drive its memory use, so it is the first component to watch.

Application controller

Compares live and desired state, runs syncs and hooks, and needs cluster-wide read access to every managed cluster. It runs as a StatefulSet, and its default status and operation processors are 20 and 10. It is the component you shard at scale.

ApplicationSet controller

Generates Applications from templates using list, cluster, Git and matrix generators. It lets one template cover many clusters or directories, which keeps multi-cluster onboarding repeatable and reviewable in Git instead of hand-made Application objects.

Redis

A cache for rendered manifests and state. Argo CD is mostly stateless, its data lives in Kubernetes objects backed by etcd, and Redis can be rebuilt without service disruption. Redis traffic is unencrypted by default, so configure TLS for it explicitly.

Dex and notifications

Dex is an optional identity broker for providers that do not speak OIDC directly, such as SAML or LDAP sources. Notifications sends sync and health events to services such as Slack or email, which gives application teams drift and failure signals.

Choose a multi-cluster Argo CD control topology

One instance manages many clusters, each registered as a cluster secret. Operators get one place for visibility and policy. That instance also holds credentials for every cluster, so its namespace and administrators need the strictest controls in the estate. When it deploys only to external clusters, the namespace-install.yaml manifest gives it namespace-level privileges with no cluster roles. That manifest does not include CRDs, so install them separately with server-side apply.

Define Argo CD AppProject boundaries before onboarding teams

AppProjects decide what each team may deploy, from where and to where. The built-in default project permits any repository, any cluster and all resource kinds.

ControlWhat it restrictsPractice
Default projectThe default AppProject is created automatically and initially allows any source repository, any destination and any cluster-scoped kind.It can be modified but not deleted, so tighten it early and place each team in its own project instead of leaving Applications in default.
Source repositoriesWhich repositories a project's Applications may use.List specific repositories per team, and scope repository credentials to projects. Limit push access to admin-level project repositories.
DestinationsWhich clusters and namespaces Applications may target.Give each team its own namespaces. Never let a team project deploy into the Argo CD namespace, which grants admin access.
Resource kindsCluster-scoped kinds are limited with an allow list, clusterResourceWhitelist. Namespaced kinds are limited with a deny list, namespaceResourceBlacklist.Allow no cluster-scoped kinds by default and add only what a team needs. Deny namespaced kinds that teams have no reason to create.
Project rolesPermissions for groups and automation tokens. Role policy names follow proj:<project-name>:<role-name>.Give CI a JWT token that can sync one application without changing its source or destination. The CLI creates tokens without expiration by default, so set an expiry and revoke tokens you no longer need.

Connect Argo CD SSO with Okta or Keycloak and limit what it can change

Connect Argo CD directly to an OIDC provider such as Okta or Keycloak, or use the bundled Dex when you need to broker SAML, LDAP or GitHub organizations. Direct OIDC is set in oidc.config with the callback endpoint /auth/callback. The default requested scopes are openid, profile, email and groups, and enablePKCEAuthentication defaults to false. Details are in the user management guide.

Map group claims to roles in argocd-rbac-cm. Built-in roles are role:readonly and role:admin, and policy.csv lines take the form p, subject, resource, action, object, effect. A matching deny wins regardless of order. The policy.default role applies to every authenticated user as a floor that a deny rule cannot block, so set it to the most restrictive workable role. Check policy files with argocd admin settings rbac validate and argocd admin settings rbac can. Set admin.enabled to false in argocd-cm once SSO works.

By default, the application controller and API server use a cluster-admin level ClusterRole. Argo CD needs cluster-wide read access, but write access can be narrowed by editing those ClusterRoles, or argocd-manager-role on external clusters. The security considerations page also covers the unauthenticated /swagger-ui endpoint, which server.disable.swagger.ui set to true turns off. Disable configuration management tools you do not use.

Keep secrets out of rendered manifests. Populate them on the destination cluster, for example with an external secrets operator, instead of injecting them during manifest generation. A user with write access to a trusted repository could craft Helm charts or kustomizations that read files outside the repository, which is another reason to protect deployment repositories. Set a minimum TLS version with the --tlsminversion 1.2 flag on the API server, and configure TLS for Redis.

Run Argo CD highly available and shard the application controller

The high availability guide describes an HA install with more containers and Redis in HA mode. It needs at least three nodes because of pod anti-affinity rules and does not support IPv6-only clusters. Run three or more API server replicas and set ARGOCD_API_SERVER_REPLICAS to the same number for zero-downtime upgrades.

Dex stores data in memory by default, which is not persistent and has no HA. Multiple Dex replicas can therefore disagree, and group membership is refreshed only at authentication time. This favors direct OIDC in larger installations. Postgres, Kubernetes and etcd storage types are persistent and HA if you do need Dex.

Scale the repository server horizontally and cap concurrent rendering with its --parallelismlimit flag to avoid OOM kills. ARGOCD_EXEC_TIMEOUT defaults to 90 seconds and the repository cache expires after 24 hours. For many clusters, shard the application controller by raising its replicas and setting ARGOCD_CONTROLLER_REPLICAS to match. Set the algorithm with controller.sharding.algorithm in argocd-cmd-params-cm. The options are legacy, round-robin (alpha) and consistent-hashing (alpha). A cluster secret can pin a shard with its shard field.

In large monorepos, the argocd.argoproj.io/manifest-generate-paths annotation limits which Applications a commit refreshes. It takes a semicolon-separated list of relative, absolute or glob paths. If no changed files match, the cache stays valid for the new commit, and this works without webhooks since v2.11.

Plan Argo CD backup, restore and upgrade

Projects, cluster secrets, repository credentials, RBAC and settings live as Kubernetes objects. Export them on a schedule with argocd admin export, run from the image at the version you operate, for example quay.io/argoproj/argocd:$VERSION. Pass -n if Argo CD is not in the default namespace, because the export does not fail in the wrong namespace. Add --strip-status to omit resource status such as sync history. Protect the output file as a secret, and check its contents after each run.

Argo CD operating ownership

The platform team runs Argo CD. Application teams own what their repositories declare. Security owns the boundaries between them.

Platform team

  • Monitor sync failures, reconciliation time and repository server memory.
  • Stay within the three supported minor versions.
  • Run scheduled exports and restore rehearsals.

Application teams

  • Own manifests, values and sync policies.
  • Resolve drift and failed hooks.
  • Request project changes through review.

Security

  • Review AppProject destinations, kinds and roles.
  • Rotate cluster and repository credentials.
  • Approve changes to Argo CD RBAC and ClusterRoles.

Change record

  • Keep Argo CD configuration in Git.
  • Record registered clusters and owners.
  • Log upgrades and the checks run.

Argo CD install, SSO, backup and upgrade questions

Which manifest should I use for an argocd install in production?

Use the HA manifests, ha/install.yaml or ha/namespace-install.yaml, because the non-HA manifests are for evaluation and testing only. Pick install.yaml when Argo CD deploys into its own cluster. Pick namespace-install.yaml when it deploys only to external clusters, and install the CRDs separately. A community-maintained Helm chart and remote Kustomize references are also available.

How do I set up Argo CD SSO with Okta or Keycloak OIDC?

Configure oidc.config with your provider and the /auth/callback endpoint. Okta and Keycloak both work as existing OIDC providers. Use direct OIDC when your provider returns group claims, and use Dex to broker SAML, LDAP or GitHub organizations. Test group mapping and logout with ordinary accounts either way.

How do I disable the Argo CD admin user?

The built-in admin user is meant for initial setup. After SSO works and a group maps to role:admin, set admin.enabled to false in argocd-cm. Confirm that an SSO administrator can still sign in and change settings before you rely on the change. Keep that recovery check in your upgrade routine.

How do I write an Argo CD RBAC policy.csv?

Each line has the form p, subject, resource, action, object, effect, and groups map to roles through the scopes setting. A matching deny wins regardless of order. Set policy.default to the lowest role you can accept, because it applies to every authenticated user and a deny rule cannot block it. Validate the file with argocd admin settings rbac validate before applying it.

How do I run an argocd admin export backup?

Run argocd admin export from the image that matches your running version and write the output to a file. Pass -n when Argo CD is not in the default namespace, because the command does not fail in the wrong namespace. Treat the file as a secret. Restore by piping it into argocd admin import - on the same version.

How should I plan an Argo CD upgrade?

Read the notes for each minor version you cross, and back up settings before a major version. Apply the full manifest with server-side apply and --force-conflicts. Only the three most recent minors get patches, so schedule upgrades about every few months. Check the tested Kubernetes versions for the target release first.

How does Argo CD application controller sharding work for multi cluster setups?

Raise the controller replicas and set ARGOCD_CONTROLLER_REPLICAS to the same number. The controller runs as a StatefulSet, and clusters are distributed across shards. Choose the algorithm with controller.sharding.algorithm. The legacy option is UID-based and non-uniform, while round-robin and consistent-hashing are alpha. A cluster secret can pin a shard through its shard field.

What DeployOpen delivers for Argo CD and what you receive at handover

DeployOpen designs the control topology with your platform team, installs Argo CD in HA form inside your clusters, integrates SSO and RBAC, defines AppProjects for the first teams, narrows cluster privileges and sets up a secrets pattern that keeps plaintext out of Git.

We set up export-based backups, rehearse a restore, plan upgrades within the supported window, document the platform and can provide ongoing support. The Argo CD documentation remains the reference for every setting named on this page.

Handover includes the topology decision, configuration in Git, the RBAC and group mapping, an AppProject template for new teams, the cluster inventory with credential rotation plan, the latest restore result and the current version with its support status.

Sources and further reading

More on Argo CD

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.