diff --git a/kubernetes/gitea/k8s/deployment.yaml b/kubernetes/gitea/k8s/deployment.yaml index 9d84148f00..fd4769c61e 100644 --- a/kubernetes/gitea/k8s/deployment.yaml +++ b/kubernetes/gitea/k8s/deployment.yaml @@ -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"