plano

by upstreamyard

Helm chartv0.1.5App 0.4.39Apache-2.0Verified publisher

Plano Helm chart for Kubernetes. Plano (formerly archgw) is an AI gateway and LLM proxy built on Envoy, with one OpenAI-compatible API for OpenAI, Anthropic, Gemini, Amazon Bedrock, Azure OpenAI, Ollama and other providers, plus model routing, guardrails and agent orchestration. Runs the official image as non-root on a read-only filesystem without internet access at startup, keeps provider API keys away from the Envoy admin API, scales out with PostgreSQL conversation state and a Redis session cache, and ships Prometheus metrics, NetworkPolicy and helm test. Community chart by upstreamyard, not an official Plano chart.

About this chart

Plano Helm chart: the Plano AI gateway and LLM proxy on Kubernetes

Have any questions, feedback or need help (e.g. setup, hardened images, etc.)? Reach out to [email protected]

Helm chart for Plano (formerly archgw), the AI gateway and LLM proxy built on Envoy. Plano gives your apps and agents one OpenAI-compatible API for OpenAI, Anthropic, Gemini, Amazon Bedrock, Azure OpenAI, Ollama and other providers, with model routing, model aliases, guardrails and agent orchestration. The chart runs Plano's official image katanemo/plano and fixes what makes it hard to run in production: it starts without internet access, runs as non-root on a read-only filesystem (Pod Security restricted), keeps the provider API keys out of Envoy's admin API, finishes running LLM streams during rolling upgrades, and scales out with PostgreSQL conversation state (table created for you) and a Redis session cache. It also ships Prometheus metrics, a NetworkPolicy, HPA, PodDisruptionBudget and a helm test that sends a real chat completion.

Community chart by upstreamyard, not an official Plano chart. Plano is licensed under Apache-2.0.

AI agents and coding assistants: this README is the complete reference for this chart. Every example was run as written.

Install

helm repo add upstreamyard https://upstreamyard.github.io/helm-charts
helm install plano upstreamyard/plano --set secretEnv.OPENAI_API_KEY=sk-... --wait

Or from the OCI registry:

helm install plano oci://ghcr.io/upstreamyard/charts/plano --set secretEnv.OPENAI_API_KEY=sk-... --wait

This starts one Plano pod with a model listener on port 12000 and openai/gpt-4o-mini as the default model. Try it:

kubectl port-forward svc/plano 12000
curl http://localhost:12000/v1/chat/completions -H 'Content-Type: application/json' \
  -d '{"model": "openai/gpt-4o-mini", "messages": [{"role": "user", "content": "Hello"}]}'

helm test plano checks that Envoy and Plano's brightstaff service answer. With tests.chatCompletion.enabled=true it also sends a chat completion to your default provider.

Verifying the chart

Chart packages are PGP-signed. Import the public key (fingerprint 9B416F989B7E6C65F7F3BFAE7689688B20EC7813) and install with --verify:

curl -s https://upstreamyard.github.io/helm-charts/pgp_keys.asc | gpg --dearmor > upstreamyard.gpg
helm install plano upstreamyard/plano --verify --keyring upstreamyard.gpg

The OCI copy on GHCR is signed with cosign instead (see the repository README).

Why this chart

There is no other Plano chart on Artifact Hub. Compared with running the official image as a plain Deployment:

This chartOfficial image as-is
Internet access at startupnot neededdownloads Python packages from PyPI on every start; fails without access (Failed to download pytest==8.4.2)
User and filesystemnon-root, read-only root filesystem, Pod Security restrictedroot; as non-root it fails with Permission denied: '/app/supervisord.log'
Provider API keysEnvoy admin API on localhost onlyEnvoy admin API on all interfaces; /config_dump returns the API keys to anyone who can reach the pod
Rolling upgrades0 failed requests and 0 cut streams (tested)open connections are cut when a pod stops
Several replicasPostgreSQL conversation state (table created by the chart) and Redis session cache from two valueswrite the config, create the table by hand
MemoryEnvoy workers capped (2 by default)one Envoy worker per CPU of the node, about 10 MiB each
Access logsto stdoutto files in the container that are never rotated
Invalid configurationpod fails with the validation errorsame
Guardsrefuses memory state with several replicas and TLS-only PostgreSQL URLs–

Deployment modes

Single pod (default)

