Guide 74 of 81 · Running a fleet with Central Lite
Install full Central with Helm
Install full Central on Kubernetes: its datastores, the first tenant and its root, each role's keys, the chart from digests, a first admin and machine.
Built, not yet claimed preview: this guide describes a package that has not passed its release gate.
Full Central runs the same rules as Central Lite on Postgres, ClickHouse and NATS, split into roles that scale apart: edge for nodes and the console, consumer for ingest, worker for cost rebuilds and backups, and signer, the only role that unwraps the tenant's keys. You install the datastores with their operators, create the first tenant from an operator host, give each role only its own credentials and keys, install the chart from image digests, then sign in and enrol a machine.
1. Decide whether you need full Central
Central Lite is one process on one host with SQLite, for fleets of about 50 developers. Full Central is for a fleet past that, several organisations on one deployment, or a recovery point and recovery time you must state: it targets losing at most 15 minutes of data and being back within 4 hours after losing the whole deployment. Nodes don't change: they enrol, push and take policy the same way.
It needs a Kubernetes cluster you run and the people to run it. If you already have Central Lite, install full Central as below with an empty first tenant, then move Lite's org into it with Move Central Lite to full Central.
See also
Stand up Central LiteSet up Central Lite on one Linux host: its org and keys, its HTTPS port, a first admin and a backup passkey, and its first encrypted backup.
2. Install the datastores and their operators
Central's roles run in the namespace agentgarm under PodSecurity restricted; the datastores run in agentgarm-data, with a NetworkPolicy that lets in only Central's namespace and each datastore's own members. The chart ships example manifests for each, every image by digest, and operators.md beside them gives the order.
Install CloudNativePG 1.30 or later for Postgres 18 (three instances, synchronous), the Altinity operator for ClickHouse (two replicas and three Keepers), and the NATS chart twice: nats-evidence, which syncs every write to disk, for security and audit events, and nats-bulk for the rest. Make the datastores' passwords as Secrets of your own, never committed, then the ClickHouse users garm_edge, garm_consumer, garm_worker and garm_ops as operators.md shows.
cd deploy/helm/examples
kubectl apply -f namespaces.yaml -f networkpolicy.yaml
helm install cnpg cnpg/cloudnative-pg --version 0.29.1 -n agentgarm-data -f cnpg.values.yaml
helm install altinity altinity/altinity-clickhouse-operator --version 0.27.4 -n agentgarm-data -f altinity.values.yamlkubectl apply -f postgres.yaml -f clickhouse.yaml3. Create the first tenant and sign its org root
From an operator host that reaches the datastores (through kubectl port-forward or a private network, never a pod that faces the internet), write the --full settings file: Postgres, both NATS sets and ClickHouse, with the owners' credentials. init installs the schema, creates the tenant at its hostname and writes the tenant's state directory. A deployment starts with one tenant; each later one is its own release (Run several organisations on one Central).
Nothing enrols until the tenant has an org root. A production tenant's root is a ceremony of three keys held offline, any two of which sign: root template writes what each key signs, and root install installs the signed result. root lite signs a 1-of-1 root on the operator host instead, which is enough to evaluate; moving off it later means enrolling every machine again. A tenant is production unless its --full file says "evaluation": true: on a production tenant with a 1-of-1 root, doctor fails and restore finish refuses to leave restore mode.
garm-central --full operator.json --state-dir tenant init --url https://acme.eu1.central.example.com --keystore softwaregarm-central --full operator.json --state-dir tenant root template --root-key 3f1c… --root-key 9a07… --root-key c2d4… --threshold 2 --out root-v1 --signing-input sign-this
garm-central --full operator.json --state-dir tenant root install root-v1-signedChecked by the walk: this command ran as written on the operator host of full Central installed in kind.
See also
Keep Central Lite's keys in a hardware security moduleCreate Central Lite's org with every key wrapped under a key that never leaves your PKCS#11 token, and keep what a restore needs backed up.
4. Give each role only its own keys and credentials
The roles reach the signer over mutual TLS under an internal CA of the deployment's own. operator signer-ca init mints it; issue gives edge and signer a certificate each, the signer's naming its Service and the edge's the tenant it serves (--tenant): the signer answers an edge for the tenants its certificate names and no other. Keep ca.key on the operator host, off the cluster, and issue the certificates again before their year runs out.
state pack --role writes each role's bundle: edge's holds its TLS key and signer certificate, consumer's and worker's no key at all, and only the signer's holds what unwraps the tenant's keys. Store each bundle and each role's settings file (that role's credentials only; the migration's with the owners') as the Secrets the chart names, and encrypt Secrets at rest.
Give the signer's settings "deployment_keystore", the keystore the tenants' keys are under (tenant-keys:software, or the token's or Cloud KMS's). The signer then makes the deployment's own key under the same key-encryption key and signs the deployment's audit chain with it; without it the chain is not signed and the signer says so.
garm-central operator signer-ca init --dir ca
garm-central operator signer-ca issue --role edge --tenant "$(cat tenant/tenant)" --dir ca
garm-central operator signer-ca issue --role signer --dns central-signer --dns central-signer.agentgarm.svc --dir cagarm-central --full operator.json --state-dir tenant state pack --role edge --signer-ca ca --out state-edge.json
garm-central --full operator.json --state-dir tenant state pack --role signer --signer-ca ca --out state-signer.json
garm-central --full operator.json --state-dir tenant state pack --role consumer --out state-consumer.json
garm-central --full operator.json --state-dir tenant state pack --role worker --out state-worker.jsonkubectl -n agentgarm create secret generic agentgarm-central-edge --from-file=full.json=edge.json
kubectl -n agentgarm create secret generic agentgarm-central-state-edge --from-file=state.json=state-edge.jsonChecked by the walk: these commands ran as written on the operator host of full Central installed in kind.
5. Install the chart from digests
Your values name the image by digest only (image.digest, with image.registry for a mirror). The signer is on by default; turning it off also takes signer.sharedKeystore: true, because every pod would then hold the tenant's keys, so do it only for an evaluation. The chart refuses a tag and any key it doesn't know. Before any role starts, a preflight Job runs garm-central doctor --preflight: a store that does not answer, a schema this release does not run, row level security off or a class stream with other settings fails the install there, and kubectl logs job/central-preflight names the check and its fix. Fix it, run helm uninstall central -n agentgarm (Helm keeps a failed release's name), and install again. Then the migration Job brings the stores up to date as the owners.
helm test runs garm-central doctor in a Pod with edge's settings and keys: the stores, then the tenant's own checks, warnings passing and a failure failing the test. The chart is used from deploy/helm/agentgarm-central under Helm 3.22 or Helm 4. edge's Service is a LoadBalancer that passes TLS through: point the tenant's hostname at it. edge ends TLS itself with the key init made.
helm install central deploy/helm/agentgarm-central -n agentgarm -f values.yaml --waithelm test central -n agentgarm --logs6. Register the first admin and enrol a test machine
admin bootstrap prints a one-time code, valid 15 minutes; open the tenant's hostname, enter it with your name and register a passkey, then a backup passkey. The console is the same as Central Lite's.
token create writes a single-use enrolment token naming the tenant's hostname. Enrol one test machine with it first, as for Central Lite, and check it appears in the console's inventory before you enrol the fleet.
garm-central --full operator.json --state-dir tenant admin bootstrap --name alice
garm-central --full operator.json --state-dir tenant token create --out test-machine.tokenChecked by the walk: this command ran as written on the operator host of full Central installed in kind.
See also
Enrol developer machinesEnrol a machine in Central Lite with a one-time token that pins Central Lite's key, see it report in the inventory, and let its users enrol presence keys.
7. Check the deployment's health
garm-central status with the --full file shows the tenant as on Central Lite: its org root and its custody, every key's key_custody, the nodes enrolled and the audit chain. operator tenant list shows every tenant in the deployment as active, with its hostname and quota.
doctor on the operator host checks the whole deployment in one pass, one line per check: the stores and the schema, row level security, each role's ready processes from their heartbeats, the class streams, ClickHouse, who may write each event table and every row policy (read as clickhouse.operator), the tenants' quotas, the newest event backup, then the tenant's own checks, among them that its TLS key is the one its org root pins. It exits 0, 1 on a warning (the event backups are not set up yet) and 2 on a failure. Set up backups next, before you enrol the fleet.
garm-central --full operator.json --state-dir tenant status
garm-central --full operator.json operator tenant list
kubectl -n agentgarm get podsgarm-central --full operator.json --state-dir tenant doctorChecked by the walk: this command ran as written on the operator host of full Central installed in kind, and the output showed active.
See also
Back up full Central and recover from a disasterBack up full Central's Postgres, events and streams to another region, rehearse a restore, and bring the whole deployment back after losing it.