Skip to content

Deploy Kaeso on Kubernetes with the Helm chart

Install Kaeso 0.7.0 on a Kubernetes cluster with its Helm chart, against PostgreSQL, ClickHouse and Valkey you bring, behind an Ingress or a Gateway API route. Master keys, long streams, scaling, upgrades and what it costs.

Published
Reading time
8 min
Author
Kaeso Team
A pale gradient of coral and pink, folding diagonally downward, with a warm light in one corner

Since 0.7.0, every Kaeso release publishes a Helm chart next to its images, pinned to that release and signed the same way. It runs the gateway and the console on your cluster, behind your Ingress controller or a Gateway API implementation, against the PostgreSQL, ClickHouse and Valkey your team already runs. This guide installs it step by step and explains the parts that differ from a Compose install.

If you don't run Kubernetes yet, it is not the simplest way to start: one Linux server runs the same release with one command, and where to run Kaeso compares the paths.

What the chart creates

ResourceWhat it does
Gateway Deployment and Service2 replicas of kaeso-gateway on port 8080, ready on /readyz, alive on /healthz; non-root, read-only root file system, no capabilities
Console Deployment and Service2 replicas of kaeso-console on port 3000
Migration Jobkaeso migrate, as a Helm hook before every install and upgrade reaches the gateways, so they never migrate side by side
Ingress, or HTTPRouteThe APIs to the gateway, every other path to the console, on one host
Metrics ServicePort 9100 only, so no route ever reaches the metrics; a ServiceMonitor is optional
PodDisruptionBudgetsAt most one gateway and one console down at a time; a HorizontalPodAutoscaler is optional
Secret <release>-generatedThe master keys the chart made, kept on upgrades and after helm uninstall

Kaeso's updater drives Docker and isn't part of the chart: a Helm install updates with helm upgrade, and the console's Updates page shows that command.

What you need

  • A cluster with Kubernetes 1.30 or later, kubectl, and Helm 3.14 or later. Helm 4 works too.
  • An Ingress controller or a Gateway API implementation, and a certificate for the domain, such as one cert-manager (opens in a new tab) issues from Let's Encrypt.
  • PostgreSQL, Valkey or Redis with maxmemory-policy noeviction, and ClickHouse if you want request logs. Managed services or operators fit production; the chart's bundled copies are for trying Kaeso out.
  • An SMTP server for sign-in links, invitations and alerts.

What it costs

The chart and Kaeso are open source under the MIT licence; you pay for the cluster and the stores. As of November 2026, the managed control plane alone costs, per cluster:

Worker nodes, load balancers, volumes, traffic and managed databases cost extra everywhere. The chart's defaults request 0.5 CPU and 1 GiB for two gateways and a little for two consoles, so two small nodes hold Kaeso itself. Prices change; check the provider's page before you decide.

1. Choose how traffic reaches Kaeso

Kaeso streams model replies, which can stay silent for minutes between chunks, and accepts image and audio uploads up to 64 MiB. Whatever sits in front of it must let both through.

  • Gateway API. The Kubernetes project recommends it for new clusters, and the chart creates an HTTPRoute when you set httpRoute.enabled. Set httpRoute.timeouts to { request: "0s" } to turn the route's timeout off. That field is an optional feature: Envoy Gateway, Istio and kgateway report support for it in the Gateway API conformance reports (opens in a new tab), while others, such as Traefik and NGINX Gateway Fabric, take timeouts in their own policy resources. See HTTP timeouts (opens in a new tab).
  • Ingress. The chart creates an Ingress by default. For a class whose name contains nginx, it sets ingress-nginx's timeouts from ingress.streamTimeoutSeconds (an hour), its body limit to 64 MiB and buffering off. For any other controller, such as Traefik, set the same in its own annotations under ingress.annotations (long streams (opens in a new tab)).

The community ingress-nginx controller was retired in March 2026 and no longer gets fixes (Kubernetes blog (opens in a new tab)). If your cluster still runs it, the chart works with it, but plan the move to another controller or to the Gateway API.

2. Put the store addresses in Secrets

The gateway reads each store's connection URL from a Secret, never from the chart's values:

