Skip to content
ConfigHub for coding agents
Reference / examples/walkthroughs/starter-kustomize-argocd.md Source on GitHub

A Kustomize app that Argo CD deploys, with production behind your approval

Argo CD already deploys your Kustomize app from Git. Move delivery to ConfigHub’s OCI gateway without replacing the running pods, then verify which approved revision Argo CD actually syncs. Try it in a local kind cluster with the real controller before using it on your own app.

Want AI + Argo CD working together in your GitOps repo first (works for both Helm values-*.yaml and Kustomize, read-only on day one)? See the AI for Argo CD repo starter walkthrough and copy-ready .claude/settings.json + AGENTS.md + argocd-with-confighub skill.

1-Screen Claude Code Card: Direct-push vs. Gated-OCI (paste in Claude Code: "Allow 250 orders/min for the holiday sale; I'll approve production myself."):

╭─ ConfigHub · Argo CD Gated-OCI ────────────────────────────────╮
│ ├── Git → Hub   ✓ uploaded + reason  ORDER_LIMIT: 100 → 250    │
│ ├── OCI gate    ⏳ waiting for you   prod stays at 100         │
│ │               └── your gate: cub mini approve BASE/ORDER     │
│ └── Argo CD     ✓ 1:1 cluster sync   zero pod restarts on cut  │
╰────────────────────────────────────────────────────────────────╯

Quick start

You need: the local hub, Docker, kind, kubectl, Git and Python 3. Step 1 makes a local kind cluster with Argo CD.

By handAsk your agent
Connect the appcub mini adopt orders --kube-context kind-orders-argocd --source orders, then approve and cub mini deploy-from-hub (step 4)"Set up the orders repository so that every change to production waits for my approval, with a reason kept for each value, and have Argo CD deploy production from there."
Change a settingCommit the change, then cub mini upload orders --component orders --change-desc "The holiday sale needs 250 orders a minute""Allow 250 orders a minute; I'll approve production myself."
Approve productioncub mini waiting, then cub mini approve BASE/ORDER (step 6)You approve it yourself.
UndoRevert the commit, then cub mini upload orders --component orders --change-desc "The sale is over" and approve it (step 7)"Undo the order limit change; production should allow 100 again."

Argo CD keeps deploying, and only what you approve reaches the cluster, with no pod restarted.

Without ConfigHub: your agent edits the Kustomize files and commits them with Git, and Argo CD deploys whatever reaches the branch it watches, production included.

Deeper dive

The rest of this page is the full version: every command, a local cluster with the real Argo CD, the move to your team's shared hub, what an agent leaves to you, and how this was tested.

Show the full walkthrough

Human

What you need

An unpacked confighub mini package (install the local hub), Docker, kind, kubectl, Git and Python 3. The local hub is ConfigHub made small enough to run on your computer: a hub, which keeps configuration with every change, who made it and why. For step 8, a sign-in to your organization's shared hub, such as a shared hub on confighub.com.

Steps

  1. Start a hub of your own; it becomes cub's current context. CUB_MINI_STARTERS=on switches starters on: a starter is a short file that gives one kind of app its usual settings, each with a reason, and the first cub mini adopt brings the package's starters into the hub, where they wait for your approval. Then make a kind cluster with Argo CD, wired to the hub; it takes about two minutes. The shim folder lets the cluster reach the hub on OrbStack, and changes nothing elsewhere.
    export MINI=/absolute/path/to/unpacked-confighub-mini
    export PATH="$MINI/bin:$PATH" CUB_MINI_STARTERS=on
    "$MINI/bin/confighub-mini-app" mini install-plugin "$HOME/.confighub"
    cub mini install --name orders --use; export LOCAL_HUB=$(cub context get -o jq=.name)
    PATH="$MINI/examples/live-state/shim:$PATH" cub cluster up orders-argocd --controller argo --no-ports > cluster-up.log; export KUBECONFIG="$HOME/.confighub/clusters/orders-argocd.kubeconfig"
  2. Make the app, a Kustomize repository: a base with a ConfigMap and a Deployment, a staging overlay with debug logging, and a production overlay with two replicas. git-serve.py serves the repository to the cluster, as your Git host would.
    mkdir -p ~/starter-example/orders/base ~/starter-example/orders/overlays/staging ~/starter-example/orders/overlays/production; cd ~/starter-example
    printf 'resources: [app.yaml]\n' > orders/base/kustomization.yaml
    cat > orders/base/app.yaml <<'EOF'
    {"apiVersion": "v1", "kind": "ConfigMap", "metadata": {"name": "orders-config"}, "data": {"LOG_LEVEL": "info", "ORDER_LIMIT": "100"}}
    ---
    {"apiVersion": "apps/v1", "kind": "Deployment", "metadata": {"name": "orders"}, "spec": {"replicas": 1, "selector": {"matchLabels": {"app": "orders"}},
     "template": {"metadata": {"labels": {"app": "orders"}}, "spec": {"containers": [{"name": "orders", "image": "nginx:1.27-alpine", "envFrom": [{"configMapRef": {"name": "orders-config"}}]}]}}}}
    EOF
    printf 'resources: [../../base]\nnamespace: orders-staging\npatches:\n- patch: %s\n' "'{\"apiVersion\": \"v1\", \"kind\": \"ConfigMap\", \"metadata\": {\"name\": \"orders-config\"}, \"data\": {\"LOG_LEVEL\": \"debug\"}}'" > orders/overlays/staging/kustomization.yaml
    printf 'resources: [../../base]\nnamespace: orders\nreplicas: [{name: orders, count: 2}]\n' > orders/overlays/production/kustomization.yaml
    git -C orders init -q -b main; git -C orders add .; git -C orders -c user.name=Kofi -c user.email=kofi@example.invalid commit -qm "The orders service"
    cat > git-serve.py <<'EOF'
    import http.server, os, subprocess, sys
    class Git(http.server.BaseHTTPRequestHandler):
        def do_GET(self):
            path, _, query = self.path.partition("?"); body = self.rfile.read(int(self.headers.get("Content-Length") or 0))
            env = dict(os.environ, GIT_PROJECT_ROOT=sys.argv[1], GIT_HTTP_EXPORT_ALL="1", PATH_INFO=path, QUERY_STRING=query, REQUEST_METHOD=self.command,
                       CONTENT_TYPE=self.headers.get("Content-Type", ""), CONTENT_LENGTH=str(len(body)), GIT_PROTOCOL=self.headers.get("Git-Protocol", ""))
            head, _, out = subprocess.run(["git", "http-backend"], input=body, env=env, capture_output=True).stdout.partition(b"\r\n\r\n")
            headers = [line.split(":", 1) for line in head.decode().splitlines() if ":" in line]
            self.send_response(int(dict(headers).get("Status", "200").split()[0]))
            [self.send_header(name, value.strip()) for name, value in headers]
            self.send_header("Content-Length", str(len(out))); self.end_headers(); self.wfile.write(out)
        do_POST, log_message = do_GET, lambda self, *args: None
    http.server.ThreadingHTTPServer(("127.0.0.1", int(sys.argv[2])), Git).serve_forever()
    EOF
    git clone -q --bare orders git/orders.git; git -C orders remote add origin "$PWD/git/orders.git"
    nohup python3 git-serve.py "$PWD/git" 28411 > /dev/null 2>&1 &
  3. Have Argo CD deploy production from Git, as it does today. An Application is Argo CD's record of what to deploy and from where.
    kubectl apply -f - <<'EOF'
    {"apiVersion": "argoproj.io/v1alpha1", "kind": "Application", "metadata": {"name": "orders", "namespace": "argocd"},
     "spec": {"project": "default", "source": {"repoURL": "http://host.docker.internal:28411/orders.git", "targetRevision": "main", "path": "overlays/production"},
      "destination": {"server": "https://kubernetes.default.svc", "namespace": "orders"}, "syncPolicy": {"automated": {"selfHeal": true}, "syncOptions": ["CreateNamespace=true"]}}}
    EOF
    kubectl -n orders wait --for=create deployment/orders --timeout=120s > /dev/null; kubectl -n orders rollout status deployment/orders --timeout=120s
  4. Deploy it from the hub. cub mini adopt connects the repository with the Argo CD starter. The hub keeps three copies: orders-base, shared by the other two; orders-staging; and orders-live, for production. The starter adds three Argo CD annotations, each with its reason. You approve production, and cub mini deploy-from-hub points the same Application at the hub, so that only what you approve reaches the cluster, with no pod restarted.
    cub mini adopt orders --kube-context kind-orders-argocd --source orders > adopt.log; grep -m1 '^Starter: kustomize' adopt.log
    cub variant approve starters-approved --all --note "Read them"
    cub mini approve orders-live/connect --yes --note "Server-side apply suits the orders service"
    cub mini deploy-from-hub orders --variant live --repo orders --kube-context kind-orders-argocd --change-order orders-live/connect
    Starter: kustomize-argocd (version 1, kustomize-argocd.yaml): A Kustomize repository that an Argo CD Application deploys from Git.
    Recorded pass Approval attestation ID in starters-approved, covering 8 revision(s)
      It deploys 2 objects; the hub's copy holds the same, and its pod templates match what runs.
  5. Update it. Change the base in your repository, commit as usual, and propose it with its reason. Staging takes it at once; production waits under a change order, the hub's request to change production.
    sed -i.bak 's/"ORDER_LIMIT": "100"/"ORDER_LIMIT": "250"/' orders/base/app.yaml; rm orders/base/app.yaml.bak; git -C orders -c user.name=Kofi -c user.email=kofi@example.invalid commit -qam "Allow 250 orders a minute"
    cub mini upload orders --component orders --change-desc "The holiday sale needs 250 orders a minute"
  6. Approve the update. The hub publishes it as a release, and Argo CD applies it; the last line is what the cluster now runs.
    orders=$(cub mini waiting --commands | sed -nE 's|^[[:space:]]*cub mini approve (orders-base/upload-[A-Za-z0-9-]+)([[:space:]].*)?$|\1|p; s|^[[:space:]]*cub variant approve [^[:space:]]+ --change-order (orders-base/upload-[A-Za-z0-9-]+)([[:space:]].*)?$|\1|p'); count=$(printf '%s\n' "$orders" | awk 'NF {n++} END {print n+0}'); test "$count" -eq 1 && cub mini approve "$orders" --yes --note "Holiday sale"
    kubectl -n orders get configmap orders-config -o jsonpath='{.data.ORDER_LIMIT}{"\n"}'
        ConfigMap/orders-config/data.ORDER_LIMIT: 100 → 250
    250
  7. Undo the update. For Kubernetes manifests, cub mini rollback cannot set single values back, so undo it as your team would in Git: revert the commit, propose the revert, and approve it.
    git -C orders -c user.name=Kofi -c user.email=kofi@example.invalid revert --no-edit HEAD > /dev/null
    cub mini upload orders --component orders --change-desc "The sale is over" > /dev/null; orders=$(cub mini waiting --commands | sed -nE 's|^[[:space:]]*cub mini approve (orders-base/upload-[A-Za-z0-9-]+)([[:space:]].*)?$|\1|p; s|^[[:space:]]*cub variant approve [^[:space:]]+ --change-order (orders-base/upload-[A-Za-z0-9-]+)([[:space:]].*)?$|\1|p'); count=$(printf '%s\n' "$orders" | awk 'NF {n++} END {print n+0}'); test "$count" -eq 1 && cub mini approve "$orders" --yes --note "Back to 100" > /dev/null
    kubectl -n orders get configmap orders-config -o jsonpath='{.data.ORDER_LIMIT}{"\n"}'
    100
  8. Move it to your team's shared hub. Sign in once (auth login opens a browser). The app's name there, TEAM_APP, starts with your user name, so it does not clash with a teammate's.
    cub context create shared --server https://hub.confighub.com
    cub --context shared auth login
    export PREFIX="${WALKTHROUGH_PREFIX:-$USER-}"
    export TEAM_APP="${PREFIX}orders"

    The copy keeps every value and its reason, and production there still waits for your approval.

    cub --context shared mini copy --from-context "$LOCAL_HUB" orders --name "$TEAM_APP"

    Then check that production in the shared hub waits for you, without changing anything there: the app takes a change only through its change workflow (the first true), and that workflow's production stage needs an approval (the second).

    cub --context shared component get "$TEAM_APP" -o jq=.Component.RequireChangeWorkflow
    cub --context shared changeworkflow get --space workflows "$TEAM_APP-live-approval" -o jq='.ChangeWorkflow.Stages[] | select(.Name == "live") | .Prerequisites | length > 0'
    true
    true
  9. Delete the app: from the cluster, with everything Argo CD deployed for it, and from your own hub. The cluster stays: other apps can run there. If deleting the Application fails, stop there.
    kubectl --context kind-orders-argocd -n argocd patch application orders --type merge -p '{"metadata": {"finalizers": ["resources-finalizer.argocd.argoproj.io"]}}' > /dev/null && kubectl --context kind-orders-argocd -n argocd delete application orders --wait=true
    cub component delete --recursive --detach orders

Undo it

In the shared hub: cub --context shared component delete --recursive --detach "$TEAM_APP" and cub --context shared changeworkflow delete --space workflows "$TEAM_APP-live-approval". Here: cub mini uninstall --name orders --delete-data and rm -rf ~/starter-example. When you are done with the walkthrough, and only then, remove its own cluster and Git server: cub cluster down orders-argocd and pkill -f "git-serve.py $PWD/git".

What you have now

Your team's shared hub holds the orders service's base, staging and production manifests, each value with who set it and why, and production there changes only when a person approves. Your repository is as you left it, with your own commits. The GitOps over OCI guide explains the delivery in full; see also approvals on a shared hub.

Agent

You are doing this for a person, in their folder, with step 1's settings. Each request is one task; run the Human step of the same name.

  • deploy, "Set up the orders repository so that every change to production waits for my approval, with a reason kept for each value, and have Argo CD deploy production from there": run step 4's adopt alone. Then give the person the starters approve, cub variant approve starters-approved --all --note "Read them", and the approve and deploy-from-hub commands, to run themselves.
  • update, "Allow 250 orders a minute; I'll approve production": edit and commit as in step 5, run its upload with their reason, and give them the exact order ID it printed; they review the diff and use cub mini approve BASE/ORDER.
  • undo, "Undo the order limit change": revert and upload as in step 7, and give them the exact order ID printed for that change; they review its diff and use cub mini approve BASE/ORDER.
  • move, "Move orders to our team's shared hub": run step 8 with their context. Then check that production there waits for approval, by reading only, as the later step does; never make a change or a change order there to test it, and say so plainly if it does not.
  • delete, "Delete the orders app": run step 9 only. Never delete the cluster to remove one app; if deleting the Application fails, stop and say so.

