From 1a0b36e511a35360783a8ee001eb1b38fc6656b3 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Wed, 11 Dec 2024 07:51:32 -0600 Subject: [PATCH] separate these two --- kubernetes/apps/default/sabnzbd/app/helmrelease.yaml | 11 +++++++++++ .../apps/qbittorrent/qbittorrent/app/helmrelease.yaml | 11 +++++++++++ 2 files changed, 22 insertions(+) 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