kubectl create namespace kaesokubectl --namespace kaeso create secret generic kaeso-stores \  --from-literal=postgres='postgres://kaeso:<password>@postgres.example.com:5432/kaeso' \  --from-literal=clickhouse='https://kaeso:<password>@clickhouse.example.com:8443' \  --from-literal=valkey='rediss://:<password>@valkey.example.com:6380'kubectl --namespace kaeso create secret generic kaeso-smtp --from-literal=password='<password>'

A PostgreSQL user that owns its database is enough; it needn't be a superuser, as in the Compose package. Leave out clickhouse to keep no request logs: usage, limits and budgets work the same. For a Valkey whose certificate comes from a private authority, put the authority's PEM in valkey.ca.

3. Write the values

With an Ingress and cert-manager:

publicUrl: https://kaeso.example.compostgres: { existingSecret: kaeso-stores, key: postgres }clickhouse: { existingSecret: kaeso-stores, key: clickhouse }valkey: { existingSecret: kaeso-stores, key: valkey }mail:  smtp:    host: smtp.example.com    user: kaeso@example.com    from: Kaeso <kaeso@example.com>    password: { existingSecret: kaeso-smtp, key: password }  setupEmail: owner@example.comingress:  className: traefik  tls:    certManager: { issuer: letsencrypt }

With the Gateway API, replace the ingress block:

ingress:  enabled: falsehttpRoute:  enabled: true  parentRefs:    - name: public      namespace: gateway-system  timeouts: { request: "0s" }

setupEmail makes the gateway email the one-time setup link at every start until the first user exists. It needs mail.transport: smtp, the default; with log, the gateway refuses to start, so leave setupEmail out there. helm show values oci://ghcr.io/logicplanes/charts/kaeso --version 0.7.0 lists every value with what it does, and the chart checks your values against its schema, so a misspelled key fails the install instead of being ignored.

4. Install

helm install kaeso oci://ghcr.io/logicplanes/charts/kaeso --version 0.7.0 \  --namespace kaeso --values values.yaml --wait

Helm runs the migration Job first, then starts the gateways and consoles. When it returns, print the setup link if it didn't arrive by email, and open it to create the first user:

kubectl --namespace kaeso exec deployment/kaeso-gateway -- kaeso setup-link

Helm prints the same commands after the install. The link works once, for 24 hours.

5. Keep the master keys

The master keys encrypt the provider keys Kaeso stores. Without masterKeys.existingSecret, the chart makes one on the first install, keeps it in kaeso-generated on every upgrade and leaves it behind on helm uninstall. Copy it into a password manager now:

kubectl --namespace kaeso get secret kaeso-generated -o jsonpath='{.data.master-keys}' | base64 -d

A tool that renders the chart without the cluster, such as Argo CD, can't see the key the chart made last time. Give it a Secret of your own instead, and set masterKeys.existingSecret: kaeso-master-keys:

kubectl --namespace kaeso create secret generic kaeso-master-keys \  --from-literal=master-keys="$(docker run --rm ghcr.io/logicplanes/kaeso-gateway:0.7.0 master-key generate)"

Settings

The chart sets what Kubernetes decides and leaves the rest to you:

  • gateway.env takes any setting (opens in a new tab) as a variable, and gateway.extraEnvFrom takes them from a Secret or ConfigMap.
  • gateway.config takes settings in the configuration file's form, such as { upstream: { request_timeout: 900s } }; a change restarts the gateways.
  • gateway.trustedProxies names the networks whose X-Forwarded-For the gateway believes. The default covers the private ranges; name your controller's pod network to be exact.
  • serviceAccount.annotations gives the pods a cloud identity, such as eks.amazonaws.com/role-arn for Amazon Bedrock keys that sign in as the gateway's AWS role.

Guardrails and webhooks that your organizations point at services inside the cluster need their network in KAESO_GUARDRAILS_ALLOWED_NETWORKS or KAESO_WEBHOOKS_ALLOWED_NETWORKS; otherwise the gateway reaches only public HTTPS addresses. For traces, set KAESO_OTEL_ENDPOINT to your collector.

Scale and watch

