feat(chart): add gateway.colocated single-pod mode#849
Conversation
When gateway.colocated=true, the gateway container and its extraContainers (e.g. cloudflared) run as sidecars in the agent pod instead of a separate Deployment+Service. OAB connects to the gateway via localhost:8080. Closes #847
|
<@1490365068863606784> I found two blockers in the colocated chart path:
|
Summary
Adds
gateway.colocated: trueoption that runs the gateway container and itsextraContainers(e.g. cloudflared) as sidecars in the agent pod, instead of creating a separate Deployment + Service.Discord Discussion URL: https://discord.com/channels/1490282656913559673/1506041401740103774
Motivation
For simple single-agent setups (e.g. one Telegram bot on K3s), running everything in one pod is simpler:
ws://localhost:8080/wsSee:
docs/refarch/telegram-cloudflare-tunnel.mdUsage
What changed
deployment.yaml: whencolocated=true, injects gateway container + gateway.extraContainers into the agent podgateway.yaml: skips Deployment + Service whencolocated=truegateway-secret.yaml: still renders the Secret for colocated modevalues.yaml: documents the newcolocated: falsedefaultBackward compatible
colocated: false— existing deployments are unaffectedCloses #847