Files
aevolution/deploy/kubernetes/region/dev-session-route/service.yaml
T

30 lines
1.4 KiB
YAML

# The one LoadBalancer Service AEvolution may own (ADR-0087), evolution-dev only.
# - metallb.io/loadBalancerIPs pins the dedicated internal VIP that the internal DNS
# name void.aeternalisgames.com resolves to (never the control-plane address).
# - externalTrafficPolicy Local keeps client source addresses, so the NetworkPolicy's
# ipBlock (same CIDRs) is enforceable; new connections reach only a ready pod.
# - allocateLoadBalancerNodePorts false: no node port for the session data. Local
# still makes Kubernetes allocate spec.healthCheckNodePort, an HTTP endpoint kube-proxy
# serves on every node; it carries no session traffic and must stay closed at the edge
# firewall. Its allocation and quota accounting are verified before enabling (ADR-0087).
# - loadBalancerSourceRanges duplicates the CIDR at the Service; the edge firewall is
# the third layer. TLS 1.3, the dev CA and single-use grants remain mandatory.
apiVersion: v1
kind: Service
metadata:
name: evo-region-session
annotations:
metallb.io/loadBalancerIPs: 172.10.1.202
labels:
app.kubernetes.io/name: evo-region
spec:
type: LoadBalancer
allocateLoadBalancerNodePorts: false
externalTrafficPolicy: Local
loadBalancerSourceRanges:
- 172.10.1.0/24
selector:
app.kubernetes.io/name: evo-region
ports:
- {name: session, port: 7400, targetPort: session, protocol: TCP}