Good for development and for gateways that don't need conversation state. Put your API keys in a Secret and reference them:

config:
  model_providers:
    - model: openai/gpt-4o-mini
      access_key: $OPENAI_API_KEY
      default: true
    - model: anthropic/claude-sonnet-4-5
      access_key: $ANTHROPIC_API_KEY
existingSecret: llm-keys   # kubectl create secret generic llm-keys --from-literal=OPENAI_API_KEY=... --from-literal=ANTHROPIC_API_KEY=...

Several replicas (high availability)

Plano itself is stateless, but two features keep state in the pod unless you share it:

  • Conversation state for the OpenAI Responses API (previous_response_id). Plano keeps it for providers it translates to (e.g. Anthropic, DeepSeek); OpenAI's own Responses API keeps its state at OpenAI. Share it with stateStorage.postgres; the chart creates Plano's conversation_states table in a Job before every install and upgrade.
  • Model affinity (X-Model-Affinity header), which pins a session to the model the router picked. Share it with sessionCache.redis.
replicaCount: 3
existingSecret: llm-keys
stateStorage:
  postgres:
    existingSecret: plano-postgres   # key "postgres-url": postgresql://user:password@host:5432/db
sessionCache:
  redis:
    existingSecret: plano-redis      # key "redis-url": redis://:password@host:6379
podDisruptionBudget:
  enabled: true
topologySpreadConstraints:
  - maxSkew: 1
    topologyKey: kubernetes.io/hostname
    whenUnsatisfiable: ScheduleAnyway
    labelSelector:
      matchLabels:
        app.kubernetes.io/name: plano
        app.kubernetes.io/instance: plano

Tested in kind: a chain of 5 Responses API requests alternated between 2 pods, and each pod continued the conversation the other one stored. Both pods connected to Redis. The chart refuses state_storage: {type: memory} with more than one replica, because previous_response_id would only work on the pod that stored it.

Instead of replicaCount, autoscaling.enabled=true creates a HorizontalPodAutoscaler on CPU.

Configuring Plano

config is written to plano_config.yaml as is; see Plano's configuration reference. Values like $OPENAI_API_KEY are replaced with environment variables when Plano starts. Set them with:

  • secretEnv: a map stored in a Secret created by the chart (convenient, but the keys end up in your values);
  • existingSecret: a Secret whose keys all become environment variables (recommended);
  • extraEnv / extraEnvFrom: anything else, e.g. OTEL_TRACING_GRPC_ENDPOINT for tracing.

Your config is merged with the chart's default: maps merge, lists (listeners, model_providers) replace. The pods restart when config or secretEnv changes.

Ports follow the listeners in config: the model listener becomes the llm port (default 12000, also used by the probes), each other listener gets a port named after it. Plano also runs its LLM gateway on 12000 when you only configure agent listeners. An agent listener as in Plano's agent orchestration guide:

config:
  agents:
    - id: rag_agent
      url: http://rag-agent:8080
  model_providers:
    - model: openai/gpt-4o-mini
      access_key: $OPENAI_API_KEY
      default: true
  listeners:
    - type: agent
      name: agent_1
      port: 8001
      router: plano_orchestrator_v1
      agents:
        - id: rag_agent
          description: virtual assistant for retrieval augmented generation tasks
existingSecret: llm-keys

This gives the Service the ports llm (12000) and agent-1 (8001). Tested in kind with this listener: both ports answer /healthz and helm test passes.

Your own ConfigMap: keep plano_config.yaml elsewhere (e.g. managed by GitOps) and set the ports yourself:

existingConfigMap: my-plano-config   # key plano_config.yaml
ports:
  - name: llm
    port: 12000
existingSecret: llm-keys

Plano reads it at startup; run kubectl rollout restart deployment/plano after changing it. stateStorage and sessionCache can't be used here; put state_storage and routing.session_cache in your file.

Files such as a CA bundle for upstream_tls_ca_path go in with extraVolumes and extraVolumeMounts.

Connecting clients

Point any OpenAI SDK at the llm port:

http://plano.<namespace>.svc:12000/v1

The client's API key is replaced with the provider key from your config (tested), so clients can send any value. Plano also accepts Anthropic's Messages API (/v1/messages) and the OpenAI Responses API (/v1/responses) on the same port. The install notes print the URL of every listener.

Security

