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.
23 lines
795 B
YAML
23 lines
795 B
YAML
# Standalone LLM Gateway on Kubernetes: the compiled binary (cmd/gateway)
|
|
# as its own Deployment, behind any reverse proxy. Apply with:
|
|
#
|
|
# kubectl apply -k examples/standalone
|
|
#
|
|
# config.yaml holds the gateway configuration: the same block a plugin
|
|
# Middleware carries under spec.plugin.llmgateway, hoisted to the top
|
|
# level. configMapGenerator gives the ConfigMap a content hash, so editing
|
|
# config.yaml rolls the pods. The binary also hot-reloads the file in place
|
|
# (-reload-interval), and users.json is reloaded by the gateway itself.
|
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
namespace: llmgateway
|
|
resources:
|
|
- namespace.yaml
|
|
- secrets.yaml
|
|
- deployment.yaml
|
|
- traefik.yaml
|
|
configMapGenerator:
|
|
- name: llmgateway-config
|
|
files:
|
|
- config.yaml
|