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.
26 lines
692 B
YAML
26 lines
692 B
YAML
# Placeholders only. In a real cluster create these from your secret store
|
|
# (External Secrets, sealed secrets, sops) and delete this file from the
|
|
# kustomization.
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: llmgateway-provider-keys
|
|
type: Opaque
|
|
stringData:
|
|
OPENAI_API_KEY: sk-CHANGE-ME
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: llmgateway-users
|
|
type: Opaque
|
|
stringData:
|
|
# Shape: {"users":[{"name","group","apiKey","admin","limits"}]}.
|
|
users.json: |
|
|
{
|
|
"users": [
|
|
{"name": "admin", "group": "engineering", "admin": true, "apiKey": "sk-llmgw-admin-CHANGE-ME"},
|
|
{"name": "alice", "group": "general", "apiKey": "sk-llmgw-alice-CHANGE-ME"}
|
|
]
|
|
}
|