Add topologySpreadConstraints (#814)

This commit is contained in:
Maxim Pogozhiy
2021-10-18 06:49:44 +10:00
committed by GitHub
parent 5805e39e1f
commit fce7d6d2a7
10 changed files with 322 additions and 0 deletions

View File

@@ -823,6 +823,14 @@ spec:
key: node-role.kubernetes.io/test
operator: Exists
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
runner-deployment-name: actions-runner
repository: mumoshu/actions-runner-controller-ci
# The default "summerwind/actions-runner" images are available at DockerHub:
# https://hub.docker.com/r/summerwind/actions-runner