Prevent gitea pods from being co-scheduled
For scale out purposes, we only want one gitea pod per underlying kubernetes node. Use podAntiAffinity to accomplish this. Change-Id: Icd8f70cf7e1640e58133f67e8a519267ac3b36d3
This commit is contained in:
parent
35851e2053
commit
3513dfb9fc
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user