diff --git a/services/harbor/helmrelease.yaml b/services/harbor/helmrelease.yaml index d60e7e6c..0e84fa5a 100644 --- a/services/harbor/helmrelease.yaml +++ b/services/harbor/helmrelease.yaml @@ -60,6 +60,27 @@ spec: sslmode: disable redis: type: internal + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: hardware + operator: In + values: [ "rpi4", "rpi5" ] + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 90 + preference: + matchExpressions: + - key: hardware + operator: In + values: [ "rpi4" ] + - weight: 10 + preference: + matchExpressions: + - key: hardware + operator: In + values: [ "rpi5" ] trivy: enabled: false metrics: @@ -73,5 +94,92 @@ spec: existingSecret: harbor-core existingXsrfSecret: harbor-core existingXsrfSecretKey: CSRF_KEY + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: hardware + operator: In + values: [ "rpi4", "rpi5" ] + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 90 + preference: + matchExpressions: + - key: hardware + operator: In + values: [ "rpi4" ] + - weight: 10 + preference: + matchExpressions: + - key: hardware + operator: In + values: [ "rpi5" ] + jobservice: + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: hardware + operator: In + values: [ "rpi4", "rpi5" ] + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 90 + preference: + matchExpressions: + - key: hardware + operator: In + values: [ "rpi4" ] + - weight: 10 + preference: + matchExpressions: + - key: hardware + operator: In + values: [ "rpi5" ] + portal: + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: hardware + operator: In + values: [ "rpi4", "rpi5" ] + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 90 + preference: + matchExpressions: + - key: hardware + operator: In + values: [ "rpi4" ] + - weight: 10 + preference: + matchExpressions: + - key: hardware + operator: In + values: [ "rpi5" ] + registry: + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: hardware + operator: In + values: [ "rpi4", "rpi5" ] + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 90 + preference: + matchExpressions: + - key: hardware + operator: In + values: [ "rpi4" ] + - weight: 10 + preference: + matchExpressions: + - key: hardware + operator: In + values: [ "rpi5" ] updateStrategy: type: Recreate