From d41261d1cb1e3e8ba47b2e745df2de4e3e92e88a Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Thu, 2 Apr 2026 01:31:02 +0000 Subject: [PATCH] feat: add affinity to keep apps separate (#5402) Reviewed-on: https://gitea.alexlebens.dev/alexlebens/infrastructure/pulls/5402 --- clusters/cl01tl/helm/jellyfin/values.yaml | 11 +++++++++++ clusters/cl01tl/helm/plex/values.yaml | 11 +++++++++++ clusters/cl01tl/helm/qbittorrent/values.yaml | 11 +++++++++++ clusters/cl01tl/helm/slskd/values.yaml | 11 +++++++++++ 4 files changed, 44 insertions(+) diff --git a/clusters/cl01tl/helm/jellyfin/values.yaml b/clusters/cl01tl/helm/jellyfin/values.yaml index d6307e84e..5619b36b7 100644 --- a/clusters/cl01tl/helm/jellyfin/values.yaml +++ b/clusters/cl01tl/helm/jellyfin/values.yaml @@ -4,6 +4,17 @@ jellyfin: type: deployment replicas: 1 strategy: Recreate + pod: + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: app.kubernetes.io/name + operator: In + values: + - plex + topologyKey: kubernetes.io/hostname containers: main: image: diff --git a/clusters/cl01tl/helm/plex/values.yaml b/clusters/cl01tl/helm/plex/values.yaml index 3a0593273..4610ffb98 100644 --- a/clusters/cl01tl/helm/plex/values.yaml +++ b/clusters/cl01tl/helm/plex/values.yaml @@ -5,6 +5,17 @@ plex: replicas: 1 strategy: Recreate revisionHistoryLimit: 3 + pod: + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: app.kubernetes.io/name + operator: In + values: + - jellyfin + topologyKey: kubernetes.io/hostname containers: main: image: diff --git a/clusters/cl01tl/helm/qbittorrent/values.yaml b/clusters/cl01tl/helm/qbittorrent/values.yaml index cd05abf08..184cd17fa 100644 --- a/clusters/cl01tl/helm/qbittorrent/values.yaml +++ b/clusters/cl01tl/helm/qbittorrent/values.yaml @@ -5,6 +5,17 @@ qbittorrent: replicas: 1 strategy: Recreate revisionHistoryLimit: 3 + pod: + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: app.kubernetes.io/name + operator: In + values: + - slskd + topologyKey: kubernetes.io/hostname initContainers: init-sysctl: image: diff --git a/clusters/cl01tl/helm/slskd/values.yaml b/clusters/cl01tl/helm/slskd/values.yaml index a66782919..2329502b9 100644 --- a/clusters/cl01tl/helm/slskd/values.yaml +++ b/clusters/cl01tl/helm/slskd/values.yaml @@ -5,6 +5,17 @@ slskd: replicas: 1 strategy: Recreate revisionHistoryLimit: 3 + pod: + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: app.kubernetes.io/name + operator: In + values: + - qbittorrent + topologyKey: kubernetes.io/hostname initContainers: init-sysctl: image: