Files
kong-platform-llm/dev/ai-gateway-kustomization.yaml
T
Stéphane Tailland e01b15f14c Move the AI gateway into the llm namespace and drop the inlining
ai-gateway-kustomization sat in flux-system, so the team's own bootstrap
was writing into a namespace the team has no access to — the thing the
move was meant to end. It follows the others into llm, with an explicit
sourceRef namespace since k8s-platform stays in flux-system.

The control-plane ExternalSecret goes with it, for the same reason it did
in the dataplane repos: it only lived in flux-system because
substituteFrom resolves in the Kustomization's own namespace.

And this retires a workaround. proxy-kustomization inlined
OTEL_TRACES_ENDPOINT because it must stay in llm — it substitutes from a
Secret holding OPENROUTER_BEARER and LIBRECHAT_APIKEY, which must not be
copied into flux-system — and could therefore not read
dataplane-template-defaults, which existed only there. k8s-platform now
places that ConfigMap in every domain namespace, so the reference works
and the duplicated value goes. Changing the cluster trace backend is one
edit again.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-27 14:47:59 +02:00

31 lines
987 B
YAML

apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: llm-dev-ai-gateway
namespace: llm
spec:
interval: 10m
sourceRef:
kind: GitRepository
name: k8s-platform
# k8s-platform lives in flux-system: the templates are the platform's,
# this Kustomization is the team's. sourceRef resolves in the
# Kustomization's own namespace unless told otherwise.
namespace: flux-system
path: ./dataplane-template
prune: true
postBuild:
substitute:
NAME: llm-dev
NAMESPACE: llm
HOSTNAME: llm-dev.sttlab.local
substituteFrom:
- kind: ConfigMap
name: dataplane-template-defaults
# CONTROL_PLANE_ID comes from Vault via ESO instead of being hardcoded
# here: a new Konnect org then needs no edit in this repo. Not a secret —
# the id is visible in the Konnect UI URL — so flux-system is fine for it,
# unlike the token.
- kind: Secret
name: llm-dev-control-plane