liveBook · Manning

ArgoCD

As explained in Machine Learning Platform Engineering

Argo CD is a declarative continuous delivery tool that synchronizes Kubernetes application resources with desired-state definitions stored in a version-controlled repository.

Argo CD is a continuous delivery tool for Kubernetes that keeps deployed applications aligned with declarative manifests stored in Git. In an ML deployment workflow, CI updates a Helm chart and image tag, while Argo CD deploys and monitors the resulting application. section 3.4 section 3.4.2

A practical Argo CD setup connects a repository, chart, cluster, and namespace:

  • Add the Git repository, using HTTPS authentication and the required credentials. section 3.4.2
  • Create an application that points to the repository URL, target revision, and path containing the Helm chart. section 3.4.2
  • Select the Kubernetes cluster and namespace, create the namespace if necessary, and synchronize the application. section 3.4.2

Detecting and correcting configuration drift

After deployment, changing the FastAPI service from ClusterIP to LoadBalancer makes the application out of sync. Argo CD displays the difference between the live and expected manifests and can restore the Git-defined configuration, preserving Git as the single source of truth. section 3.4.2

Figure 3.14 Argo CD ensures that the manifests in Git and the ones deployed in K8s match.
A screen shot of a cartoon

AI-generated content may be incorrect.

Use the manifest comparison figure to inspect how Argo CD matches Git definitions with resources deployed in Kubernetes. section 3.4.2

How Machine Learning Platform Engineering covers it

How deep it goes
Explains repository setup, application configuration, synchronization, drift detection, and rollback without detailing Argo CD internals.
Examples
Uses a FastAPI service, the hello-joker application, port forwarding, and a ClusterIP-to-LoadBalancer drift test.
What it assumes
Assumes a Git repository containing a Helm chart and access to a Kubernetes cluster and namespace.
What you can do after
Operate/configure Argo CD to deploy Helm charts, inspect synchronization status, and detect configuration drift.
How it connects
Connects continuous delivery with Git, Kubernetes, Helm charts, CI pipelines, and declarative configuration.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning Platform Engineering. The section links point to the parts of the book it draws on.