From d3ccc88c208fbae2d2f0c001be6dae9c76ee8036 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Sun, 16 May 2021 12:47:40 +0100 Subject: [PATCH] Harbor replicas and anit-affinity --- manifests/harbor_chart/harbor_chart.yaml | 51 ++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/manifests/harbor_chart/harbor_chart.yaml b/manifests/harbor_chart/harbor_chart.yaml index 403ac53..6eb5b0b 100644 --- a/manifests/harbor_chart/harbor_chart.yaml +++ b/manifests/harbor_chart/harbor_chart.yaml @@ -35,19 +35,56 @@ spec: values: updateStrategy: type: Recreate + expose: + tls: + certSource: secret + secret: + secretName: harbor-harbor-ingress portal: + replicas: 2 resources: requests: memory: 64Mi + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: component + operator: In + values: + - portal + - key: app + operator: In + values: + - harbor + topologyKey: kubernetes.io/hostname core: + replicas: 2 resources: requests: memory: 64Mi + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: component + operator: In + values: + - core + - key: app + operator: In + values: + - harbor + topologyKey: kubernetes.io/hostname jobservice: + replicas: 1 resources: requests: memory: 64Mi registry: + replicas: 2 registry: resources: requests: @@ -56,3 +93,17 @@ spec: resources: requests: memory: 64Mi + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: component + operator: In + values: + - registry + - key: app + operator: In + values: + - harbor + topologyKey: kubernetes.io/hostname