Skip to content

Install on your cluster

Install the agent factory on a Kubernetes cluster your platform team runs, with your own identity provider, Secrets tooling and GitOps controller. To try the loop on a laptop in 15 minutes, run the quickstart. To start a Week-1 pilot on private repositories without provisioning an external database first, start with Tier-1 Pilot (charts/agent-factory/values-pilot.example.yaml).

An install is one factory (one namespace, two GitHub Apps, one database and the repositories it serves) running the factory, the broker and the run-controller beside the model gateway. maku install --print writes plain manifests for review; apply them with Helm, Flux or Argo CD.

    flowchart LR
  crds["1. CRDs\nagent-factory-crds &\nagentgateway CRDs"] --> secrets["2. Secrets\nsecrets/ or\nExternalSecrets"]
  secrets --> umbrella["3. Umbrella chart\nagent-factory\n(production seams)"]
  umbrella --> preflight["4. Preflight\nhelm test /\nmaku preflight"]
  preflight --> repo["5. First repository\nFactory, Repository\n& ruleset"]
  

What you bring

Each seam is something your cluster or your organization provides. The chart’s defaults are production: every render checks the seams of every component you turn on, and its render fails naming each one you have not set, with its key and its doc (from the demo to production).

SeamRequiredYou bringThe chart’s defaultWithout it
Kubernetes 1.30 or later, with a CNI that enforces NetworkPolicyyesthe clustermaku.networkPolicies.mode: cilium; kubernetes for any other CNIthe run-controller’s preflight refuses runs
A sandbox RuntimeClassyesgVisor or Kata on the nodes (sandbox nodes)gvisorthe preflight refuses runs
Postgres 16 or lateryesTier-1 Pilot: hardened bundled Postgres (database.mode: bundled or values-pilot.example.yaml, pilot); Tier-2: your own Postgres (maku db bootstrap or database.mode: cnpg, the database)postgres.enabled: false (Tier-2 external)the render fails
An OIDC issueryesthe issuer, a web client, a CLI client and a groups claim (identity)preset: generic, tokenUse: idnobody can sign in
Two GitHub Appsyescreated by maku install --print (GitHub Apps)the merger folded into the factory Appno work starts
Model provider keysyesone Secret per provider, read only by the model gateway (model gateway)model.mode: gatewayruns fail at the gateway
Exposure of the webyes, for peoplea Gateway or an IngressClass, and its TLS (exposure)expose.mode: nonethe web is reachable by port-forward only
A public path for Slackwith SlackPOST /slack/events on a public hostoffno Slack App
The Slack Appnoa Slack App and its three Secrets (Slack App)slack.enabled: falseMCP, the CLI and the web only
RunLore’s knowledge MCPnoits endpoint (integration)unsetno knowledge-base lookups for triagers
External Secrets Operatornoa ClusterSecretStore (install Secrets)offcreate the Secrets another way
The prometheus-operator CRDs, Grafana’s dashboard sidecarnothe CRDs, the sidecar (observability)offmetrics only: no scrape objects, alerts or dashboards
A meteryes, outside the demoa Prometheus-compatible URL holding agentgateway’s metricsnonethe factory refuses to start

GitHub needs no public path: the factory polls for labels, and no webhook reaches it. Only the Slack App’s events path must be public, and only when it is installed.

Write the install: maku install --print

maku install --print --out ./maku-install

It asks one question per seam (or reads --answers FILE in CI), validates answers against the chart schemas, optionally creates both GitHub Apps (apps.create), and writes values.yaml, crds/values.yaml, factory/, github/, secrets/ (mode 0700, never overwritten), gitops/ and README.md (generated install directory). Add repositories later with maku repo add owner/name (Onboard a repository, CLI).

Apply it

The order matters, whatever applies it: the CRD chart, then agentgateway’s CRDs outside any Helm release (they are too large for one), then the Secrets, then the umbrella with its own CRDs skipped, then the factory objects and the ruleset.

Plain Helm

helm install agent-factory-crds oci://ghcr.io/smana/charts/agent-factory-crds --version <version> -n maku --create-namespace
kubectl apply --server-side -f config/agentgateway        # from a checkout of the same tag
kubectl apply -n maku -f secrets/                         # after filling secrets/templates/
helm install agent-factory oci://ghcr.io/smana/charts/agent-factory --version <version> -n maku -f values.yaml
kubectl apply -n maku -f factory/
bash github/apply-ruleset.sh
helm test agent-factory -n maku

The written README.md holds these lines with your names.

Flux

