Prerequisites for Installation
- Kubernetes Cluster: K8s cluster 1.27+.
- Dynamic Storage Provisioning: Support for dynamic PVC provisioning using block volumes (e.g., AWS EBS, Azure Disk, GCP Persistent Disk, Longhorn, OpenEBS).
-
Domain to map the ingress of the AI Gateway along with certificate for the domain. (also any ingress controller or istio gateway you are using)
This Domain will be referred as Gateway Endpoint Host in our documentation.
- TrueFoundry SaaS Account: Sign up and create a new tenant on TrueFoundry SaaS by logging in to TrueFoundry. You will receive an invitation on your email to verify your email and login.
https://<YOUR_COMPANY_NAME>.truefoundry.cloud. If your company name is example-company, then your control plane URL will be https://example-company.truefoundry.cloud.- Egress access to TrueFoundry SaaS:
- Control Plane:
https://<CONTROL_PLANE_URL>(for example,https://example-company.truefoundry.cloud)
- Control Plane:
- Image Pull Secret: Image pull secret from TrueFoundry team to enable pulling the truefoundry images from the private registry.
Installation Instructions
Create Gateway Endpoint in TrueFoundry SaaS
- Navigate to Settings → Organisation → Gateway Endpoints
- Click + to open the create form
- Fill the fields below and save


GatewayToken, and must match GATEWAY_INSTALLATION_NAME in your Helm values. Optional hardening is covered under Securing your gateway installation.Generate the AI GatewayToken
GatewayToken is used by the AI Gateway service running in your infrastructure to authenticate with the TrueFoundry control-plane. To generate it, you need to call a control-plane API using a Personal Access Token from a user with the tenant-admin role. This is a one-time call — once you have the GatewayToken, you do not need to call this API again.GatewayToken, proceed to create the Kubernetes secrets needed for the AI Gateway helm chart installation.Create Kubernetes Secrets
- Store the
GatewayToken - Store the Image Pull Secret
Create Kubernetes Secret for GatewayToken
Create Kubernetes Secret for GatewayToken
GatewayToken obtained in the previous step.
The helm chart expects this token under the key name TFY_API_KEY.truefoundry namespace)Create Kubernetes Secret for Image Pull Secret
Create Kubernetes Secret for Image Pull Secret
truefoundry namespace)Create Helm Chart Values file
- CONTROL_PLANE_URL: Full control plane URL including
https://(for examplehttps://example-company.truefoundry.cloud). The chart setsCONTROL_PLANE_URLfromglobal.controlPlaneURL. - TENANT_NAME: The tenant name (same as the company name you used to create your account on TrueFoundry SaaS)
- GATEWAY_ENDPOINT_HOST: The domain where you will expose the AI Gateway endpoint (e.g.,
gateway.example.com) - GATEWAY_INSTALLATION_NAME: Same name as the Gateway Endpoint from Create Gateway Endpoint. Always set this — it identifies this gateway installation to the control plane (independent of Kubernetes workload authentication).
Install the Helm Chart
Verify the Deployment
Securing your gateway installation
Gateway IP / CIDR
Kubernetes workload authentication
GatewayToken (chart versions greater than 0.185.9).Gateway IP / CIDR
On Create / Update Gateway Endpoint in Settings → Organisation → Gateway Endpoints, set Gateway IP / CIDR to the IPs or CIDRs of the gateway that will call the control plane (for example203.0.113.10 or 192.168.1.0/24).
When set, the control plane only accepts connections from those addresses. You can use this together with Kubernetes workload authentication.
Kubernetes workload authentication
Gateway Kubernetes identity mapping works only withtfy-llm-gateway versions greater than 0.185.9. On older versions, use the GatewayToken alone — including when you cannot expose a cluster OIDC issuer/JWKS to the control plane.
The gateway authenticates to the control plane with the installation GatewayToken and a short-lived Kubernetes service-account JWT from the gateway pod. That ties control-plane access to the pod’s service account, not only to a long-lived secret.
Upgrade the gateway chart (greater than 0.185.9)
tfy-llm-gateway chart version greater than 0.185.9. Those versions mount a projected service-account token (audience = your control plane URL, for example https://example-company.truefoundry.cloud) so the gateway can send it on control-plane calls.Confirm env.GATEWAY_INSTALLATION_NAME already matches the Gateway Endpoint name (set in Create Helm Chart Values file for every install). Also keep global.tenantName and global.controlPlaneURL as usual.Create a Kubernetes Identity Provider


Enable Identity Provider Mapping on the Gateway Endpoint
- Turn on Identity Provider Mapping.
- Select the Kubernetes IdP you created.
- Turn on Claims and set both required claims to match the namespace and service account the gateway pod actually runs as.
- Save the form.

x-tfy-tenant-name, x-tfy-gateway-installation-name, and x-tfy-authorization-token (the SA JWT) on control-plane calls, using TENANT_NAME, GATEWAY_INSTALLATION_NAME, and the projected token mounted by the chart.Accessing the AI Gateway
You can now access the AI Gateway endpoint from the TrueFoundry SaaS UI by selecting the AI Gateway endpoint from the dropdown in Playground as shown below:
https://<GATEWAY_ENDPOINT_HOST> and can be used to make LLM inference requests through the TrueFoundry AI Gateway.
FAQ
How to use HTTPRoute to route traffic using Kubernetes Gateway API?
How to use HTTPRoute to route traffic using Kubernetes Gateway API?
tfy-llm-gateway Helm chart supports the Kubernetes Gateway API as an alternative to standard Ingress resources. Use HTTPRoute when your cluster uses a Gateway API-compatible controller (e.g. Envoy Gateway, Istio, NGINX Gateway Fabric, GKE Gateway).Add the following to your truefoundry-values.yaml, setting parentRefs to point to your existing Gateway:- Only one routing method should be enabled at a time. Disable
ingress.enabledandistio.virtualservice.enabledwhen usinghttpRoute. - The
sectionNamemust match a named listener on yourGatewayresource. Omit it if your Gateway has a single unnamed listener. - TLS termination is handled by the parent
Gateway— no TLS configuration is needed on theHTTPRouteitself.
How to identity the requests coming from this Gateway in AI Monitoring?
How to identity the requests coming from this Gateway in AI Monitoring?
tfy-llm-gateway Helm chart supports DEFAULT_GATEWAY_METADATA in env to add default metadata to all the AI Gateway requests helping us use these metadata as filter in AI Monitoring Request Traces and Metrics.Add the following to your truefoundry-values.yaml, setting env.DEFAULT_GATEWAY_METADATA to point to your existing Gateway: