fix(multiplayer): keep abandonment maintenance available

This commit is contained in:
Josh Creek
2026-09-03 21:07:50 +01:00
parent addcea9fed
commit 25cf1e0cfa
5 changed files with 45 additions and 4 deletions
+1
View File
@@ -12,6 +12,7 @@ resources:
- allocator-service.yaml
- allocator-pdb.yaml
- maintenance-deployment.yaml
- maintenance-pdb.yaml
- fleet.yaml
- fleet-autoscaler.yaml
- game-server-pdb.yaml
+21 -2
View File
@@ -7,9 +7,12 @@ metadata:
app.kubernetes.io/name: maintenance
app.kubernetes.io/component: maintenance
spec:
replicas: 1
replicas: 2
strategy:
type: Recreate
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
selector:
matchLabels:
app.kubernetes.io/name: maintenance
@@ -22,6 +25,22 @@ spec:
terminationGracePeriodSeconds: 10
serviceAccountName: maintenance
automountServiceAccountToken: false
topologySpreadConstraints:
- maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app.kubernetes.io/name: maintenance
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
topologyKey: kubernetes.io/hostname
labelSelector:
matchLabels:
app.kubernetes.io/name: maintenance
securityContext:
runAsNonRoot: true
runAsUser: 10001
+10
View File
@@ -0,0 +1,10 @@
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: maintenance
namespace: cosmic-clash
spec:
minAvailable: 1
selector:
matchLabels:
app.kubernetes.io/name: maintenance