gateway.replicaCount sets the number of gateways, or gateway.autoscaling.enabled scales them on CPU between minReplicas and maxReplicas. They share limits, caches and route cooldowns through Valkey. A stopping gateway keeps taking connections for gateway.preStopSeconds, then finishes its streams within 75 seconds, so rollouts and node drains don't cut requests (scaling (opens in a new tab)).

Prometheus scrapes the Service kaeso-gateway-metrics on port 9100; with the Prometheus Operator, gateway.metrics.serviceMonitor.enabled creates the ServiceMonitor (health and metrics (opens in a new tab)).

Back up

Back up PostgreSQL and, if you keep request logs, ClickHouse, with the tools your team uses for them, such as the managed service's snapshots or your operator's backups. Valkey holds only counters and caches. Keep the master keys apart from the backups: without them, the provider keys in a backup can't be read (backups and master keys (opens in a new tab)).

Upgrade to the next release

Read the release notes, back up PostgreSQL, then:

helm upgrade kaeso oci://ghcr.io/logicplanes/charts/kaeso --version <version> \  --namespace kaeso --reset-then-reuse-values --wait

The migration Job runs once; the gateways roll over only after it succeeded, and an upgrade whose migration fails changes nothing. A release whose notes ask for it, or a new major version, can ask that no old gateway runs while it migrates: scale the gateways to 0 with kubectl --namespace kaeso scale deployment/kaeso-gateway --replicas 0 first. Migrations only move forward, so a rollback past one means restoring the database backup.

Before you upgrade from 0.6 to a later release, note that 0.7.0 refuses KAESO_KPMR_INTERVAL below 5m, KAESO_MCP_SERVERS_SYNC_INTERVAL below 1m, and an SMTP user without a password; check gateway.env and gateway.config for them. You can test your settings without the cluster: docker run --rm --env-file kaeso.env ghcr.io/logicplanes/kaeso-gateway:<version> config check prints the error the gateway would stop with.

Try it out on a test cluster

bundled.enabled: true runs one copy each of PostgreSQL, ClickHouse and Valkey inside the release, with passwords the chart makes:

publicUrl: https://kaeso.example.combundled: { enabled: true }mail: { transport: log }ingress:  className: traefik  tls: { secretName: kaeso-tls }

The bundled stores have no replicas and no backups, and they need the capabilities the Compose package gives them, so a namespace that enforces the restricted Pod Security Standard (opens in a new tab) refuses them. Kaeso's own pods pass it.

Uninstall

helm uninstall kaeso --namespace kaeso removes the workloads. It keeps kaeso-generated and the bundled stores' volumes, so installing again in the namespace finds both. Delete them yourself when you really want the data gone.

Troubleshooting

What you seeWhat to do
The install fails on a valueThe chart's schema names the key. helm show values lists the right ones
The migration Job failskubectl --namespace kaeso logs job/kaeso-migrate names the store it couldn't reach
Gateways restartkubectl --namespace kaeso logs deployment/kaeso-gateway shows the setting it refused and how to fix it
Streams stop after a minuteThe controller's or route's timeout cuts them; see step 1
Uploads fail with 413The controller's body limit is below 64 MiB
The setup link never arrivesLeave out setupEmail and print the link with kaeso setup-link as in step 4, then fix SMTP

What was tested

For this guide, the published chart oci://ghcr.io/logicplanes/charts/kaeso 0.7.0 was pulled and rendered with Helm 4.3.2 with the values above: an Ingress with cert-manager, a Gateway API route, and the bundled stores. Every manifest passed kubeconform against the Kubernetes 1.30 schemas, and a misspelled value was refused by the schema. Each Kaeso release's CI installs the chart on a kind cluster with the bundled stores, creates the first user, sends a request and finds it in the request log, then upgrades while requests keep running without one failing. The chart has not been installed on a managed cluster such as EKS, GKE or AKS yet. If you run it there, tell us how it went.

Next steps

Product names in this guide belong to their owners and are used only to name the software and services involved. Kaeso is not affiliated with or endorsed by them.

By Kaeso Team

On this page

Own the gateway.Own the record.

curl -fsSLhttps://kaeso.app/install.sh | sh