Tooling (14%)
Notes on tooling.
Topics
- Manifest Format and Packaging
- State Store Systems (Git and alternatives)
- Reconciliation Engines (ArgoCD, Flux, and alternatives)
- Interoperability with Notifications, Observability, and Continuous Integration Tools
DORA
- DORA metrics are a set of industry standard benchmarks used to measure software delivery and operational performance
- There are 4 DORA metrics
- Deployment Frequency
- Lead time for changes
- Change failure rate
- Time to restore service
Manifest Format and Packaging
- Kubernetes manifests - Raw YAML
- Simplest form. One file or many, applied as-is.
- No templating, so every environment needs a full copy
- Kustomize - Raw YAML with bases and overlays. 1st class support in kubectl
- Template-free: patch plain YAML (
kustomization.yaml,resources,patches,images,configMapGenerator) kubectl apply -k <dir>/kustomize build <dir>- Typical layout:
base/+overlays/dev,overlays/prod
- Template-free: patch plain YAML (
- Helm - The package manager for Kubernetes
- Chart =
Chart.yaml+values.yaml+templates/(Go templating) - Versioned, shareable packages with dependencies. Values are overridden per environment.
- Charts are distributed via Helm repositories (
index.yamlover HTTP) or OCI registries - In GitOps, the agent renders the chart (Argo CD runs
helm template, Flux helm-controller runs the Helm SDK). Argo CD does not keep Helm release history the wayhelm installdoes.
- Chart =
- Others: Jsonnet, CUE, Carvel
ytt,cdk8s - Argo CD Config Management Plugins (CMP) let you plug in any tool that outputs YAML
State Store Systems (Git and alternatives)
- Git
- Canonical state store, and where GitOps gets its name
- Meets the principles: immutable commits, full history, access control and review via PRs
- Hosted on GitHub, GitLab, Bitbucket, Azure Repos, Gitea (these are Git hosts, not alternatives to Git)
- OCI: OCI registries are commonly used to store container images, but can be extended to support other artifact types. OCI registries give you the power to store K8s manifests, Helm charts, and Kustomize overlays, in addition to container images.
- DockerHub is one example of an OCI compliant registry
- Others: GHCR, ECR, ACR, GAR, Harbor, Quay
- Flux:
OCIRepositorysource,flux push artifact. Argo CD: Helm charts from OCI, and OCI sources in newer versions. - Artifacts are pinned by digest (immutable) and can be signed (cosign) and verified by the agent
- Object storage buckets (S3, GCS, Azure Blob, MinIO) - Flux
Bucketsource - Requirements for any state store (from OpenGitOps): immutable versions, version history, access control, auditing
Reconciliation Engines (ArgoCD, Flux, and alternatives)
Argo CD
- CNCF graduated. Pull-based, with a web UI, CLI, and multi-cluster support.
- Components:
argocd-server(API/UI),repo-server(clones and renders manifests),application-controller(reconciles),applicationset-controller, Redis, Dex (SSO) - CRDs
Application: source (repo, path, revision) → destination (cluster, namespace)ApplicationSet: generate many Applications (list, cluster, git directory, matrix generators)AppProject: multi-tenancy boundaries (allowed repos, destinations, resource kinds), RBAC
- Sync options:
automated,selfHeal,prune, sync waves (argocd.argoproj.io/sync-wave), hooks (PreSync,Sync,PostSync,SyncFail) - Status: sync status (Synced / OutOfSync, Git vs. live) and health status (Healthy, Progressing, Degraded, Suspended, Missing)
- Patterns: App of Apps, hub-and-spoke multi-cluster
Flux
- CNCF graduated. A set of independent controllers (the GitOps Toolkit). No UI built in (third-party UIs like Weave GitOps / Capacitor exist).
- Controllers and their CRDs
- source-controller:
GitRepository,OCIRepository,HelmRepository,HelmChart,Bucket - kustomize-controller:
Kustomization(applies plain YAML and Kustomize, with pruning and health checks) - helm-controller:
HelmRelease - notification-controller:
Provider,Alert,Receiver - image-reflector-controller / image-automation-controller:
ImageRepository,ImagePolicy,ImageUpdateAutomation
- source-controller:
- Bootstrapped with
flux bootstrap github|gitlab|git ..., which commits Flux’s own manifests to the repo so Flux manages itself - Native SOPS decryption,
dependsOnordering, service account impersonation for multi-tenancy
Argo CD vs. Flux
| Argo CD | Flux | |
|---|---|---|
| UI | Built-in web UI | None built in |
| Multi-cluster | Hub-and-spoke from one instance | Typically one per cluster |
| Core unit | Application | Kustomization / HelmRelease |
| Helm | Rendered with helm template | Native Helm releases (history, rollback) |
| Image automation | Argo CD Image Updater (add-on) | Built-in controllers |
| Progressive delivery | Argo Rollouts | Flagger |
Alternatives
- Rancher Fleet (large-scale multi-cluster), Jenkins X, Werf, Kluctl, Sveltos, Kargo (promotion across environments, built on Argo CD)
- For infrastructure: Crossplane, Flux tofu-controller (Terraform), Cluster API
Interoperability with Notifications, Observability, and Continuous Integration Tools
- Notifications
- Argo CD Notifications: triggers (e.g.
on-sync-failed,on-health-degraded) + templates → Slack, Teams, email, webhooks, GitHub commit status. Configured inargocd-notifications-cm, subscribed with annotations. - Flux notification-controller:
Provider(where to send: Slack, Teams, GitHub, generic webhook),Alert(which events to send),Receiver(incoming webhooks that trigger reconciliation) - Commit status updates: show deploy state back on the PR/commit in Git
- Argo CD Notifications: triggers (e.g.
- Observability
- Both tools expose Prometheus metrics (sync status, reconcile duration, failures) → Grafana dashboards, alerting
- Kubernetes Events and controller logs. OpenTelemetry for tracing.
- Watch for: OutOfSync too long, Degraded health, reconcile errors, drift events
- Progressive delivery analysis reads the same metrics (Prometheus) to promote or abort
- Continuous Integration
- CI (GitHub Actions, GitLab CI, Jenkins, Tekton, Argo Workflows) builds, tests, scans, and pushes the image
- CI then updates the config repo (bump the tag via commit/PR, e.g.
kustomize edit set image) - or image automation does it instead - CI never needs cluster credentials. Its job ends at Git and the registry.
- Optional CI checks on config PRs:
kubeconform/kubeval,helm lint, policy checks (Conftest/OPA, Kyverno CLI),argocd app diff/flux diffpreviews
Self-check
1. Which Flux controller fetches artifacts from Git, OCI, Helm repos, and buckets?
Answer
source-controller.
2. What is the difference between Argo CD sync status and health status?
Answer
Sync status compares live state to Git (Synced / OutOfSync). Health status reports whether the resources are actually working (Healthy, Progressing, Degraded, …). An app can be Synced but Degraded.
3. Name a state store other than Git and the Flux source that consumes it.
Answer
An OCI registry → OCIRepository. Or S3/GCS/Azure Blob → Bucket.
4. Kustomize vs. Helm in one line each?
Answer
Kustomize: template-free patching of plain YAML with bases and overlays, built into kubectl. Helm: templated, versioned, distributable packages (charts) with values.