Files
infrastructure/servers/legion/k8s/neuron-technologies/prod/mcp-ingressroute.yaml
T
Will Anderson 08ef13c40d Add sticky session affinity to MCP IngressRoute
STREAMABLE transport holds session state in-memory per-pod. With HPA
scaling to 2+ replicas and round-robin routing, requests hit different
pods and fail with "Session not found". Pin each client to one pod via
a secure HttpOnly cookie.
2026-04-26 08:07:23 -05:00

26 lines
781 B
YAML

# Traefik IngressRoute: neuron.neurontechnologies.ai → neuron-mcp service
# Exposes the Neuron MCP server externally via Cloudflare tunnel.
# MCP client config: url = https://neuron.neurontechnologies.ai/mcp
# Sticky sessions required: STREAMABLE transport holds session state in-memory;
# without affinity, multi-pod deploys fail with "Session not found".
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: neuron-mcp-api
namespace: neuron-prod
spec:
entryPoints:
- websecure
routes:
- match: Host(`neuron.neurontechnologies.ai`)
kind: Rule
services:
- name: neuron-mcp
port: 8080
sticky:
cookie:
name: neuron_mcp_affinity
secure: true
httpOnly: true