Skip to main content
This guide covers Option 2: Gateway Plane only. In this mode of deployment, you deploy the AI Gateway plane on your own infrastructure and the control-plane is hosted by TrueFoundry.

Prerequisites for Installation

  1. Kubernetes Cluster: K8s cluster 1.27+.
  2. 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.
  3. 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.
While signing up, you will sign up by entering your company name. This company name will be used as the tenant name. Your control plane URL will be 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.
  1. Egress access to TrueFoundry SaaS:
    • Control Plane: https://<CONTROL_PLANE_URL> (for example, https://example-company.truefoundry.cloud)
  2. Image Pull Secret: Image pull secret from TrueFoundry team to enable pulling the truefoundry images from the private registry.

Installation Instructions

1

Create Gateway Endpoint in TrueFoundry SaaS

Create an entry for Gateway Endpoints by logging into the TrueFoundry SaaS platform.
  1. Navigate to Settings -> Gateway Endpoints
  2. Create a new gateway endpoint with a unique name
  3. Enter the URL where you will be deploying your gateway
TrueFoundry Settings page showing Gateway Endpoints
Create Gateway Endpoint form in TrueFoundry SaaS
The AI Gateway installation name you provide here will be used in the next step to generate the GatewayToken.
2

Generate the AI GatewayToken

The 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.
Copy and save the GatewayToken from the response in a secure location. It will not be shown again.
Once you have the GatewayToken, proceed to create the Kubernetes secrets needed for the AI Gateway helm chart installation.
3

Create Kubernetes Secrets

We will create two secrets in this step:
  1. Store the GatewayToken
  2. Store the Image Pull Secret
We need to create a Kubernetes secret containing the GatewayToken obtained in the previous step. The helm chart expects this token under the key name TFY_API_KEY.
truefoundry-creds.yaml
Apply the secret to the Kubernetes cluster (Assuming you are installing the AI Gateway plane in the truefoundry namespace)
We need to create a Image Pull Secret to enable pulling the truefoundry images from the private registry.
truefoundry-image-pull-secret.yaml
Apply the secret to the Kubernetes cluster (Assuming you are installing the AI Gateway plane in the truefoundry namespace)
4

Create Helm Chart Values file

Create a values file as given below and replace the following values:
  • CONTROL_PLANE_URL: Your control plane URL in the format company-name.truefoundry.cloud (without the https:// prefix). For example, if your company name is example-company, then use example-company.truefoundry.cloud.
  • 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)
truefoundry-values.yaml
You can find full list of supported values here.
5

Install the Helm Chart

Install the TrueFoundry Helm chart using the values file created in the previous step:
6

Verify the Deployment

Verify that all pods are running:
You can verify the deployment by checking the health of the AI Gateway endpoint by running the following command:
A successful response indicates that the AI Gateway plane is deployed and running correctly.

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: The AI Gateway endpoint will be available at https://<GATEWAY_ENDPOINT_HOST> and can be used to make LLM inference requests through the TrueFoundry AI Gateway.

FAQ

The 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:
truefoundry-values.yaml
Then apply:
  • Only one routing method should be enabled at a time. Disable ingress.enabled and istio.virtualservice.enabled when using httpRoute.
  • The sectionName must match a named listener on your Gateway resource. Omit it if your Gateway has a single unnamed listener.
  • TLS termination is handled by the parent Gateway — no TLS configuration is needed on the HTTPRoute itself.
The 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:
truefoundry-values.yaml
Then apply: