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.
30 lines
799 B
YAML
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: {}
|