feat(multiplayer): spread allocator replicas

This commit is contained in:
Josh Creek
2026-09-01 18:52:15 +01:00
parent 34cc994598
commit e78f805c92
3 changed files with 29 additions and 1 deletions
+16
View File
@@ -25,6 +25,22 @@ spec:
terminationGracePeriodSeconds: 10
serviceAccountName: allocator
automountServiceAccountToken: false
topologySpreadConstraints:
- maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app.kubernetes.io/name: allocator
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
topologyKey: kubernetes.io/hostname
labelSelector:
matchLabels:
app.kubernetes.io/name: allocator
securityContext:
runAsNonRoot: true
runAsUser: 10001