GitOps Delivery with Argo CD: Components, Objects, and Utility Deployment
A deployment control plane must continuously compare Git desired state with cluster actual state and reconcile the difference.
Deployment Server (GitOps-based) Management
Section titled “Deployment Server (GitOps-based) Management”GitOps is an approach where the desired deployment state is declared and managed in a config repository, and reconciled continuously so that no drift occurs between environments. You get a convenient web UI (backed by an access-controlled Git-hosted service) for reviewing deployment definitions, and Git becomes the single source of truth, keeping things reliable. Because manifest code is managed via Git commit/push, deployment history and an audit log come for free with no extra setup, and rollback is as safe as syncing to a specific Git revision.
Here’s how it differs from IaC:
| GitOps | IaC | |
|---|---|---|
| Scope | Kubernetes resources | All infrastructure (local, Cloud, Kubernetes) |
| Source of truth | git | can be stored outside git as well |
| Concept | A Kubernetes-specific pattern within IaC | A pattern for managing all infrastructure supported by a tool |
| Tools | Argo CD, Flux | Terraform, Ansible, Chef, etc. |
Argo CD Basics
Section titled “Argo CD Basics”Argo CD is a CD toolkit that supports GitOps-style deployment, acting as a GitOps operator that keeps the contents of a Git repository in sync with a Kubernetes cluster.

The core concepts are:
- Declarative deployment definitions: the desired state to deploy is declared in a Git repository, and if something goes wrong, the deployment environment can self-heal.
- Git-based deployment version control: all deployment-related information exists as Git repository history, enabling rollback to a previous version or upgrade to a new one.
- Automated propagation of changes: once you commit a declarative definition to the Git repository, the actual deployment happens automatically (e.g. Application Auto Sync), reducing human error.
- Self-healing and drift detection: Argo CD continuously checks whether the actual deployed state matches the desired state defined by the user.
Push-Based vs Pull-Based Deployment
Section titled “Push-Based vs Pull-Based Deployment”Push-Based Deployment
- The developer commits and pushes source code
- A CI tool like Jenkins/GitHub Actions runs the test/build pipeline
- The resulting container image is uploaded to the container registry
- The CI/CD tool references the uploaded image and, based on the pipeline run, deploys the application to Kubernetes

Pull-Based Deployment
- (Same) The developer commits/pushes source code
- (Same) A CI tool runs the test/build pipeline
- (Same) The resulting container image is uploaded to the container registry
- A specific part of the Git repository holding manifests (e.g. the container image tag) is updated, then committed and pushed
- From there, Argo CD detects the manifest change and syncs it to Kubernetes (either via pipeline-driven sync, manual deployment via API call, or Application Auto Sync)

Argo CD Core Components
Section titled “Argo CD Core Components”The overall reconciliation cycle:

- API Server: provides APIs for interacting with other external systems, including Application, repository, cluster credential, authentication, and RBAC-related APIs.
- Repository Server: maintains a local cache of the git repository containing k8s manifest files, and is invoked whenever manifest data needs to be fetched from the git repo.
- Application Controller: continuously compares the deployed application’s state against the defined desired state, reporting to the API Server whenever they’re out of sync.
Resources created on a default install:
NAME READY UP-TO-DATE AVAILABLEdeployment.apps/argocd-application-controller 1/1 1 1# dex server for authenticationdeployment.apps/argocd-dex-server 1/1 1 1deployment.apps/argocd-redis 1/1 1 1deployment.apps/argocd-repo-server 1/1 1 1# UIdeployment.apps/argocd-server 1/1 1 1Argo CD Key Objects
Section titled “Argo CD Key Objects”For this project we configured Argo CD on a single Kubernetes cluster and did not use advanced features like Projects/ApplicationSets. We split management into Argo CD Init, for Kubernetes utility management, and Argo CD Apps, for deployment based on application manifests.

- Application: a k8s CRD representing an instance of the application you want to deploy. It defines the git repo containing the K8s manifest of the application to be created, the target k8s server, namespace, and so on.
- App Project: similar in concept to a Kubernetes namespace, used to logically group multiple Apps into a project. You can also restrict which k8s objects can be deployed per project, or use the Sync Scheduling feature to deploy at a specific time.
- Repo Credentials: credentials for accessing a repository. Argo CD stores the git URL in the argocd-cm ConfigMap and uses a secret holding the credential.
- Cluster Credentials: used when Argo CD needs to access a cluster other than the one it’s installed on.
Argo CD Configuration Example for Managing Kubernetes Utility Deployments
Section titled “Argo CD Configuration Example for Managing Kubernetes Utility Deployments”Below is an example of deploying AKS utilities using Helm + Kustomize and Argo CD. Previously, the common approach was managing a Helm chart repository and releasing via helm upgrade, but for this project we switched to a Helm + Kustomize plus Argo CD-based deployment structure.

