busbar

by Busbar, Inc.

Helm chartv0.2.10App 1.5.5Apache-2.0Verified publisher

A production-grade Helm chart for busbar, a Rust LLM gateway with a data plane and a separate, loopback-by-default, mTLS-gated admin plane.

About this chart

busbar

A production-grade Helm chart for busbar, a Rust LLM gateway.

busbar runs two listeners:

  • Data plane (0.0.0.0:8080) — public LLM proxy traffic.
  • Admin plane (admin_listen, default loopback 127.0.0.1:8081) — the runtime admin API.

busbar has a boot-guard: a non-loopback admin_listen refuses to boot unless it requires mTLS (admin_tls with a client CA) or admin_insecure: true is set. This chart honors that guard — see Admin plane below.

Installing

helm repo add busbar https://getbusbar.github.io/helm-charts
helm repo update
helm install my-busbar busbar/busbar -f my-values.yaml

config is required and has no default. busbar is a gateway in front of upstream LLM providers, and it exits 1 at boot without a providers map ([error] config.yaml: invalid YAML: missing field 'providers'), so there is no honest zero-config default to ship: any "bootable" one would mean inventing credentials for an upstream nobody configured. Installing with no config therefore fails the render and prints the minimal config you need, instead of giving you a CrashLoopBackOff.

Everything else is secure by default: the admin plane stays on loopback and is not exposed, so the admin boot-guard is satisfied out of the box.

helm install my-busbar busbar/busbar -f - <<'EOF'
secrets:
  data:
    ANTHROPIC_KEY: sk-ant-...
    BUSBAR_ADMIN_TOKEN: a-long-random-admin-token
config:
  identity-providers:
    admin-tokens:
      module: admin-tokens
      token: { env: BUSBAR_ADMIN_TOKEN }
  auth:
    chain: []
    admin_auth: [admin-tokens]
  providers:
    anthropic:
      api_key: { env: ANTHROPIC_KEY }
  models:
    claude:
      provider: anthropic
  pools:
    default:
      members:
        - model: claude
EOF

Secrets are injected as environment variables from a Kubernetes Secret and referenced from the config by secret reference (api_key: { env: ANTHROPIC_KEY }) - busbar 1.5.x removed the old *_env string fields. The provider catalog ships inside the image at /etc/busbar/providers.yaml; only set providersCatalog to override it.

auth.chain: [] is an open relay and is for a first boot only; configure a real auth chain before you expose the data plane.

Config mutability

busbar 1.5.3 refuses to boot a mutable config (config.locked: false, its default) whose overlay backend is not writable, and that backend defaults to busbar-overlay.json next to the resolved config.yaml - here, /etc/busbar/busbar-overlay.json, which is a read-only ConfigMap mount under readOnlyRootFilesystem: true:

[error] config is mutable (config.locked: false) but the overlay backend
'/etc/busbar/busbar-overlay.json' is not writable (is the config directory read-only?).

So the chart manages this for you via configMutability.mode:

moderendersmeaning
locked (default)config: { locked: true }The ConfigMap is the source of truth. The admin API refuses config mutations (it still serves keys, stats, /config/reload and the rest); you change config with helm upgrade, and reloadOnConfigChange rolls the pods.
overlayconfig: { locked: false, overlay: { file: <overlayFile> } }Admin-API config mutation works again, persisted to configMutability.overlayFile (default /tmp/busbar-overlay.json, on the chart's emptyDir).
nonenothingYou own config.locked / config.overlay inside .Values.config.

locked is the default because a Helm release is a GitOps deployment, and because it is the only mode that is correct at replicaCount > 1. In overlay mode with the default path the overlay lives on a per-pod emptyDir: mutations are lost on restart, on helm upgrade and on any reschedule, and with more than one replica each replica keeps its own overlay and the replicas will diverge. Use overlay at replicaCount: 1, or point overlayFile at durable storage that every replica mounts read-write.

Anything you set under .Values.config.config wins over the chart's value in every mode.

Admin plane

The admin plane is not exposed by default. To reach it cluster-wide, set service.admin.enabled=true — which binds admin_listen: 0.0.0.0:8081. Because of the boot-guard you must ALSO enable one of:

  • adminTLS.enabled=true (recommended — mTLS, ideally via cert-manager), or
  • adminInsecure=true (insecure waiver; pair with a NetworkPolicy).

If you enable the admin Service without either, the chart fails the render with a clear message.

Governance

When governance.enabled=true, busbar owns single-writer state, so the chart switches to a StatefulSet with a PVC and replicas: 1. Horizontal scale of a shared single-writer store is not supported. Stateless (no governance) deployments use a Deployment and may scale out (HPA supported).

busbar 1.5.x dissolved the old top-level governance: config block (it is now a hard 1.x marker the binary refuses to boot) into store: plus an admin-tokens identity provider referenced from auth.admin_auth. The chart renders that shape for you.

Every durable store in 1.5.x is a signed store plugin, and the getbusbar/busbar:1.5.3 image ships no plugin tarballs (busbar --list-plugins prints no plugin tarballs found), so governance.store.module defaults to memory: keys, group usage and ledgers are ephemeral and reset on restart. To get durability, mount the signed store plugin into the pod yourself, set config.plugins.enabled: true and config.plugins.dir, then set governance.store.module. The chart fails the render if you name a non-memory module without wiring the plugin, because busbar would otherwise exit 1.

Examples

Minimal (default, admin on loopback)

secrets:
  data:
    ANTHROPIC_KEY: sk-ant-...
    BUSBAR_ADMIN_TOKEN: a-long-random-admin-token
config:
  identity-providers:
    admin-tokens:
      module: admin-tokens
      token: { env: BUSBAR_ADMIN_TOKEN }
  auth:
    chain: []                 # open relay; set a real chain before exposing the data plane
    admin_auth: [admin-tokens]
  providers:
    anthropic:
      api_key: { env: ANTHROPIC_KEY }
  models:
    claude:
      provider: anthropic
  pools:
    default:
      members:
        - model: claude       # `model:`, not the retired 1.4.x `target:`

With governance

Governance requires an admin token: put it in secrets.data under the key named by governance.adminTokenEnv (default BUSBAR_ADMIN_TOKEN); the chart wires identity-providers.admin-tokens and auth.admin_auth for you. (helm install fails fast if it is missing.)

governance:
  enabled: true
  store:
    module: memory            # see the note above about durable store plugins
  dbPath: /var/lib/busbar/governance.db
  persistence:
    size: 5Gi
    storageClass: fast-ssd
secrets:
  data:
    ANTHROPIC_KEY: sk-ant-...
    BUSBAR_ADMIN_TOKEN: super-secret-admin-token
config:
  providers:
    anthropic:
      api_key: { env: ANTHROPIC_KEY }
  models:
    claude:
      provider: anthropic
  pools:
    default:
      members:
        - model: claude

With ingress (data plane)

ingress:
  enabled: true
  className: nginx
  hosts:
    - host: gw.example.com
      paths:
        - path: /
          pathType: Prefix
  tls:
    - secretName: gw-tls
      hosts:
        - gw.example.com

With admin mTLS (cert-manager)

service:
  admin:
    enabled: true
adminTLS:
  enabled: true
  certManager:
    enabled: true
    issuerRef:
      name: busbar-ca
      kind: ClusterIssuer
  clientCASecret: busbar-admin-client-ca   # Secret with ca.crt the admin clients chain to
networkPolicy:
  enabled: true
  admin:
    allowedNamespaces:
      - platform-ops

Values

KeyDescriptionDefault
image.repositoryImage repositorygetbusbar/busbar
image.tagImage tag (falls back to .Chart.AppVersion)""
image.pullPolicyImage pull policyIfNotPresent
imagePullSecretsPull secrets for private registries[]
nameOverrideOverride the chart name""
fullnameOverrideOverride the full resource name""
replicaCountReplicas (stateless mode)1
serviceAccount.createCreate a ServiceAccounttrue
serviceAccount.nameServiceAccount name""
serviceAccount.annotationsServiceAccount annotations{}
podAnnotationsPod annotations{}
podSecurityContextPod security contexthardened (non-root, RuntimeDefault)
securityContextContainer security contexthardened (RO rootfs, drop ALL)
resourcesResource requests/limitssee values.yaml
nodeSelectorNode selector{}
tolerationsTolerations[]
affinityAffinity{}
configRequired. Structured map rendered to config.yaml (chart injects listen/admin_listen){} (fails the render)
configMutability.modelocked / overlay / none (see Config mutability)locked
configMutability.overlayFileOverlay backend path, overlay mode only. Pod-local and ephemeral by default/tmp/busbar-overlay.json
providersCatalogOptional map rendered to providers.yaml (else the image's catalog is used){}
existingConfigMapUse an existing ConfigMap instead of rendering config""
secrets.createCreate a Secret from secrets.datatrue
secrets.existingSecretUse an existing Secret""
secrets.dataKey/value secret data injected as env vars{}
governance.enabledEnable governance (StatefulSet + PVC, replicas=1)false
governance.adminTokenEnvSecret key holding the admin tokenBUSBAR_ADMIN_TOKEN
governance.store.modulestore: module. Non-memory needs a signed store plugin you supplymemory
governance.dbPathGovernance DB path (store.settings.db_path, non-memory only)/var/lib/busbar/governance.db
governance.persistence.sizeGovernance PVC size1Gi
governance.persistence.storageClassGovernance PVC storage class""
governance.persistence.accessModeGovernance PVC access modeReadWriteOnce
service.data.typeData Service typeClusterIP
service.data.portData Service port8080
service.data.annotationsData Service annotations{}
service.admin.enabledExpose the admin plane via a Servicefalse
service.admin.typeAdmin Service typeClusterIP
service.admin.portAdmin Service port8081
adminTLS.enabledTerminate mTLS on the admin listenerfalse
adminTLS.certManager.enabledIssue the admin cert via cert-managerfalse
adminTLS.certManager.issuerRef.namecert-manager issuer name""
adminTLS.certManager.issuerRef.kindcert-manager issuer kindIssuer
adminTLS.existingSecretExisting admin server cert Secret""
adminTLS.clientCASecretSecret with client CA bundle (ca.crt) for mTLS""
adminInsecureNon-loopback admin bind without mTLS (insecure waiver)false
dataTLS.enabledTerminate TLS on the data listenerfalse
dataTLS.existingSecretExisting data TLS cert Secret""
ingress.enabledCreate a data-plane Ingressfalse
ingress.classNameIngressClass name""
ingress.annotationsIngress annotations{}
ingress.hostsIngress hosts[]
ingress.tlsIngress TLS config[]
networkPolicy.enabledCreate a NetworkPolicyfalse
networkPolicy.admin.allowedNamespacesNamespaces allowed to reach the admin plane[]
autoscaling.enabledEnable an HPA (data Deployment only)false
autoscaling.minReplicasHPA min replicas1
autoscaling.maxReplicasHPA max replicas5
autoscaling.targetCPUUtilizationPercentageHPA target CPU80
podDisruptionBudget.enabledCreate a PodDisruptionBudgetfalse
podDisruptionBudget.minAvailablePDB minAvailable1
reloadOnConfigChangeRoll pods on config/secret change (checksum)true

Deploy busbar with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has busbar 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 chartbusbar is pinned at v0.2.10 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