~/CloudSetup.In

Argo CD

GitOps application.yaml ● stable

Continuously sync Kubernetes cluster state from a Git repository.

01 Overview

Argo CD watches a Git repo of Kubernetes manifests or Helm charts and reconciles the live cluster to match it, so the repo becomes the single source of truth and every change ships through a pull request.

→ official documentation

02 Installation

Pick a platform. Each step is copy-pasteable on its own.

01  Download the CLI binary
curl -sSL -o argocd https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64
02  Make it executable and move it onto PATH
chmod +x argocd
sudo mv argocd /usr/local/bin/
03  Install the server into a cluster
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
04  Verify
argocd version --client
01  Download the CLI binary
curl -sSL -o argocd https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64
02  Make it executable and move it onto PATH
chmod +x argocd
sudo mv argocd /usr/local/bin/
03  Install the server into a cluster
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
04  Verify
argocd version --client
01  Install via Homebrew
brew install argocd
02  Verify
argocd version --client
Note — commands assume sudo privileges and an up-to-date package index. Pin a specific version in production rather than tracking latest.

03 Install script

The steps above bundled into a single idempotent shell script for provisioning boxes unattended.

install-argocd.sh
Ubuntu/Debian target · safe to re-run · exits non-zero on failure
↓ download script

04 Cheatsheet

The commands reached for most often once Argo CD is installed.

CommandWhat it does
argocd login HOSTAuthenticate the CLI against a server
argocd app listList managed applications
argocd app sync my-appForce a sync from Git to cluster
argocd app get my-appShow sync status and diff
argocd app set my-app --sync-policy automatedEnable auto-sync for an app
kubectl -n argocd get podsCheck the health of Argo CD's own pods