kong-ai-gateway
by kong
Kong AI Gateway data plane, connecting to a Konnect AI Gateway control plane
About this chart
Kong AI Gateway
Kong AI Gateway is Kong's dedicated AI Gateway data-plane binary. This chart deploys it as a standalone, Konnect-only hybrid-mode data plane, without requiring Kong Operator or any of its CRDs.
This chart is derived from the kong chart
and shares most of its configuration surface (env, proxy, admin,
secretVolumes, certificates, etc.) but removes everything that doesn't
apply to a Konnect AI Gateway data plane: Kong Ingress Controller, Postgres
and migrations, Kong Manager, and the Developer Portal.
Table of contents
- Kong AI Gateway
- Table of contents
- Prerequisites
- Install
- Configuration
- Konnect connection
- Certificates
- Exposing the AI Gateway ingress listener
- Uninstall
Prerequisites
- A Konnect AI Gateway control plane already created in Konnect. Note its control plane and telemetry hybrid connection hostnames from its connection details page.
- A client mTLS certificate/key pair that Konnect is configured to trust for that control plane, either as a Kubernetes Secret you create yourself, or issued in-cluster via cert-manager.
Install
helm repo add kong https://charts.konghq.com
helm repo update
helm install my-ai-gateway kong/kong-ai-gateway -f my-values.yaml
See example-values/ for starting points: one using a
user-provided certificate Secret, and one using cert-manager.
Configuration
Konnect connection
Set the following under env to your Konnect AI Gateway control plane's
connection details (see
example-values/minimal-konnect-byo-cert.yaml):
env:
cluster_control_plane: CHANGEME-control-plane-endpoint.konghq.com:443
cluster_server_name: CHANGEME-control-plane-endpoint.konghq.com
cluster_telemetry_endpoint: CHANGEME-telemetry-endpoint.konghq.com:443
cluster_telemetry_server_name: CHANGEME-telemetry-endpoint.konghq.com
All other KONG_* environment variables required to boot as a Konnect data
plane (role, database, cluster_mtls, vitals, konnect_mode,
lua_ssl_trusted_certificate, status_listen, etc.) are already set by this
chart's defaults and normally should not need to change.
Certificates
By default, env.cluster_cert / env.cluster_cert_key point at
/etc/secrets/kong-cluster-cert/tls.crt and tls.key. Create a Secret named
kong-cluster-cert containing the client certificate/key Konnect expects, and
list it in secretVolumes so the chart mounts it:
secretVolumes:
- kong-cluster-cert
Alternatively, set certificates.enabled: true and certificates.cluster.enabled: true
to have cert-manager issue the certificate
for you (see example-values/minimal-konnect-cert-manager.yaml).
When using cert-manager, point env.cluster_cert / env.cluster_cert_key at
/etc/cert-manager/cluster/tls.crt / tls.key instead.
Exposing the AI Gateway ingress listener
The proxy section configures the Kubernetes Service that exposes the AI
Gateway's ingress listener, the same way it does in the kong chart's
proxy section. admin.enabled defaults to false; enable it only if you
need local Admin API access for debugging.
Uninstall
helm uninstall my-ai-gateway
Deploy kong-ai-gateway with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kong-ai-gateway 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartkong-ai-gateway is pinned at v0.4.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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