tfy-llm-gateway-infra

by TrueFoundry

Helm chartv0.2.10Verified publisher

TrueFoundry LLM Gateway infra stack chart

About this chart

TrueFoundry LLM Gateway Infra Stack

Parameters

global

global.auth [object] auth config

NameDescriptionValue
global.auth.secretNamesecret nametfy-llm-gateway-infra-auth

global.auth.nats [object] nats auth config

NameDescriptionValue
global.auth.nats.adminPasswordKeypassword for nats admin userNATS_ADMIN_PASSWORD
global.auth.nats.llmGatewayRequestLoggerPasswordKeypassword for nats llm-gateway-request-logger userNATS_LLM_GATEWAY_REQUEST_LOGGER_PASSWORD
global.auth.nats.clickhouseRequestLogsReaderPasswordKeypassword for nats clickhouse-request-logs-reader userNATS_CLICKHOUSE_REQUEST_LOGS_READER_PASSWORD

global.auth.clickhouse [object] clickhouse auth config

NameDescriptionValue
global.auth.clickhouse.passwordKeyclickhouse password""
global.labelslabels{}
global.annotationsannotations{}

global.virtualService [object] virtual service config

NameDescriptionValue
global.virtualService.enabledenable virtual servicefalse
global.virtualService.gatewayNamegateway nameistio-system/tfy-wildcard
global.virtualService.natsServerHostnats server host""
global.virtualService.natsMetricsServerHostnats metrics server host""
global.virtualService.clickhouseServerHostclickhouse server host""

Post Installtion Setup

Add Logging Sink Configuration as env in TrueFoundry LLM Gateway

LOGGING_SINK_CONFIGURATION: >-
    {"type": "nats", 
    "url": "wss://<natsServerHost>", 
    "username": "llm-gateway-request-logger", 
    "password": "<llmGatewayRequestLoggerPassword>", 
    "subject": "tfy-model-logs.request-logs"}

Add Clickhouse configuration as env in TrueFoundry Control Plane

CLICKHOUSE_HOST: https://<clickhouseServerHost>
CLICKHOUSE_USER: <clickhouse.user>
CLICKHOUSE_PASSWORD: <clickhouse.password>

Deploy tfy-llm-gateway-infra with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has tfy-llm-gateway-infra 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 charttfy-llm-gateway-infra 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