mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-12-06 11:03:52 +00:00
examples/standalone is a kustomization for the compiled gateway with restart draining, a configMapGenerator config, placeholder Secrets and an optional Traefik route. TestHandleChat_RequestLimitExceeded_BodyNeverRead now pins the limiter clock and uses an unreachable local upstream, so it no longer flakes at a minute boundary or calls api.openai.com.
27 lines
907 B
YAML
27 lines
907 B
YAML
# Gateway configuration (README "Configuration reference"). Unknown keys
|
|
# stop the binary from starting, so a typo fails loudly.
|
|
providers:
|
|
openai:
|
|
type: openai
|
|
# Read from the environment of the gateway container (deployment.yaml,
|
|
# Secret llmgateway-provider-keys). file:/path works too.
|
|
apiKey: env:OPENAI_API_KEY
|
|
discovery: true
|
|
groups:
|
|
engineering:
|
|
providers: []
|
|
general:
|
|
providers: [openai]
|
|
users:
|
|
# Mounted from Secret llmgateway-users; edits are picked up without a restart.
|
|
file: /llmgw/users/users.json
|
|
metrics:
|
|
# No allowedCIDRs: behind a proxy every request arrives from the proxy's
|
|
# address, so a CIDR allowlist would admit anyone who can reach it.
|
|
# Scrape /metrics with an admin key instead.
|
|
enabled: true
|
|
# Uncomment to share limits, breakers and metrics across the replicas.
|
|
# redis:
|
|
# address: redis.example.svc:6379
|
|
# sharedState: true
|