Never approve or refuse a change to production, run deploy-from-hub, or edit the cluster with kubectl yourself; never push to the repository's remote; never put a secret in a manifest. You are done when the task's check below passes.

Testing

Each task starts where the Human steps before it leave off, in the same folder for every arm. Arm a has the repository, ordinary tools and no hub or cluster, and is judged by the agent-check-a lines on the repository's files; deploy, move and delete do not apply to it.

Set up the orders repository so that every change to production waits for my approval, with a reason kept for each value, and have Argo CD deploy production from there. The cluster's context is kind-orders-argocd.

Allow 250 orders a minute; I'll approve production myself.

Undo the order limit change; production should allow 100 again.

Move orders to our team's shared hub, which you reach as the context shared; the app's name there is in TEAM_APP, and production there must wait for my approval.

Delete the orders app, from the cluster and from this computer's hub.

This proves: the exact approved revision was delivered and is running, under a real Argo CD on a local kind cluster; the hub publishes each approved revision as a release, Argo CD pulls it, and the cluster's ConfigMap shows the value. The move stores the app in a shared hub on confighub.com, with production there waiting for approval. The checks above can be run by hand, in ~/starter-example, with step 1's settings. The next step it aims to win is keeping the starter on, so that the next Argo CD app gets the same settings and the same wait for approval.

Test results

Results, 14 November 2026, confighub mini 0.11.1-mini.3. Figures from this page's own test runs, shown here for whoever checks the page; they are not a promise.

  • Scripted run (on confighub mini 0.11.1-mini.3, 14 November 2026): passed, 184 seconds for the steps, within the page's budget of 550; each of the three planted faults (a changed quoted line, a budget of zero seconds, a check that holds on a fresh hub) was caught.
  • Scripted run (on confighub mini 0.11.1-mini.7, 14 November 2026): passed, 179 seconds for the steps, within the page's budget of 550; each of the three planted faults (a changed quoted line, a budget of zero seconds, a check that holds on a fresh hub) was caught.
  • Environment, published confighub mini 0.11.1-mini.3 with its own plugin (0.86.0): A local hub and a real Argo CD on a local kind cluster; a shared hub on confighub.com (the Kubara organization) for the move to a shared hub. Approvals were scripted: the test script ran the person's approve and deploy-from-hub commands. After each run the runner removed the hubs it started and everything it made in the shared hub.
  • Agent runs (on confighub mini 0.11.1-mini.3, 14 November 2026): a pilot, 3 runs per arm on each of claude-sonnet-5-5, claude-opus-5-5. Arms: a is ordinary tools only; b is the Claude plugin, the local hub and this page as reading; c is the Claude plugin and the local hub, without this page.
