From dbc706407edb29a007ee728a73386324b39ef1dc Mon Sep 17 00:00:00 2001 From: Sheogorath <sheogorath@shivering-isles.com> Date: Sun, 27 Mar 2022 03:08:01 +0200 Subject: [PATCH] feat(goharbor): add anti-affinity to registry This patch should provide a first draft for anti-affinity for pods in the harbor deployment. This should help to spread harbor pods across nodes, ensuring that a single-node failure doesn't take out the entire application. --- apps/base/goharbor/release.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apps/base/goharbor/release.yaml b/apps/base/goharbor/release.yaml index 82a10cfd6..84a5bc631 100644 --- a/apps/base/goharbor/release.yaml +++ b/apps/base/goharbor/release.yaml @@ -69,6 +69,18 @@ spec: limits: memory: 128Mi cpu: 250m + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: component + operator: In + values: + - registry + topologyKey: kubernetes.io/hostname chartmuseum: resources: requests: -- GitLab