Feature: Deploy the app layer with Argo CD #91

Open
opened 2026-12-04 18:07:11 +01:00 by claude-bot · 0 comments

Why

Today Pulumi pushes everything into the cluster from CI. For the app layer, a pull-based GitOps controller adds:

  • Drift correction: manual changes (kubectl edit) are detected and reverted. Pulumi only notices them on its next run
  • Live view: state and health of every app, diff against git, one-click rollback
  • No cluster credentials in CI for the apps: the cluster pulls its config from git
  • Standard tooling: Pulumi/Terraform for the foundation plus Argo CD for apps is a common enterprise setup

Enterprise practice: GitOps with a pull-based controller; IaC builds the platform, GitOps deploys what runs on it. (Enterprises often run Argo CD as a hub in a separate management cluster. For one homelab cluster, in-cluster Argo CD is enough: if the cluster dies, Pulumi rebuilds it plus Argo CD, and Argo CD redeploys the apps from git.)

Scope

  • Pulumi keeps: 01, 02, the core of 03 (networking, storage, cert-manager), 06-openbao, and installing Argo CD itself
  • Argo CD takes over: 04-apps first as a pilot; 05-monitoring only after the pilot works well
  • Each stack moves over completely or not at all: never two tools managing the same resource

Steps

  • Install Argo CD with Pulumi (Helm chart, pinned version), ingress at argocd.<domain>, admin login via SSO or a strong local password
  • Secrets from OpenBao with the External Secrets Operator (Kubernetes auth, read-only policy per app)
  • Repo layout for app manifests (app-of-apps or ApplicationSet), Gitea repo access via a read-only deploy key
  • Move 04-apps resources to Argo CD: import or recreate them without downtime, then remove them from Pulumi state (pulumi state delete, no destroy)
  • Turn on automated sync with self-heal and prune
  • Remove the 04 deploy workflow, or reduce it to a manifest lint/validation job
  • Runbook: bootstrap after a full cluster rebuild, and how to roll back

Tools

Argo CD, External Secrets Operator, OpenBao, Pulumi.

Done when

  • The 04 apps are deployed by Argo CD from git, and CI holds no cluster credentials for them
  • A manual kubectl edit on one of those apps is reverted automatically
  • A full cluster rebuild (Pulumi 01–03, 06) brings the apps back without manual steps

Portfolio evidence

  • Screenshot of the Argo CD app tree
  • Decision record: what stays in Pulumi and what moves to Argo CD, and why
## Why Today Pulumi pushes everything into the cluster from CI. For the app layer, a pull-based GitOps controller adds: - **Drift correction:** manual changes (`kubectl edit`) are detected and reverted. Pulumi only notices them on its next run - **Live view:** state and health of every app, diff against git, one-click rollback - **No cluster credentials in CI** for the apps: the cluster pulls its config from git - **Standard tooling:** Pulumi/Terraform for the foundation plus Argo CD for apps is a common enterprise setup **Enterprise practice:** GitOps with a pull-based controller; IaC builds the platform, GitOps deploys what runs on it. (Enterprises often run Argo CD as a hub in a separate management cluster. For one homelab cluster, in-cluster Argo CD is enough: if the cluster dies, Pulumi rebuilds it plus Argo CD, and Argo CD redeploys the apps from git.) ## Scope - **Pulumi keeps:** `01`, `02`, the core of `03` (networking, storage, cert-manager), `06-openbao`, and installing Argo CD itself - **Argo CD takes over:** `04-apps` first as a pilot; `05-monitoring` only after the pilot works well - Each stack moves over **completely or not at all**: never two tools managing the same resource ## Steps - [ ] Install Argo CD with Pulumi (Helm chart, pinned version), ingress at `argocd.<domain>`, admin login via SSO or a strong local password - [ ] Secrets from OpenBao with the External Secrets Operator (Kubernetes auth, read-only policy per app) - [ ] Repo layout for app manifests (app-of-apps or ApplicationSet), Gitea repo access via a read-only deploy key - [ ] Move `04-apps` resources to Argo CD: import or recreate them without downtime, then remove them from Pulumi state (`pulumi state delete`, no destroy) - [ ] Turn on automated sync with self-heal and prune - [ ] Remove the `04` deploy workflow, or reduce it to a manifest lint/validation job - [ ] Runbook: bootstrap after a full cluster rebuild, and how to roll back ## Tools Argo CD, External Secrets Operator, OpenBao, Pulumi. ## Done when - The `04` apps are deployed by Argo CD from git, and CI holds no cluster credentials for them - A manual `kubectl edit` on one of those apps is reverted automatically - A full cluster rebuild (Pulumi `01`–`03`, `06`) brings the apps back without manual steps ## Portfolio evidence - [ ] Screenshot of the Argo CD app tree - [ ] Decision record: what stays in Pulumi and what moves to Argo CD, and why
claude-bot Bot added the Kind/Feature label 2026-12-04 18:07:11 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kasun/homelab-infrastructure-as-code#91