diff --git a/kubernetes/apps/default/sabnzbd/app/helmrelease.yaml b/kubernetes/apps/default/sabnzbd/app/helmrelease.yaml index e1d6d86d..92f384d2 100644 --- a/kubernetes/apps/default/sabnzbd/app/helmrelease.yaml +++ b/kubernetes/apps/default/sabnzbd/app/helmrelease.yaml @@ -84,6 +84,17 @@ spec: fsGroupChangePolicy: OnRootMismatch supplementalGroups: [10000] seccompProfile: { type: RuntimeDefault } + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: app.kubernetes.io/name + operator: In + values: ["qbittorrent"] + topologyKey: kubernetes.io/hostname service: app: controller: sabnzbd diff --git a/kubernetes/apps/qbittorrent/qbittorrent/app/helmrelease.yaml b/kubernetes/apps/qbittorrent/qbittorrent/app/helmrelease.yaml index 314f36cd..84d5331a 100644 --- a/kubernetes/apps/qbittorrent/qbittorrent/app/helmrelease.yaml +++ b/kubernetes/apps/qbittorrent/qbittorrent/app/helmrelease.yaml @@ -76,6 +76,17 @@ spec: supplementalGroups: [10000] seccompProfile: { type: RuntimeDefault } terminationGracePeriodSeconds: 300 + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: app.kubernetes.io/name + operator: In + values: ["sabnzbd"] + topologyKey: kubernetes.io/hostname service: app: controller: *app