Skip to content

Commit

Permalink
Updates evictable pods to have the same pod affinity rules as the tes…
Browse files Browse the repository at this point in the history
…t game servers
  • Loading branch information
igooch committed Dec 3, 2024
1 parent fb32c69 commit 498d76c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/upgrade/evictablePods.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ spec:
metadata:
labels:
app: evictable-pods
# Label for use with packed game server pod affinity rules
agones.dev/role: gameserver
spec:
priorityClassName: low-priority
terminationGracePeriodSeconds: 0
Expand All @@ -53,3 +55,13 @@ spec:
limits:
memory: 52Mi
cpu: 30m
# Use same affinity as packed game server pods
affinity:
podAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels:
agones.dev/role: gameserver
topologyKey: kubernetes.io/hostname
weight: 100

0 comments on commit 498d76c

Please sign in to comment.