gitops/flux.yaml holds two OCIRepository sources, the CRD chart’s HelmRelease, a Kustomization of config/agentgateway with prune: false, and the umbrella’s HelmRelease, which dependsOn the CRDs and sets install.crds and upgrade.crds to Skip. Commit secrets/ through your own Secrets tooling, never as files. Flux runs the preflight when the HelmRelease sets spec.test.enable: true.

Argo CD

gitops/argocd.yaml holds three Applications in sync waves: the CRD chart (wave 0), agentgateway’s CRDs with Prune=false (wave 1), and the umbrella with skipCrds: true (wave 2). Argo CD runs no Helm test hook: run the preflight by hand, as below.

Check it: the preflight

maku.preflight.enabled and maku-factory.preflight.enabled (on by default) render a Helm test hook and a suspended CronJob. Each check logs a JSON line and fails closed (undecided fails; preflight.strict: true fails on warnings):

helm test agent-factory -n maku
kubectl -n maku create job --from=cronjob/agent-factory-preflight preflight-now   # Argo CD
maku preflight --namespace maku --release agent-factory                            # adds outside route checks

Pass --json in pipelines, --no-outside to skip client-side route probes, or run maku repo check owner/name for one repository (CLI permissions and checks).

The checks, generated from internal/preflight:

CheckSeamRuns inWhat it checksFails withWarns with
kubernetesclusterpodthe server version is 1.30 or laterkubernetes_too_old
crdsclusterpodthe six maku CRDs at the chart’s served versions, and each CRD the values need (agentgateway’s, Gateway API’s, prometheus-operator’s, ESO’s)crd_missing, crd_version
runtimeclasssandboxpodthe RuntimeClass sandbox.runtimeClassName names existsruntimeclass_missingunsafe_allow_runc
secretssecretspodeach Secret of the registry the values enable exists, with its documented keyssecret_missing, secret_key_missing
run-pathnetwork, sandboxrun-controllerthe run-controller’s preflight: RuntimeClass, git Secrets, the CNI probe, the gatewayrun_path_runtimeclass, run_path_git_secrets, run_path_network, run_path_sandbox, run_path_gatewaynetwork_policy_none
databasepostgresbrokerthe three DSNs: reachable, Postgres 16 or later, roles without BYPASSRLS, the schema currentdb_unreachable, db_too_old, db_role_bypasses_rls, db_wrong_role, db_schema_behind, db_schema_ahead, db_ledger_unreadable
oidcidentitybroker, factorydiscovery answers, its issuer matches, the JWKS fetchesoidc_discovery, oidc_issuer_mismatch, oidc_jwks
github-linkidentitybrokerthe GitHub link’s OAuth client authorizes, and its callback is the web host’slink_client, link_callback_mismatch
appsgithubfactoryeach served repository has both App installations, with their grantsapp_not_installed, app_permission_missing
merge-gategithubfactorythe default branch’s ruleset requires maku/merge-gate from the posting Appmerge_gate_not_requiredmerge_gate_rules_unread
private-codegithubfactoryeach private repository has privateCode.acknowledged: without it, it is refused new tasksprivate_code_unacknowledged
modelsmodelsbroker, run-controllerthe planner, the classifier and one run alias per listener answer a one-token completionmodel_unreachable, model_refused
knowledgerunlorebrokertools/list lists kb_search and kb_get within the timeoutknowledge_unreachable, knowledge_tools_missing
exposureexposurefactory, clino route reaches the broker around the proxy; each host resolves and answersbroker_exposed_around_proxy, host_unresolved, route_unanswered, slack_route_too_wide
tracingobservabilityrun-controllerthe collector’s OTLP port accepts a run’s connectioncollector_unreachable
routines-ui-writeclusterfactoryroutines.uiWrite off for GitOps repositoriesui_write_check_failedui_write_gitops_managed

Private code

A Repository serving private code needs spec.privateCode.acknowledged: true (acknowledging code is sent to the configured models, usually SaaS; self-hosted models via agentgateway remain optional):

apiVersion: maku.ogenki.io/v1alpha1
kind: Repository
metadata: {name: platform}
spec:
  factoryRef: production
  repository: acme/platform
  privateCode: {acknowledged: true}   # true or absent: false is refused

On each 5-minute fence pass, the factory reads visibility through the factory App (private, internal, and failed reads fail closed as private code; nothing starts before the first read). Without acknowledgement, running tasks finish while new work is refused across the PrivateCode condition, the private-code preflight check, maku_factory_private_code_unacknowledged, and the install banner (private code surfaces). Demo mode and multi-repository coordination (publicOnly: true) remain public-only.

Upgrading

See upgrading for release-by-release install changes, and install support and cluster reference for the support floor and running several installs in one cluster.