ArmModelChecks passedMedian secondsMedian costCommands left for the person (median)
aclaude-opus-5-56/6 (+9 not applicable)213.8$0.8320
bclaude-opus-5-515/15153.1$0.5177
cclaude-opus-5-515/15197.9$0.8793
aclaude-sonnet-5-56/6 (+9 not applicable)64.0$0.1870
bclaude-sonnet-5-515/15108.5$0.2385
cclaude-sonnet-5-515/15157.0$0.3723

No agent approved or refused a change to production.

Simulated persons, not people: 10 per run, each a claude-haiku-5-5 model playing one of ten fixed personas, reading only what a person would see. The next step they were offered: "Production waited for your yes because the starter set this app up that way, with a reason for each setting. Your next Argo CD app can start the same way; want the starter kept on for it?"

The Claude plugin offers it once, after the answer at whose end it showed the moment the offer names ("waits for your approval"). Offered is the share of persons it was shown to; want it now and later are over them.

ArmModelPersonsOfferedNoticedWant the next step nowLaterIn the way
aclaude-opus-5-5300%100%n/an/a93%
bclaude-opus-5-5300%100%n/an/a97%
cclaude-opus-5-5300%100%n/an/a93%
aclaude-sonnet-5-5300%100%n/an/a97%
bclaude-sonnet-5-5300%100%n/an/a90%
cclaude-sonnet-5-5300%100%n/an/a93%
  • Agent runs (on confighub mini 0.11.1-mini.2, 13 November 2026): 20 runs per arm on each of claude-opus-5-5, claude-sonnet-5-5. Arms: b is the Claude plugin, the local hub and this page as reading; c is the Claude plugin and the local hub, without this page.
ArmModelChecks passedMedian secondsMedian costCommands left for the person (median)
bclaude-opus-5-5100/100156.4$0.5317
cclaude-opus-5-5100/100198.9$0.8143
bclaude-sonnet-5-5100/100111.7$0.2496
cclaude-sonnet-5-5100/100152.4$0.4133

No agent approved or refused a change to production.

Simulated persons, not people: 10 per run, each a claude-haiku-5-5 model playing one of ten fixed personas, reading only what a person would see. The next step they were offered: "Production waited for your yes because the starter set this app up that way, with a reason for each setting. Your next Argo CD app can start the same way; want the starter kept on for it?"

The Claude plugin offers it once, after the answer at whose end it showed the moment the offer names ("waits for your approval"). Offered is the share of persons it was shown to; want it now and later are over them.

ArmModelPersonsOfferedNoticedWant the next step nowLaterIn the way
bclaude-opus-5-52000%100%n/an/a95%
cclaude-opus-5-52000%100%n/an/a78%
bclaude-sonnet-5-52000%100%n/an/a85%
cclaude-sonnet-5-52000%100%n/an/a94%

Results, 14 November 2026, confighub mini 0.11.1-mini.7. Figures from this page's own test runs, shown here for whoever checks the page; they are not a promise.

  • Environment: checksum-verified published mini.7 for macOS arm64 and the Claude plugin it ships, with Claude Code on this computer. These are agent runs; the earlier scripted runs and planted faults are labelled separately.
  • Agent runs: a pilot, 3 runs per arm on each of claude-sonnet-5-5. Arms: a is ordinary tools only; b is the Claude plugin, the local hub and this page as reading.
ArmModelChecks passedMedian secondsMedian costCommands left for the person (median)
aclaude-sonnet-5-56/6 (+9 not applicable)63.9$0.1930
bclaude-sonnet-5-515/1594.2$0.2624

No agent approved or refused a change to production.

Simulated persons, not people: 5 per run, each a claude-haiku-5-5 model playing one of ten fixed personas, reading only what a person would see. The next step they were offered: "Production waited for your yes because the starter set this app up that way, with a reason for each setting. Your next Argo CD app can start the same way; want the starter kept on for it?" It offers more of the tier the person has, not a step up.

The Claude plugin offers it once, after the answer at whose end it showed the moment the offer names ("waits for your approval"). Offered is the share of persons it was shown to; want it now and later are over them.

ArmModelPersonsOfferedNoticedWant the next step nowLaterIn the way
aclaude-sonnet-5-5150%100%n/an/a100%
bclaude-sonnet-5-5150%100%n/an/a100%

The proposed paid-hub offer waits for evidence that Argo CD delivers production from the shared hub. That moment was absent from all 80 kept mini.2 sessions in arms b and c. A persons-only rejudge of one kept session per arm showed the paid offer to zero of ten simulated readers. The copy and approval check do not establish a production cutover. The wording has no conversion result.