This is responsible for deploying Argo CD applications to the Kubernetes cluster. It can be triggered manually via GitHub Actions, and uses kustomize and the Argo CD CLI to carry out the deployment. The inputs are:
| Input | Description | Required | Options |
|---|---|---|---|
| cluster | Target Kubernetes cluster | ✅ | aks-az01-dev-platform-01 |
| argocd_app | Target Argo CD application | ✅ | app-routing-system, arc-runner, arc-system, argocd-apps, cert-manager, db-tools, digger, external, platform-apps |
| runner | GitHub Runner to execute on | ✅ | arc-runner-platform |
The workflow steps proceed as follows: check out the GitOps manifests repository → install Kustomize → build resources with Kustomize build → install and log in to the Argo CD CLI → create (upsert) the Argo CD application → sync the Argo CD application.
- name: Checkout GitOps manifests repository uses: actions/checkout@v4.2.2
- name: Setup kustomize uses: imranismail/setup-kustomize@v2
- name: Update Kubernetes Resources with New Docker Image Tag run: | kustomize build --enable-helm ./clusters/${{ inputs.cluster }}/${{ inputs.argocd_app }}/
- name: Set-up Argo CD CLI run: | curl -sSL -o argocd-linux-amd64 https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64 sudo install -m 555 argocd-linux-amd64 /usr/local/bin/argocd rm argocd-linux-amd64
argocd login --grpc-web --insecure --plaintext ${{ vars.ARGOCD_SERVER }} \ --username ${{ secrets.ARGOCD_ADMIN_USER }} \ --password ${{ secrets.ARGOCD_ADMIN_PASS }}
- name: Create Argo CD Application run: | argocd app create ${{ inputs.argocd_app }} --upsert \ --path clusters/${{ inputs.cluster }}/${{ inputs.argocd_app }}/ \ --repo ${{ env.ARGOCD_REPO }} \ --dest-server ${{ env.ARGOCD_DEST_SERVER }} \ --sync-option ServerSideApply=true
- name: Sync Argo CD Application run: | argocd app sync --retry-limit 3 \ ${{ inputs.argocd_app }}The full workflow manifest:
name: Argo CD Init Workflowrun-name: (${{ inputs.cluster }}/${{ inputs.argocd_app }}) Deploy Argo CD Application by @${{ github.actor }}
on: workflow_dispatch: inputs: cluster: description: "Target k8s cluster name" required: true type: choice options: - aks-az01-dev-platform-01 argocd_app: description: "Target argocd applicatoin name" required: true type: choice options: - '=== select ===' - app-routing-system - arc-runner - arc-system - argocd-apps - cert-manager - db-tools - digger - external - platform-apps runner: required: true type: choice options: - arc-runner-platform # - ubuntu-latest
permissions: id-token: write contents: read
env: ARGOCD_REPO: "https://github.com/example-org/platform-argocd-init.git" ARGOCD_DEST_SERVER: "https://kubernetes.default.svc"
jobs: argocd_sync: name: Deploy Argo CD Application runs-on: "${{ inputs.runner }}"
steps:
- name: Checkout GitOps manifests repository uses: actions/checkout@v4.2.2
- name: Setup kustomize uses: imranismail/setup-kustomize@v2
- name: Update Kubernetes Resources with New Docker Image Tag run: | kustomize build --enable-helm ./clusters/${{ inputs.cluster }}/${{ inputs.argocd_app }}/
- name: Set-up Argo CD CLI run: | curl -sSL -o argocd-linux-amd64 https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64 sudo install -m 555 argocd-linux-amd64 /usr/local/bin/argocd rm argocd-linux-amd64
argocd login --grpc-web --insecure --plaintext ${{ vars.ARGOCD_SERVER }} \ --username ${{ secrets.ARGOCD_ADMIN_USER }} \ --password ${{ secrets.ARGOCD_ADMIN_PASS }}
- name: Create Argo CD Application run: | argocd app create ${{ inputs.argocd_app }} --upsert \ --path clusters/${{ inputs.cluster }}/${{ inputs.argocd_app }}/ \ --repo ${{ env.ARGOCD_REPO }} \ --dest-server ${{ env.ARGOCD_DEST_SERVER }} \ --sync-option ServerSideApply=true
- name: Sync Argo CD Application run: | argocd app sync --retry-limit 3 \ ${{ inputs.argocd_app }}As an example run, if you trigger the workflow with the following inputs, the platform-apps application gets deployed to the aks-az01-dev-platform-01 cluster.
- cluster: aks-az01-dev-platform-01
- argocd_app: platform-apps
- runner: arc-runner-platform
Wrapping Up
Section titled “Wrapping Up”Git branch strategy, self-hosted runners, and GitOps deployment are each familiar enough on their own, but in real operations, most of the design challenges come from combining these three into a single flow. The next part covers how we designed the actual application CI/CD pipeline on top of this tool chain, and how we integrated build caching and test automation.
Summary
Section titled “Summary”This article covered Argo CD delivery and the Utility-deployment structure. It completes the DevOps Tool Chain subseries.
Series order
Section titled “Series order”Previous: GitHub Actions Runner Platform: Hosted Runners, VMSS, and ARC