Route 1 — Reuse an Existing Local Cluster

Use this route when… You already have a working local Kubernetes cluster (kind / minikube / k3s) and kubectl is already pointed at it. scripts/setup.sh --deploy deploys the full ACE stack into that cluster — no new cluster is created.

1. Confirm Your Cluster Works

kubectl config current-context     # e.g. kind-agentcert, minikube, k3d-...
kubectl get nodes                  # node(s) should be Ready

2. Run the Setup Wizard

./scripts/setup.sh --deploy
⚠ Without --deploy nothing is installed ./scripts/setup.sh alone builds images and exits with All images built successfully! — it never touches your cluster.

When the wizard asks CLUSTER_MODE [auto]:, enter local (accepted values: auto, fresh, local, cloud). The wizard:

  1. Patches .env with Kubernetes service DNS names (graphql.ace.svc.cluster.local, etc.)
  2. Skips kind cluster creation (cluster already exists)
  3. Creates the ace-env Secret from .env
  4. Deploys via Helm by default (k at the deploy prompt applies deploy/k8s/ instead)
  5. Waits for core services to become ready

At the deploy prompt the wizard asks how to apply: Choice [k/H/n]: — Enter selects h (Helm), k is plain kubectl apply, n skips deploying. Helm gives you release tracking (helm history, helm rollback) and upgrades without re-running the full wizard. See Managing services for Helm day-to-day commands.

CLUSTER_MODE=auto also works — it probes your kubeconfig, finds the existing cluster, and skips kind creation. Use local to fail loudly if no cluster is reachable rather than silently creating a kind cluster.

3. Access the Services

kind (with ACE port mappings)

If your existing cluster is a kind cluster created from this repo’s template (deploy/kind/kind-agentcert.yaml, rendered by deploy/kind/render-kind-config.sh), the ACE extraPortMappings are already baked in and services are reachable at the usual localhost ports:

Service URL
AgentCert UI http://localhost:2001
Langfuse http://localhost:4002
Certifier http://localhost:18000/docs
LiteLLM http://localhost:14000
MongoDB localhost:27017

minikube / k3s / other local clusters

NodePort services are on the cluster node’s IP, not localhost. Use kubectl port-forward to map them to your local machine:

# Run in the background (or use separate terminals):
kubectl port-forward -n ace svc/web          2001:2001 &
kubectl port-forward -n ace svc/langfuse-web 4002:3000  &
kubectl port-forward -n ace svc/certifier    18000:8000 &
kubectl port-forward -n ace svc/litellm      14000:14000 &
kubectl port-forward -n ace svc/mongodb      27017:27017 &

Then access the same localhost URLs as above.


4. Verify

kubectl get pods -n ace           # all Running
curl -s -o /dev/null -w "UI  %{http_code}\n" http://localhost:2001/

Open http://localhost:2001 and log in (admin / litmus).


5. Next: Run an Experiment

Setup registers and connects the ace-local chaos infrastructure in this cluster (kubectl get pods -n litmus). Continue with running-an-experiment.md.

Images on non-kind clusters The default build locally answers side-load images into the cluster, which works for kind and k3s only. On any other cluster scripts/prepare-images.sh stops with "no local side-load path"; answer r (registry) at the experiment image-source prompts — [l/r, Enter=l], where l = build locally and r = pull from IMAGE_REGISTRY (Docker Hub when it is empty) — or push the images to a registry the cluster can pull from. Published :latest images may lag this checkout.

Notes

  • Re-running setup — ./scripts/setup.sh --restart reuses saved answers, updates the ace-env Secret, and re-applies the deployment.
  • Port conflicts — if you have existing NodePort services on the same NodePorts (32001, 32400, etc.), edit deploy/k8s/ service manifests to use different NodePorts before applying.

ACE — Agent Certification Engine · Released under the Apache License 2.0.