---
title: Deploy Kaeso on Kubernetes with the Helm chart
description: "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."
url: https://kaeso.app/articles/deploy-kaeso-on-kubernetes
markdown: https://kaeso.app/articles/deploy-kaeso-on-kubernetes.md
language: en
alternates:
  de: https://kaeso.app/de/articles/deploy-kaeso-on-kubernetes.md
  zh-CN: https://kaeso.app/zh-CN/articles/deploy-kaeso-on-kubernetes.md
published: 2026-11-22
authors:
  - Kaeso Team
tags:
  - self-hosting
  - kubernetes
  - helm
  - deployment
  - guide
image: https://kaeso.app/articles/deploy-kaeso-on-kubernetes/cover.jpg
index: https://kaeso.app/llms.txt
---

# 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.

> Every page, article and docs page of Kaeso is listed in https://kaeso.app/llms.txt.

- Published: 22 November 2026
- Reading time: 8 min
- Author: Kaeso Team

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](https://kaeso.app/articles/deploy-kaeso-on-a-linux-server) runs the same release with one command, and [where to run Kaeso](https://kaeso.app/articles/where-to-run-kaeso) compares the paths.

## What the chart creates

| Resource | What it does |
| --- | --- |
| Gateway Deployment and Service | 2 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 Service | 2 replicas of `kaeso-console` on port 3000 |
| Migration Job | `kaeso migrate`, as a Helm hook before every install and upgrade reaches the gateways, so they never migrate side by side |
| Ingress, or HTTPRoute | The APIs to the gateway, every other path to the console, on one host |
| Metrics Service | Port 9100 only, so no route ever reaches the metrics; a `ServiceMonitor` is optional |
| PodDisruptionBudgets | At most one gateway and one console down at a time; a HorizontalPodAutoscaler is optional |
| Secret `<release>-generated` | The 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](https://cert-manager.io/docs/installation/helm/) 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:

| Provider | Control plane | Pricing page |
| --- | --- | --- |
| Amazon EKS | $0.10 per hour in standard support | [aws.amazon.com/eks/pricing](https://aws.amazon.com/eks/pricing/) |
| Google GKE | $0.10 per hour, with a monthly credit that covers one zonal cluster per billing account | [cloud.google.com/kubernetes-engine/pricing](https://cloud.google.com/kubernetes-engine/pricing) |
| Azure AKS | No charge on the Free tier; the Standard tier is charged per cluster hour | [azure.microsoft.com/pricing/details/kubernetes-service](https://azure.microsoft.com/en-us/pricing/details/kubernetes-service/) |
| DigitalOcean Kubernetes | No charge; $40 a month for a high-availability control plane | [digitalocean.com/pricing/kubernetes](https://www.digitalocean.com/pricing/kubernetes) |
| Scaleway Kapsule | No charge for the shared control plane; dedicated ones from €0.11 per hour | [scaleway.com/en/pricing/containers](https://www.scaleway.com/en/pricing/containers/) |
| OVHcloud Managed Kubernetes | A plan without a control-plane charge, and a Standard plan charged per cluster hour | [ovhcloud.com/en/public-cloud/kubernetes](https://www.ovhcloud.com/en/public-cloud/kubernetes/) |

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](https://gateway-api.sigs.k8s.io/implementations/), while others, such as Traefik and NGINX Gateway Fabric, take timeouts in their own policy resources. See [HTTP timeouts](https://gateway-api.sigs.k8s.io/guides/user-guides/http-timeouts/).
- **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](https://docs.kaeso.app/self-hosting/domains-and-tls#long-streams)).

The community ingress-nginx controller was retired in March 2026 and no longer gets fixes ([Kubernetes blog](https://kubernetes.io/blog/2025/11/11/ingress-nginx-retirement/)). 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:

```bash
kubectl create namespace kaeso
kubectl --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:

```yaml
publicUrl: https://kaeso.example.com
postgres: { 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.com
ingress:
  className: traefik
  tls:
    certManager: { issuer: letsencrypt }
```

With the Gateway API, replace the `ingress` block:

```yaml
ingress:
  enabled: false
httpRoute:
  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

```bash
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:

```bash
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:

```bash
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`:

```bash
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](https://docs.kaeso.app/self-hosting/configuration#settings) 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](https://docs.kaeso.app/self-hosting/scaling)).

Prometheus scrapes the Service `kaeso-gateway-metrics` on port 9100; with the Prometheus Operator, `gateway.metrics.serviceMonitor.enabled` creates the `ServiceMonitor` ([health and metrics](https://docs.kaeso.app/self-hosting/monitoring)).

## 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](https://docs.kaeso.app/self-hosting/backups)).

## Upgrade to the next release

Read the release notes, back up PostgreSQL, then:

```bash
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:

```yaml
publicUrl: https://kaeso.example.com
bundled: { 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](https://kubernetes.io/docs/concepts/security/pod-security-standards/) 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 see | What to do |
| --- | --- |
| The install fails on a value | The chart's schema names the key. `helm show values` lists the right ones |
| The migration Job fails | `kubectl --namespace kaeso logs job/kaeso-migrate` names the store it couldn't reach |
| Gateways restart | `kubectl --namespace kaeso logs deployment/kaeso-gateway` shows the setting it refused and how to fix it |
| Streams stop after a minute | The controller's or route's timeout cuts them; see step 1 |
| Uploads fail with 413 | The controller's body limit is below 64 MiB |
| The setup link never arrives | Leave 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](https://kaeso.app/contact) how it went.

## Next steps

- [Kubernetes in the docs](https://docs.kaeso.app/self-hosting/platforms/kubernetes), with every value.
- [Upgrades](https://docs.kaeso.app/self-hosting/upgrades): what a release changes before you upgrade.
- [Where to run Kaeso](https://kaeso.app/articles/where-to-run-kaeso): how Kubernetes compares with the other paths.

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

## More articles

- [Kaeso on LiteLLM’s own benchmark](https://kaeso.app/articles/kaeso-on-litellms-benchmark.md): We ran ai-gateway-bench, the benchmark from BerriAI, the company behind LiteLLM, with Kaeso 0.7.0 beside LiteLLM, Bifrost and Portkey. These are the numbers and the evidence behind each one.
- [Deploy Kaeso on a Linux server with Docker Compose](https://kaeso.app/articles/deploy-kaeso-on-a-linux-server.md): Run Kaeso on any Linux server you rent or own, with the installer or by hand. Every step from the DNS record to the first user, email, backups of the volumes and updates, for Kaeso 0.7.0.

[See all articles](https://kaeso.app/articles.md)

## Own the gateway. Own the record

```bash
curl -fsSL https://kaeso.app/install.sh | sh
```

[Install Kaeso](https://docs.kaeso.app/self-hosting/installation) · [Open the live demo](https://demo.kaeso.app)
