Docker images
Every image an install pulls or a rebuild needs, and how their tags are managed.
Image inventory
Section titled “Image inventory”images.json at the repository root is the source of truth for this list. It is what make mirror-images copies from, what the chart and the dev tooling resolve their third-party pins from, and what the table below is generated from — so there is one pin per image, not one per install path.
The A2A stack pulls NATS, nats-box, the NATS config reloader, its metrics exporter, the gateway, the session worker, the auth callout,
the capability verifier, the AgentProfile dispatcher, the console server and the Hermes bridge sidecar. Each is in the
tables below. The first-party ones (a2a-gateway, a2a-worker, a2a-authcallout,
a2a-verifier, a2a-dispatcher, a2a-console, a2a-teams-inbound, hermes-bridge) are built and tagged with the rest of the
release; a2a-teams-inbound runs only when spec.integration.teams.inbound is enabled.
The operator derives the A2A images it renders by default from its own image (OPERATOR_IMAGE, which the chart
sets beside PLATFORM_AGENT_IMAGE) when it carries a tag, else from the agent image it resolves
for itself. They get the same registry and tag, so an install at a release pulls them at that
release and a mirrored install pulls them from the mirror. A PlatformAgent’s own
spec.deployment.image does not move them; A2A_GATEWAY_IMAGE, A2A_WORKER_IMAGE,
A2A_CALLOUT_IMAGE, A2A_VERIFIER_IMAGE, A2A_CONSOLE_IMAGE, A2A_DISPATCHER_IMAGE and
A2A_TEAMS_INBOUND_IMAGE on the operator override one at a time.
The AgentProfile dispatcher runs by default, from the release set’s image, which on a mirror is the mirror’s copy. A2A_DISPATCHER_IMAGE overrides the image, and the chart’s operator.profileDispatcher.enabled: false switches the dispatcher off.
The Hermes bridge sidecar the operator renders into the agent pod calls the agent container,
so the two must be on one release. The operator therefore takes the bridge’s registry and tag from
the agent image instead when that is the release platform-agent image by tag, else from the
operator’s release set, and A2A_BRIDGE_IMAGE on the operator overrides it. The chart value
hermesBridge.image (repository, tag) renders that override; empty, the default, renders
nothing. A PlatformAgent that declares its own hermes-bridge sidecar keeps it, and that
sidecar’s image is whatever the resource names.
NATS, nats-box, the NATS config reloader and its metrics exporter are ordinary third-party pins,
in the table as nats, nats-box, nats-server-config-reloader and prometheus-nats-exporter,
so make mirror-images copies them. The chart sets their env vars (A2A_NATS_IMAGE,
A2A_PROVISION_IMAGE, A2A_NATS_RELOADER_IMAGE and A2A_NATS_EXPORTER_IMAGE) from its
a2aBus.images values, the same way it sets FLUENT_BIT_IMAGE. One exception: operator.extraEnv that sets A2A_NATS_IMAGE and not A2A_NATS_EXPORTER_IMAGE keeps the chart’s exporter pin out of the operator’s environment, so an install set up before the exporter existed stays without the sidecar (below). Under
global.thirdPartyImageRegistry they render from the mirror, so a mirrored chart install pulls
the four with nothing more to do. Each, pinned by digest, renders under the prefix by tag alone,
which is the copy make mirror-images pushes.
An upgrade with helm upgrade --reuse-values from a release before a2aBus.images existed
renders without that key. The chart then takes the same pins from its own templates, so under
global.thirdPartyImageRegistry the bus still pulls from the mirror.
A kustomize install (make deploy) renders the operator without the chart, so there the operator
runs on its compiled defaults, the same pins on Docker Hub, until the four env vars are set by
hand on the controller manager.
If A2A_NATS_IMAGE is set and A2A_NATS_EXPORTER_IMAGE is not, as on a kustomize install whose
operator environment was written before the exporter existed, the operator renders the NATS pods
without the exporter. It records an A2ABusMetricsExporterOmitted Warning event on the
PlatformAgent. The bus keeps running, and its metrics are absent until the variable names the
mirrored copy.
A2A_NATS_EXPORTER_IMAGE has to name a copy of the upstream image, not a rebuild: the operator
runs /prometheus-nats-exporter under the image’s /bin/sh, in a loop that restarts the exporter
if it exits.
The bases those images are built from are inventory entries too. golang, node, debian and
distroless-static in the build-time table below carry a2a/Dockerfile.authcallout,
a2a/Dockerfile.console, a2a/Dockerfile.dispatcher, a2a/Dockerfile.gateway, a2a/Dockerfile.verifier,
a2a/Dockerfile.worker, a2a/Dockerfile.hermes-bridge, a2a/Dockerfile.teams-inbound and a2a/Dockerfile.web-console alongside
every other builder, so a build in a mirrored environment can resolve them like any other.
Several images keep a second copy of their pin elsewhere in the tree: a chart value, a Dockerfile
ARG default, a compiled constant in the operator, or the chart’s template default for the A2A bus.
make images-check holds them in step with this file. How to bump a pin is in
docs/pull-request-workflow.md.
Built and published by this repo
Section titled “Built and published by this repo”Tagged with the release version; :latest on every push to main.
| Image | Upstream reference | Pin | Override | Pulled by |
|---|---|---|---|---|
platform-agent |
ghcr.io/gke-labs/kube-agents/platform-agent |
release tag | PLATFORM_AGENT_IMAGE |
The agent Deployment the operator renders, and its sandbox init container. |
credential-proxy |
ghcr.io/gke-labs/kube-agents/credential-proxy |
release tag | CREDENTIAL_PROXY_IMAGE |
The credential-proxy Deployment, and the agent-api-auth sidecar in the agent pod. |
kube-proxy |
ghcr.io/gke-labs/kube-agents/kube-proxy |
release tag | KUBE_PROXY_IMAGE |
The kube-proxy Deployment the operator renders beside every agent pod. |
agent-sandbox |
ghcr.io/gke-labs/kube-agents/agent-sandbox |
release tag | AGENT_SANDBOX_IMAGE |
The shell sandbox StatefulSet the operator renders beside every agent pod. |
k8s-operator |
ghcr.io/gke-labs/kube-agents/k8s-operator |
release tag | OPERATOR_IMAGE |
The controller-manager Deployment. |
replay-proxy |
ghcr.io/gke-labs/kube-agents/replay-proxy |
release tag | REPLAY_IMAGE |
The optional inference-replay integration. |
pubsub-platform |
ghcr.io/gke-labs/kube-agents/pubsub-platform |
release tag | — | The pubsub-platform AgentPlugin. |
gke-stockout-investigator |
ghcr.io/gke-labs/kube-agents/gke-stockout-investigator |
release tag | — | The gke-stockout-investigator AgentPlugin. |
a2a-gateway |
ghcr.io/gke-labs/kube-agents/a2a-gateway |
release tag | A2A_GATEWAY_IMAGE |
The A2A gateway Deployment the operator renders. The operator derives it from its own image, else from the agent image it resolves (registry and tag), unless the override is set; the worker, the callout and the console resolve the same way. |
a2a-worker |
ghcr.io/gke-labs/kube-agents/a2a-worker |
release tag | A2A_WORKER_IMAGE |
The session pods the A2A gateway spawns; the operator passes its resolution to the gateway as A2A_WORKER_IMAGE. The image carries stock kubectl (wired to <name>-kube-proxy on session pods under their cluster view, on by default on the session route or with A2A_SESSION_CLUSTER_VIEW, and on AgentProfile workers once that proxy admits them; a worker not routed there falls back to the credential broker shim) plus the credential broker’s shim as gcloud. Under that view, and on a routed worker, its kubectl uses the kubectl memory admission, its guard library, the kubectl cost table and the session fast-path figures the image carries. |
persona-cluster |
ghcr.io/gke-labs/kube-agents/persona-cluster |
release tag | — | The worker pods of the cluster AgentProfile, when the chart’s profiles.cluster.enabled renders it: mounted at /persona, or copied there by a staging init container where image volumes are unavailable. |
persona-tse |
ghcr.io/gke-labs/kube-agents/persona-tse |
release tag | — | The worker pods of the tse AgentProfile, when the chart’s profiles.tse.enabled renders it: mounted at /persona, or copied there by a staging init container where image volumes are unavailable. |
persona-fleet-audit |
ghcr.io/gke-labs/kube-agents/persona-fleet-audit |
release tag | — | The worker pods of the fleet-audit AgentProfile, when the chart’s profiles.fleetAudit.enabled renders it: mounted at /persona, or copied there by a staging init container where image volumes are unavailable. |
a2a-authcallout |
ghcr.io/gke-labs/kube-agents/a2a-authcallout |
release tag | A2A_CALLOUT_IMAGE |
The auth callout Deployment the operator renders. |
a2a-console |
ghcr.io/gke-labs/kube-agents/a2a-console |
release tag | A2A_CONSOLE_IMAGE |
The console server Deployment the operator renders, the MCP server Deployment it renders unless operator.mcpServer.enabled is false, and the opt-in OKF memory curator Deployment when A2A_CURATOR is set. |
a2a-teams-inbound |
ghcr.io/gke-labs/kube-agents/a2a-teams-inbound |
release tag | A2A_TEAMS_INBOUND_IMAGE |
The Teams inbound receiver Deployment the operator renders when spec.integration.teams.inbound is enabled. |
a2a-verifier |
ghcr.io/gke-labs/kube-agents/a2a-verifier |
release tag | A2A_VERIFIER_IMAGE |
The capability verifier Deployment the operator renders. It resolves the same way the gateway, the worker and the callout do. |
a2a-dispatcher |
ghcr.io/gke-labs/kube-agents/a2a-dispatcher |
release tag | A2A_DISPATCHER_IMAGE |
The AgentProfile dispatcher Deployment the operator renders unless operator.profileDispatcher.enabled is false. |
hermes-bridge |
ghcr.io/gke-labs/kube-agents/hermes-bridge |
release tag | A2A_BRIDGE_IMAGE |
The hermes-bridge sidecar the operator renders beside the agent container. The operator derives it from the agent image (registry and tag) when that image is the release platform-agent image by tag, else from the operator’s release set, unless the override is set; a CR that declares its own hermes-bridge sidecar on spec.deployment.sidecars keeps it, and that sidecar’s image is the CR’s. |
web-console |
ghcr.io/gke-labs/kube-agents/web-console |
release tag | — | The web console Deployment the chart renders when webConsole.enabled is true, and nothing on a default install. The chart takes the tag from webConsole.image.tag, else the agent image’s tag, else the chart’s appVersion. |
Pulled by an install, built elsewhere
Section titled “Pulled by an install, built elsewhere”Pinned here so make mirror-images and the install ask for the same version.
| Image | Upstream reference | Pin | Override | Pulled by |
|---|---|---|---|---|
litellm |
ghcr.io/berriai/litellm |
v1.108.18 |
LITELLM_IMAGE |
The LiteLLM gateway, from either the chart or the kustomize integration. |
fluent-bit |
docker.io/fluent/fluent-bit |
5.2.1 |
FLUENT_BIT_IMAGE |
The logging sidecar the operator injects into every agent pod. |
nats |
docker.io/library/nats |
2.11.17-alpine@sha256:e4bf19f15fd3218814a4e3c9e0064e1334bd8aa20d5984b9f1a0afd084f8cc00 |
A2A_NATS_IMAGE |
The NATS StatefulSet the operator renders. A one-server bus also runs its stale-cluster-meta init step on this image, which needs a shell with du and cut: mirror an -alpine tag, not the scratch-based nats tags. Keep the version at the start of the tag, with the digest after it (<repository>:<version>-alpine@sha256:...): once the bus has run a versioned image, the operator refuses one it can’t read a version from (A2ABusImageHeld). A digest alone is read only when it is this table’s pin. |
nats-box |
docker.io/natsio/nats-box |
0.14.5@sha256:0784ab710aefaf6ef037ed797ee7dcde613c6ad208c4dbff1945fc7c1b5b5375 |
A2A_PROVISION_IMAGE |
The provision Job the operator runs against that NATS. |
nats-server-config-reloader |
docker.io/natsio/nats-server-config-reloader |
0.25.0@sha256:24bacde6b844f8875f93424ed153d33b3d9e9367fcccc14b683eb71fab3a4d8c |
A2A_NATS_RELOADER_IMAGE |
A sidecar in the NATS pod the operator renders. |
prometheus-nats-exporter |
docker.io/natsio/prometheus-nats-exporter |
0.20.3@sha256:4b8ddc1c86fec360b5cd3d5e1fbc6fb52bdafd5805bba3901cc52926538af255 |
A2A_NATS_EXPORTER_IMAGE |
The metrics sidecar in each pod of that NATS StatefulSet. |
k8s |
docker.io/alpine/k8s |
1.36.7 |
— | The chart’s pre-delete cleanup hook Job. |
github-token-minter-server |
us-docker.pkg.dev/abcxyz-artifacts/docker-images/github-token-minter-server |
v2.7.1-amd64 |
GITHUB_MINTER_IMAGE |
The optional GitHub integration. |
hindsight-api |
ghcr.io/vectorize-io/hindsight-api |
0.10.3@sha256:f80f304db313cbc8775acd601fda7d094f5854ebf9bc252d8134eb9276d56b40 |
HINDSIGHT_API_IMAGE |
The chart, when the memory provider uses Hindsight (make deploy-hindsight for the kustomize dev path). |
hindsight-postgresql |
docker.io/pgvector/pgvector |
0.8.7-pg15@sha256:e0b617fffc06dd37323ee99873c7a8683f19f1dce34633670262b0113ce32638 |
HINDSIGHT_POSTGRES_IMAGE |
The chart, alongside the Hindsight API. |
cert-manager-controller |
quay.io/jetstack/cert-manager-controller |
v1.21.3 |
— | cert-manager, installed by the full-install composition unless enable_cert_manager is false. |
cert-manager-cainjector |
quay.io/jetstack/cert-manager-cainjector |
v1.21.3 |
— | cert-manager, installed by the full-install composition unless enable_cert_manager is false. |
cert-manager-webhook |
quay.io/jetstack/cert-manager-webhook |
v1.21.3 |
— | cert-manager, installed by the full-install composition unless enable_cert_manager is false. |
cert-manager-acmesolver |
quay.io/jetstack/cert-manager-acmesolver |
v1.21.3 |
— | cert-manager’s controller, via its –acme-http01-solver-image flag. Never pulled by kube-agents itself; the copy exists so a mirrored cert-manager install can point the flag at it. |
cert-manager-startupapicheck |
quay.io/jetstack/cert-manager-startupapicheck |
v1.21.3 |
— | cert-manager, installed by the full-install composition unless enable_cert_manager is false. Runs once per install as a post-install hook Job. |
Base images
Section titled “Base images”Needed only to rebuild the images above from source, not to run an install. Each is a build arg on its Dockerfile, so a mirrored rebuild passes the copy’s reference.
| Image | Upstream reference | Pin | Override | Pulled by |
|---|---|---|---|---|
hermes-agent |
docker.io/nousresearch/hermes-agent |
HERMES_AGENT_TAG in tags.env |
HERMES_AGENT_IMAGE |
deploy/docker/Dockerfile (hermes-upstream stage). |
envoy |
docker.io/envoyproxy/envoy |
v1.39.6 |
ENVOY_IMAGE |
deploy/docker/Dockerfile (envoy-bin stage). |
golang |
docker.io/library/golang |
1.27-alpine |
GOLANG_IMAGE |
deploy/docker/Dockerfile, deploy/kube-proxy/Dockerfile, deploy/k8s-api-proxy/Dockerfile, k8s-operator/Dockerfile, a2a/Dockerfile.authcallout, a2a/Dockerfile.dispatcher, a2a/Dockerfile.gateway, a2a/Dockerfile.hermes-bridge, a2a/Dockerfile.verifier, a2a/Dockerfile.web-console, a2a/Dockerfile.worker, a2a/Dockerfile.teams-inbound and a2a/Dockerfile.console builder stages. |
node |
docker.io/library/node |
26-slim |
NODE_IMAGE |
a2a/Dockerfile.console page build stage. |
python |
docker.io/library/python |
3.14-slim |
PYTHON_IMAGE |
examples/inference-replay/replay-proxy/Dockerfile, hack/replay-proxy/Dockerfile, deploy/sandbox/Dockerfile and deploy/docker/Dockerfile (proxy-tools stage). |
distroless-static |
gcr.io/distroless/static |
nonroot |
DISTROLESS_IMAGE |
deploy/kube-proxy/Dockerfile, deploy/k8s-api-proxy/Dockerfile, k8s-operator/Dockerfile, a2a/Dockerfile.authcallout, a2a/Dockerfile.dispatcher, a2a/Dockerfile.gateway, a2a/Dockerfile.hermes-bridge, a2a/Dockerfile.verifier, a2a/Dockerfile.web-console, a2a/Dockerfile.teams-inbound and a2a/Dockerfile.console runtime stages. |
debian |
docker.io/library/debian |
trixie-slim@sha256:8aa5a7bf5a1955bddbe7d74fcdd0b91ab30e74362a8b73af672b0481b35b44a0 |
DEBIAN_IMAGE |
agentplugins//Dockerfile and a2a/Dockerfile.persona- base images, and the a2a/Dockerfile.worker runtime stage. |
Published images
Section titled “Published images”Every image below is published to ghcr.io/gke-labs/kube-agents/<image> on each push to main, and when a merge lands on a release/<X.Y> branch whose commit has no images yet, tagged with the pushed commit’s SHA; :latest follows main alone. A push to main also publishes platform-agent, credential-proxy, kube-proxy, replay-proxy, agent-sandbox, pubsub-platform and gke-stockout-investigator to a Google Artifact Registry repository through docker-publish-gcp.yml, built there by Cloud Build. k8s-operator and the A2A next-stack images are not built by that workflow (the image inventory above lists every first-party image an install pulls; k8s-api-proxy is published to GHCR as well and is in neither the inventory nor that workflow). Production SemVer release tags (X.Y.Z) are promoted from the GHCR commit images without rebuilding — see Release versioning.
platform-agent
Section titled “platform-agent”The agent Deployment image. Built from the platform target of deploy/docker/Dockerfile from the files of nousresearch/hermes-agent. It lays down the Planning Agent workspace at /opt/defaults (the default profile) plus three specialist profile templates:
- the Platform Agent at
/opt/platform-template, scaffolded into theplatformprofile at startup by the entrypoint; - the Cluster Agent at
/opt/cluster-template, scaffolded into per-clustercluster-*profiles at runtime bycluster_agent_profile.py; - the optional GKE Support Agent at
/opt/tse-template, scaffolded into thetseprofile at startup whenKUBE_AGENTS_ENABLED_PROFILEScontainstse.
There is no cluster or forge tooling in this image, in any form, and a build guard fails if any reappears. The agent’s shell runs in the agent-sandbox image. gcloud there is a credential-proxy shim — a symlink to a client that forwards a command to the broker holding the credential — and kubectl, helm, yq, leeway, and OpenTofu’s tofu are native. kubectl reaches the <name>-kube-proxy Service over HTTPS with a credential-free kubeconfig. The agent runs tofu for one subcommand, fmt: tofu fmt -check -diff to check the syntax of Terraform it writes for a pull request, then tofu fmt to apply the formatting.
Its git holds no credential and reaches no forge, and there is no gh: repositories are fetched and changed through the version-control skill’s verbs, which the broker serves. Agent-pod code that needs one of them reaches the sandbox over SSH through agents/platform/scripts/sandbox_exec.py, and the sandbox reaches the broker at the <name>-credential-proxy Service and the Kubernetes API proxy at <name>-kube-proxy.
What is installed is the debugging set the agent’s own processes use: curl, jq, dnsutils, iputils-ping, patch, wget, nano, vim.
It also builds two Go binaries in a builder stage and copies them into the image: the k8s-event-watcher from k8s-operator/cmd/k8s-event-watcher/ and the drift-detector from k8s-operator/cmd/drift-detector/. Both land in the shared agent-base stage, so the credential-proxy image below carries them too — which is the image that actually runs them, in the gateway pod’s agent-api-auth sidecar.
A late build step precompiles the Python tree — /opt/hermes, its venv, and the stdlib — to .pyc. The base image ships almost none, sets PYTHONDONTWRITEBYTECODE=1, and /opt/hermes is read-only to the runtime user, so without this every short-lived process recompiled its imports from source and threw the result away. Each kanban worker is exactly such a process: a fresh hermes -p <profile> --cli chat -q. Shipping the bytecode costs ~170MB of image and takes about 6s off a worker’s startup. It has to run after everything the Dockerfile writes into /opt/hermes, its patches and its bundled plugins alike. compileall stamps each .pyc with its source’s mtime and size, so bytecode written before the write would be discarded at import.
credential-proxy
Section titled “credential-proxy”The Envoy-based credential broker runtime, which runs as the envoy-credential-proxy container in its own <name>-credential-proxy Deployment. The same image also runs the gateway pod’s agent-api-auth sidecar, with CREDENTIAL_PROXY_ROLE=api-proxy starting neither Envoy nor the executor there. Built from the credential-proxy target of the same deploy/docker/Dockerfile, on the shared agent-base stage rather than on platform. It adds the real gcloud, kubectl, gh and git that the sandbox image deliberately lacks, the envoy binary and its config, and /opt/defaults/scripts, which is where start-services.sh finds credential_proxy.py. It carries none of what the platform stage adds on top — no kube-agents personas, skills, cron entries or profile templates — because nothing that runs from this image reads them.
It holds the Python packages the runtime imports, pinned by hash in deploy/docker/credential-proxy-requirements.txt. It holds the real gcloud, kubectl, gh and git that the sandbox image deliberately lacks, the first three at versions the Dockerfile states. It holds the envoy binary and its config, the k8s-event-watcher, drift-detector and a2a binaries, and /opt/defaults/scripts, which is where start-services.sh finds credential_proxy.py. It carries nothing of Hermes and none of what the platform stage adds: no personas, skills, cron entries or profile templates.
The image shares no base layer with platform-agent. Its last stage copies agents/*/scripts/ itself, so an edit there rebuilds that one copy and nothing before it.
kube-proxy
Section titled “kube-proxy”The Kubernetes API reverse proxy (k8s-api-proxy), which runs in its own <name>-kube-proxy Deployment alongside <name>-credential-proxy. Built from deploy/kube-proxy/Dockerfile on gcr.io/distroless/static:nonroot.
k8s-api-proxy
Section titled “k8s-api-proxy”The same reverse proxy as a standalone binary, with no kube-agents code in it: the image to use when running the proxy for another platform. No install pulls it, so it is not in the inventory above and make mirror-images does not copy it; an install runs kube-proxy, which adds a kube-agents-specific check of the credentials its profile workers present. It is published, signed and tagged X.Y.Z with the other images, for linux/amd64; a release that ships it lists k8s-api-proxy-<X.Y.Z>.spdx.json among its assets. A release without that asset has no image of this name: that covers releases cut before the image joined the release, and later patches on those lines. Built from deploy/k8s-api-proxy/Dockerfile on gcr.io/distroless/static:nonroot; the module README describes its flags.
replay-proxy
Section titled “replay-proxy”The inference replay proxy used for record/replay of model traffic. Built from examples/inference-replay/replay-proxy/Dockerfile.
k8s-operator
Section titled “k8s-operator”The Kubebuilder-generated operator manager image. Built from k8s-operator/Dockerfile (make docker-build IMG=...).
Container entrypoint
Section titled “Container entrypoint”platform-agent — and credential-proxy, which inherits it from the shared agent-base stage — run deploy/shared/docker-entrypoint.sh as their ENTRYPOINT, with CMD ["hermes", "gateway", "run"]. Neither container built from that image reaches it under this operator: for both envoy-credential-proxy and agent-api-auth the operator sets command to /usr/local/bin/start-services, which replaces the image’s ENTRYPOINT outright.
Before it execs whatever command it was handed, the entrypoint does its setup. It converts Hermes’ SQLite databases out of WAL when the managed config pins database.journal_mode: delete (see availability.runtimeClassName on the CRD reference). It pins every session another session names as its parent, so the gateway’s start-up prune keeps it, and seeds $HERMES_HOME from /opt/defaults. It then scaffolds the platform profile, reconciles optional built-in profiles (KUBE_AGENTS_ENABLED_PROFILES), links profile-targeted plugin volumes, merges the operator-rendered config overlays, copies the managed terminal settings into every profile’s .env, and starts the Session KV server.
Every one of those writes to the data volume, and a Pod runs this image in more than one container against a single copy of it. Exactly one container may do the setup. A second pass from a container that lacks the plugin volumes and the overlay ConfigMap does worse than duplicate the work. It reads the first container’s fresh plugin links as dangling and unlinks them, and reverts the overlay whose source it cannot see. AGENT_SHARED_STATE_SETUP decides which container that is:
| Value | Effect |
|---|---|
owner (or always) |
Run the setup, then exec the command. |
skip (or never) |
Skip the setup and exec the command directly. |
auto, or unset |
Infer from the command line: a bare gateway argument owns the shared state, anything else does not. |
An unrecognised value falls back to auto and logs a warning rather than guessing, because Owner, true, and 1 are otherwise indistinguishable from having set nothing at all. Under the operator (HERMES_MANAGED_DIR set) a container that skips the setup first waits, for up to AGENT_SHARED_STATE_WAIT_SECS (default 120), for the owner to seed config.yaml and to finish the WAL-to-DELETE conversion, then proceeds either way.
The operator sets the variable explicitly on every container it builds — owner on the gateway, skip on the dashboard — so auto never runs under a PlatformAgent. Auto-detection exists for deployments with no operator to ask: Compose, plain manifests, docker run. Set it by hand in those if the owning container’s own argv does not contain gateway. Above one replica the operator’s gateway would itself be such a case, running leader_elect.py, which starts hermes gateway run as a child process, so the word never appears in the container’s own arguments. The operator runs the gateway as a single replica today, so it does not render that shape.
A Dockerfile stage built on every pull request, entrypoint-gate-test, verifies every case in that table against the real entrypoint (deploy/shared/entrypoint_gate_check.sh). It runs the entrypoint once per case against a scratch $PLATFORM_AGENT_HOME and checks the decision the gate announces against what it then writes to disk. A build that targets a runtime image does not run it. The script is not shipped in the runtime image, but it is safe to pipe into a running pod when diagnosing one:
kubectl exec -i deploy/platform-agent-gateway -c platform-agent -- \ sh -s < deploy/shared/entrypoint_gate_check.shConfining it takes more than a scratch $PLATFORM_AGENT_HOME, because two of the setup’s effects are not derived from it. Step 4 points $HOME/.hermes/plugins/hermes_otel/config.yaml at the config it generates — hermes-otel resolves its config below ~/.hermes whatever HERMES_HOME says — and $HOME in the gateway is /opt/data/home, on the data PVC. Step 5 starts the Session KV server on port 8699, which is pod-wide and scoped by nothing. So each case also gets a scratch $HOME, and the server it spawns is killed by its scratch path as the case returns. The run ends by asserting both: that the pod’s real compat symlink is byte-for-byte what it was, and that no process from the run is still alive.
Three things the entrypoint does can stop the container rather than warn: the skill manifest check, the terminal check (step 4b), and a failed move of the model’s files into the shell sandbox (step 5.7).
The first runs before the setup copies anything to the data volume, in the container that owns the shared state, since a skip container has already execed the command by this point. It checks each skill tree baked into the image (/opt/hermes/skills, /opt/platform-template/skills, /opt/cluster-template/skills, /opt/tse-template/skills, /opt/a2a-template/skills) against the SHA-256 manifest the build wrote into it. If a tree no longer matches it exits non-zero, naming the offending file on stderr, with both digests when its content is what changed.
Almost every other step here degrades with a WARN; the exceptions are step 1, which runs upstream’s stage2-hook.sh and inherits set -e from the script, and the three named above. The manifest check is a deliberate exception, for the reason Security & IAM gives. A pod crash-looping with does not match the manifest baked beside it at build time is reporting a corrupted or altered image, not a misconfiguration: reinstate the image the manifest belongs to rather than looking for a setting to change.
The manifest, not the checker, is what makes the check mandatory: a tree carrying one is verified or the container refuses to start. Both sides of that pairing are root-owned in the image: the manifest inside the tree it describes, the verifier in /opt/defaults/scripts. So carries a build-time manifest but nothing here can check it is not something the agent’s own uid can arrange, and it is read the same way as a mismatch: an altered or truncated image, not a setting. A tree with no manifest inside it is skipped, which is how the same entrypoint stays a no-op in images that never reached the stage where manifests are written.
The second is the terminal check, step 4b. Hermes builds the terminal a scheduled run or a kanban wake turn uses from the profile’s own settings, not from the managed config the operator renders to /etc/hermes/config.yaml. So the entrypoint copies every terminal: setting Hermes maps to a TERMINAL_* variable (all but workspace_root) into the TERMINAL_* lines of every profile’s .env (deploy/shared/terminal_env_pin.py) and then asks Hermes what each profile resolves. If a profile would resolve any of those settings differently — a backend other than the ssh sandbox, another host — the container exits non-zero naming the profile and the TERMINAL_* variables Hermes resolves differently.
A cluster profile scaffolded after start-up gets the same check from cluster_agent_profile.py, which leaves a profile that fails it unfinished for the next reconcile to retry. In a pod crash-looping with would not use the managed ssh terminal, the [TERMINAL-ENV-PIN] ERROR: lines above it name the cause.
A key in a profile’s own config.yaml that sets one of those settings to another value, such as terminal.backend: local, outranks .env. The step therefore deletes it and leaves the rest of the file as it was, as Hermes’ own save does; if it cannot, the error names the keys to delete by hand. Any other error names the file or directory to fix, except this Hermes does not map terminal.backend, which means the image ships a Hermes the copy does not support; the image build fails on that first.
At start-up, a profile whose .env took the copy but whose config.yaml Hermes cannot read or parse gets a WARN instead: Hermes refuses that profile’s terminal, so its scheduled runs fail until the file is fixed. Without HERMES_MANAGED_DIR, which only the operator sets, the step copies a terminal: block from /etc/hermes/config.yaml if one is there. It skips with a WARN any value .env cannot hold as a plain line and ignores, with a WARN, a file it cannot read or parse, as Hermes does; with no block it does nothing. What it copies is still checked.
The third, step 5.7, stops the container with the shell sandbox migration failed when the model’s files could not be moved into the sandbox, followed by the last lines of logs/sandbox_mirror.log.
Base image pin
Section titled “Base image pin”The Hermes base image tag is pinned in tags.env at the repo root, by tag and digest together:
HERMES_AGENT_TAG=<tag>@sha256:<digest>That file holds the pin itself; this page does not repeat it, because a second copy of a digest is a second thing to forget.
Docker builds source tags.env via the HERMES_AGENT_TAG build arg:
ARG HERMES_AGENT_TAGARG HERMES_AGENT_IMAGE=nousresearch/hermes-agentFROM ${HERMES_AGENT_IMAGE}:${HERMES_AGENT_TAG} AS hermes-upstreamThe agent image does not build on that image’s layers. The build copies its files into an empty stage and leaves out GSAP (/opt/hermes/node_modules/gsap), an animation library that Hermes’ dashboard workspace installs under a licence that is not an open-source one. Hermes’ built dashboard does not contain it, and no layer of platform-agent holds it; credential-proxy holds no Hermes file at all. The Hermes image itself still does, so a mirror of it carries the package.
The copy also leaves out python-telegram-bot, the LGPL-licensed library behind Hermes’ Telegram adapter, from the Python environment. The package cache beside it is left out whole. The build removes the library from the list of packages Hermes installs on demand, so configuring Telegram on this image does not fetch it: the Telegram platform reports a missing dependency and stays off. A mirror of the Hermes image carries this package too.
Before the copy, the build upgrades every Debian package in the Hermes files to one pinned day of the Debian archive (DEBIAN_SNAPSHOT in the Dockerfile), read from snapshot.debian.org. Move that date forward in the Dockerfile to take newer Debian security fixes. A build that cannot reach that host passes a mirror of it with --build-arg DEBIAN_SNAPSHOT_URL=<root>, where the root holds the debian and debian-security archives by day. The same step removes what Hermes installs and these images do not run: ffmpeg, the C and C++ compilers with their headers, the Docker CLI, and the headless Chromium with the fonts and X11 libraries it loads.
The step also moves uv, npm and the Python packages listed in deploy/docker/python-security-overrides.txt to releases that carry published fixes, and the copy leaves out the node_modules trees that only Hermes’ own build used. The build fails if that install changes a Python package the file does not list.
Three things follow for an install. Voice messages and text-to-speech do not work, because they need ffmpeg. The browser toolset has no browser to drive, so Hermes does not offer its tools even when a profile enables the toolset. A Python package that has no prebuilt wheel cannot be installed into the image, because there is no compiler.
The ARG has no default, so every build path has to pass it — the image-build workflows, make docker-build-agents and make docker-build-credential-proxy, and dev_rebuild_agent.sh all read it from tags.env. A build that omits it fails rather than falling back to latest.
Bumping Hermes means editing tags.env and rebuilding both agent images: the pin is a build-time base, so nothing changes in a cluster until platform-agent and credential-proxy are rebuilt and rolled out.
A copy of files does not carry the Hermes image’s own configuration, so the Dockerfile declares its ENV, WORKDIR and VOLUME again, and the build compares the ENV and WORKDIR with the pinned image. A bump that changes either fails the build at that comparison and prints the difference. Nothing compares the VOLUME or any other setting.
A bump can also reach a version that python-security-overrides.txt raises a package to. The build then fails and names the line; drop that line from the file.
The tool-call audit trail does not depend on Hermes’ log line format: the tool_call_audit plugin and the chat_message_audit hook write their records to a file of their own that the fluent-bit sidecar tails as JSON (Concepts → Observability). What a bump can still change is the plugin and hook interfaces the two emitters are loaded through. Once a bumped platform-agent is running, has made a tool call and has answered a chat turn, query jsonPayload.audit_event:* in Logs Explorer. A tool_call_start record with a jsonPayload.file_path ending in audit.jsonl means the plugin still loads and writes, and a chat_message_start record means the hook does. None means the plugin or the hook no longer registers, which the agent container’s startup output and agent.log name.
Private / custom registry
Section titled “Private / custom registry”Clusters that may only pull from an approved registry need two things: a copy of every image above in that registry, and each install layer pointed at the copy.
1. Mirror the images
Section titled “1. Mirror the images”make mirror-images MIRROR_PREFIX=registry.example.com/kube-agentsThe target reads images.json, so an image added there is copied without editing the script. It
prefers crane (which copies a multi-arch manifest list byte-for-byte), falls back to skopeo,
then docker, and exits non-zero listing anything that failed — an incomplete mirror must not
look like success. ./scripts/mirror_images.sh --help documents the knobs; the ones that matter
most:
MIRROR_THIRD_PARTY_PREFIX— a separate destination for images this project does not build. Defaults toMIRROR_PREFIX.IMAGE_TAG— which release tag of the first-party images to copy. Defaults tolatest.INCLUDE— which origins to copy. Defaults tofirst-party,third-party, what a running install pulls; addbuild-timeonly if you also rebuild from source.--dry-run— print the copy plan and copy nothing.
Destinations are flat, named after the inventory entry’s name, so
quay.io/jetstack/cert-manager-webhook:v1.21.3 lands as
<prefix>/cert-manager-webhook:v1.21.3. The name, not the repository’s trailing segment —
they are the same word for almost every entry, but where they differ the name wins, and
docker.io/pgvector/pgvector lands as <prefix>/hindsight-postgresql. Every consumer below
assumes that flat layout.
2. Point the install at it
Section titled “2. Point the install at it”Pick the row for how you install. Each has two prefixes: one for the images this project builds, one for the images it does not.
| Install path | First-party | Third party | If the second is unset | Reaches cert-manager |
|---|---|---|---|---|
install.sh |
--registry-prefix |
--third-party-registry-prefix |
leaves upstream registries | yes |
| Helm chart | global.imageRegistry |
global.thirdPartyImageRegistry |
leaves upstream registries | n/a |
terraform/examples/full-install |
image_registry |
third_party_image_registry |
leaves upstream registries | yes |
The rows are one path in three coats: install.sh generates the Terraform composition’s
terraform.tfvars from its flags, and the composition passes both values to the chart’s
global.* keys. So “third party” covers the same set everywhere: LiteLLM, fluent-bit, the
NATS bus’s four images, the GitHub token minter, and Hindsight.
The chart row’s exception is cert-manager: the chart never renders it, and expects one to be
present already. The composition installs it as a separate
helm_release of the upstream chart and passes the third-party prefix to that release’s image
repositories, so a mirrored install pulls every image — cert-manager’s five included — from the
mirror. On a cluster whose cert-manager comes from somewhere else, set
enable_cert_manager = false and install it yourself; images.json carries all five of its
images, so make mirror-images has already copied them.
The composition’s
README
has the detail.
REGISTRY_PREFIX and THIRD_PARTY_REGISTRY_PREFIX live in the install configuration
(install.env) like every other knob, so re-runs reuse them; terraform.tfvars is regenerated
from it on every run. Changing the registry after a first run means editing install.env and
re-running install.sh, or passing the flag again — a flag beats the file.
IMAGE_TAG is per-run and is deliberately not recorded in install.env: the installer passes it into
terraform.tfvars as image_tag, which overrides both first-party image tags in the chart. The
third-party images are excluded, because their tags come from images.json and have nothing to
do with IMAGE_TAG.
What the prefix does not cover
Section titled “What the prefix does not cover”Three images are resolved by the operator at reconcile time rather than rendered by any install manifest, so they need the operator’s own environment set — which the chart does automatically when a prefix is in effect:
PLATFORM_AGENT_IMAGE— the agent image for aPlatformAgentthat omitsspec.deployment.image.AGENT_SANDBOX_IMAGE— the shell sandbox StatefulSet rendered beside every agent pod.FLUENT_BIT_IMAGE— the logging sidecar injected into every agent pod.
CREDENTIAL_PROXY_IMAGE and KUBE_PROXY_IMAGE need nothing on a mirror. The operator derives
the credential proxy from each agent’s own image by swapping the trailing name (platform-agent to
credential-proxy). It derives kube-proxy, and the A2A images it renders (a2a-gateway,
a2a-worker, a2a-authcallout, a2a-verifier, a2a-console, a2a-dispatcher, a2a-teams-inbound), from OPERATOR_IMAGE, else
PLATFORM_AGENT_IMAGE, the same way. The sandbox follows AGENT_SANDBOX_IMAGE, else
OPERATOR_IMAGE with the repository swapped to agent-sandbox, else the ghcr.io default; the
chart always sets AGENT_SANDBOX_IMAGE. Setting CREDENTIAL_PROXY_IMAGE or KUBE_PROXY_IMAGE
explicitly still wins, which is why install.sh leaves them unset: one explicit
CREDENTIAL_PROXY_IMAGE pins the broker for every agent in the cluster, where the per-CR
derivation keeps each broker in step with its own agent’s image.
The chart passes those three always, and CREDENTIAL_PROXY_IMAGE and A2A_BRIDGE_IMAGE only
when credentialProxy.image or hermesBridge.image (repository, tag) is set. Unset, the
operator derives the broker from each agent’s image, and the bridge from the agent image only when
that is the release platform-agent image by tag, else from the operator’s release set
(hermes-bridge.md).
Set one for a tag the two images were never built for, or for a mirror or registry that holds them
at a different tag than the agent image (set tag). For the broker alone, set it for a
digest-pinned or custom-named agent image too.
Under global.imageRegistry the rendered reference is <prefix>/<trailing name>:<tag>, so a
different repository path needs the prefix empty. The pin applies to every PlatformAgent the
operator manages; the chart’s values.yaml has the rest of the contract. On an install.sh or
Terraform install, pass the keys through TF_VAR_extra_helm_values.
Per-agent, spec.deployment.image / spec.deployment.tag on a PlatformAgent override all of
the above for that agent’s containers, except these two pins, which the operator reads before the
CR — see the
PlatformAgent CRD reference. The sandbox has
spec.harness.experimental.shellSandbox.image, which overrides AGENT_SANDBOX_IMAGE for that
agent. The fluent-bit sidecar has no CR-level equivalent; FLUENT_BIT_IMAGE is its only override.
Rebuilding rather than copying
Section titled “Rebuilding rather than copying”Every base image is a build arg, so the images can be rebuilt where the public registries are unreachable. Each takes a full reference rather than a shared prefix, because the flat mirror layout does not preserve the original paths:
make docker-build-agents \ HERMES_AGENT_IMAGE=registry.example.com/mirror/hermes-agent \ GOLANG_IMAGE=registry.example.com/mirror/golang \ ENVOY_IMAGE=registry.example.com/mirror/envoy \ DEBIAN_SNAPSHOT_URL=https://registry.example.com/debian-snapshotUnset args keep their upstream defaults, so an ordinary build is unchanged. Mirror the base
images first with INCLUDE=build-time, and use crane or skopeo rather than docker — the
Hermes pin is by digest, and a docker pull/push round trip changes it. A mirrored golang copy
is frozen at whichever patch it was copied at, and the builder stages run with GOTOOLCHAIN=local.
A later bump of the go directive in k8s-operator/go.mod past that patch therefore fails the
rebuild instead of downloading a toolchain: re-mirror, or pass a patch-pinned GOLANG_VERSION on
the same make command, for a tag that the mirror holds.
A rebuilt platform-agent image needs a hermes-bridge image at the same registry path and tag
for the bridge sidecar. make docker-build-hermes-bridge with the same variables builds the bridge
image, which is the bridge binary on the distroless base; otherwise set A2A_BRIDGE_IMAGE on the
operator to a bridge image built another way. The operator takes the credential-proxy image from the agent image in
the same way: build it with make docker-build-credential-proxy and the same variables, or set
CREDENTIAL_PROXY_IMAGE on the operator.
Registry authentication
Section titled “Registry authentication”A mirror the nodes can already read — an Artifact Registry in the same project, or a pull-through
cache — needs nothing here. One that has to be authenticated to, Harbor or Artifactory with token
auth, needs imagePullSecrets, set in whichever of these matches how the install was made:
global.imagePullSecretsin the Helm chart, a list of Secret names — or of{name: <secret>}maps, the shape aPodSpectakes; any other shape fails the render. It reaches every pod the chart renders — the operator, the LiteLLM gateway, thepre-deletecleanup Job — and, throughIMAGE_PULL_SECRETSon the controller manager andspec.deployment.imagePullSecretson thePlatformAgentit creates, the agent pods the operator renders as well.image_pull_secretsinterraform/examples/full-install, which passes the same list to the chart.spec.deployment.imagePullSecretson aPlatformAgentwritten by hand, orIMAGE_PULL_SECRETS(comma-separated Secret names) on the controller manager as the fleet-wide default for agents that do not set it. The CR replaces that default rather than adding to it, on the same terms asspec.deployment.imageagainstPLATFORM_AGENT_IMAGE.
The list is pod-scoped, so it covers every image in an agent pod: the agent, the credential-proxy
and fluent-bit sidecars, anything in initContainers/sidecars, and the OCI image volumes
AgentPlugins mount. Kubernetes has no per-container split.
The Secrets are referenced, never created. Registry credentials would otherwise live in Helm release data and Terraform state, so each Secret has to exist in the agent’s namespace before the pod is scheduled:
kubectl create namespace kubeagents-systemkubectl create secret docker-registry regcred \ --namespace kubeagents-system \ --docker-server=harbor.example.com \ --docker-username=robot\$kube-agents \ --docker-password="$TOKEN"Two things this does not cover. The provisioning scripts have no flag for it, so install.sh
sets no pull identity for the operator, LiteLLM, and token-minter pods it applies — those need a
mirror the nodes can read, or a hand-patched Deployment. Agent pods are reachable on that path:
set IMAGE_PULL_SECRETS on the controller manager yourself, the same way INSTALL.md documents
setting PLATFORM_AGENT_IMAGE. And cert-manager is a separate Helm release of an upstream chart,
unaffected by any of the above — on a cluster whose registry needs authenticating to, install it
yourself from the mirror and set enable_cert_manager = false.
Local builds
Section titled “Local builds”make docker-build at the repository root builds the agent, credential-proxy, hermes-bridge, kube-proxy, k8s-api-proxy and sandbox images; make docker-build-agents, make docker-build-credential-proxy, make docker-build-kube-proxy, make docker-build-k8s-api-proxy, make docker-build-sandbox and make docker-build-hermes-bridge build one each. The operator image builds from k8s-operator/ (above) and replay-proxy from its own Dockerfile. For iterating on the agent against a running cluster, make dev-rebuild-agent builds, pushes to a dev Artifact Registry repository and patches the running PlatformAgent — or a Deployment that pulls the image directly — to the new tag; k8s-operator/README.md covers it.