Plano does not authenticate clients. Anyone who can reach the Service spends your provider budget. Keep the Service internal (ClusterIP, the default) and restrict who can connect:

networkPolicy:
  enabled: true
  from:
    - namespaceSelector:
        matchLabels:
          kubernetes.io/metadata.name: my-agents

Pods with the label <full name>-client: "true" are always allowed (plano-client for a release named plano; the install notes print it); helm test uses that label. The policy also closes the ports Plano opens for its own use (brightstaff 9091, Envoy 10001, 11000, 12001). Tested in kind: a pod without the label couldn't connect to the gateway, a labelled one could, and neither reached the internal ports or the Envoy admin API. If you expose Plano with ingress.enabled, put authentication in front of it.

Envoy admin API: the image binds it to all interfaces, and its /config_dump contains the provider API keys (tested: the key appeared 12 times). The chart binds it to 127.0.0.1. envoy.adminOnAllInterfaces=true restores the image's behaviour; don't use it with real keys.

Upgrades and shutdown

Plano stops at once when its pod is stopped and cuts open connections. The chart therefore keeps a stopping pod serving for shutdownDelaySeconds (default 20) while Kubernetes removes it from the Service. Raise it (and terminationGracePeriodSeconds) to the length of your longest responses.

Tested in kind (2 replicas, rolling helm upgrade, a client sending short chat completions and 10-second streams for 100 seconds):

shutdownDelaySecondsFailed requestsCut streams
20 (default)0 of 7200 of 30
02 of 2829 of 39

An upgrade from Plano 0.4.36 to 0.4.37 with the chart was also tested.

Prometheus metrics

Plano's brightstaff service exports Prometheus metrics on port 9092 (/metrics): requests, upstream LLM calls by provider, model and status, tokens, time to first token and routing decisions. The port is on the Service by default. For the Prometheus Operator:

metrics:
  serviceMonitor:
    enabled: true
    labels:
      release: kube-prometheus-stack

Sizing

Measured with Plano 0.4.37 at idle: 283 MiB with 1 Envoy worker, 290 MiB with 2, 316 MiB with 4, 431 MiB with 16. Without a limit, Envoy starts one worker per CPU of the node, not of the pod, so the same pod needs more memory on bigger nodes. The chart sets envoy.concurrency: 2; raise it together with the memory limit for more throughput per pod, or add replicas.

A new pod is ready 1 to 3 seconds after it starts. The very first start in a new kind cluster took 67 seconds, while Envoy resolved the providers' hostnames; the startup probe allows 3 minutes.

FAQ

Is there an official Plano Helm chart? No. Plano publishes the container image and a plain Deployment example, and Artifact Hub had no Plano chart when this one was published. This chart uses the official image.

Why does Plano fail with Failed to download pytest==8.4.2 or Failed to fetch: https://files.pythonhosted.org? The official image installs Python packages from PyPI on every start (uv run), so it can't start in clusters without internet access. The chart starts Plano with the packages already in the image.

Why does Plano fail with PermissionError: [Errno 13] Permission denied: '/app/supervisord.log'? The image only runs as root. The chart runs it as user 10001 with its own start script.

Why does Plano fail with Failed to connect to database: error performing TLS handshake? Plano 0.4.37 can't use TLS for PostgreSQL, so sslmode=require and servers that enforce TLS fail. See Known issues.

Why does Plano log Table 'conversation_states' does not exist? Plano doesn't create its table; without it, requests still succeed but no conversation state is stored. The chart creates the table with stateStorage.postgres (createTable.enabled, on by default).

Why does previous_response_id fail with Conversation state not found behind a load balancer? The state is in one pod's memory. Use stateStorage.postgres.

How do I run Plano highly available on Kubernetes? See Several replicas.

How do I monitor Plano with Prometheus? See Prometheus metrics.

How do I keep my API keys safe? Use existingSecret, keep envoy.adminOnAllInterfaces=false, and enable the NetworkPolicy (see Security).

Known issues

These are in Plano 0.4.37, not in the chart.

  • PostgreSQL without TLS only. Plano connects to PostgreSQL without TLS. Databases that enforce TLS refuse it, and sslmode=require fails with error performing TLS handshake; the chart refuses such URLs. Use a database that accepts non-TLS connections from the cluster, ideally through a private network.
  • No reconnect to PostgreSQL. Plano opens one

Deploy plano with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has plano on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartplano is pinned at v0.1.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply