From 4e44ad17c0891c9daa55db6e93762674a8db3dcc Mon Sep 17 00:00:00 2001 From: David Young Date: Sun, 8 Sep 2024 22:35:46 +1200 Subject: [PATCH] fix filebrowser affinity Signed-off-by: David Young --- charts/myprecious/Chart.yaml | 2 +- charts/myprecious/values.yaml | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/charts/myprecious/Chart.yaml b/charts/myprecious/Chart.yaml index 2ad9dfb89..0d7c6e837 100644 --- a/charts/myprecious/Chart.yaml +++ b/charts/myprecious/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.111.0 +version: 1.111.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/myprecious/values.yaml b/charts/myprecious/values.yaml index 0eb347659..06c9087cf 100644 --- a/charts/myprecious/values.yaml +++ b/charts/myprecious/values.yaml @@ -4159,7 +4159,19 @@ filebrowser: podAnnotations: kubernetes.io/egress-bandwidth: "5M" # filebrowser is not for streaming # Always prefer to cohabit with zurg - affinity: *standard_affinity + affinity: + podAffinity: + # prefer to be located with zurg, if tolerations permit + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: app.elfhosted.com/name + operator: In + values: + - zurg + topologyKey: "kubernetes.io/hostname" tolerations: *standard_tolerations envFrom: - configMapRef: