Files
traefik-llmgateway/examples/standalone/traefik.yaml
lukaszraczyloandGitHub e667b6ec69 docs(examples): add a standalone Kubernetes deployment (#13)
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.
2026-11-26 19:42:48 +00:00

30 lines
799 B
YAML

# Optional: Traefik in front. Any reverse proxy works; keep its response
# timeout above your longest non-streaming generation. Remove this file
# from the kustomization if you use another ingress.
apiVersion: traefik.io/v1alpha1
kind: ServersTransport
metadata:
name: llmgateway
spec:
forwardingTimeouts:
dialTimeout: 30s
# Set explicitly: a short global responseHeaderTimeout (for example 30s)
# would cut off slow generations, which can take minutes.
responseHeaderTimeout: 20m
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: llmgateway
spec:
entryPoints:
- websecure
routes:
- match: Host(`llm.example.com`)
kind: Rule
services:
- name: llmgateway
port: 8080
serversTransport: llmgateway
tls: {}