From 1a11dd3f1fbbe6f8d4739c936e82b21b593f65e2 Mon Sep 17 00:00:00 2001 From: Rafael Matias Date: Fri, 13 Oct 2023 11:20:04 +0200 Subject: [PATCH] staging: add pod anti affinity rule to avoid running ipfs-gateway on the same node as the nfs server --- .../staging/applications/ipfs-gateway/values.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/environments/staging/applications/ipfs-gateway/values.yaml b/environments/staging/applications/ipfs-gateway/values.yaml index 02511f69..89f77067 100644 --- a/environments/staging/applications/ipfs-gateway/values.yaml +++ b/environments/staging/applications/ipfs-gateway/values.yaml @@ -25,7 +25,13 @@ ipfs-cluster: resources: {} nodeSelector: {} tolerations: [] - affinity: {} + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - topologyKey: kubernetes.io/hostname + labelSelector: + matchLabels: + release: nfs-server-provisioner-xfs # Avoid running the IPFS node on the same node as the nfs server storage: storageClassName: "do-block-storage-xfs" volumeSize: "100Gi"