Merge "Prevent gitea pods from being co-scheduled"

This commit is contained in:
Zuul 2019-02-06 21:13:09 +00:00 committed by Gerrit Code Review
commit 5bcdb4029e

View File

@ -71,3 +71,13 @@ spec:
- name: secrets
secret:
secretName: gitea-app
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- gitea
topologyKey: "kubernetes.io/hostname"