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 # 256k, against the 8k the other domains keep. Prompts here carry the # conversation and the MCP tool definitions and already run to 30 KB; # below this nginx spills the body to a temp file and # kong.request.get_raw_body() returns nil, which is what left ai-proxy's # log_payloads and log_statistics producing nothing at all. # # Affordable precisely because this gateway is low-traffic — the buffer is # per connection carrying a body. Do not copy it to the domain gateways # without doing that arithmetic for their volume. CLIENT_BODY_BUFFER_SIZE: 256k 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