harbor: prefer rpi nodes

This commit is contained in:
Brad Stein 2025-12-15 23:00:11 -03:00
parent 3e3cab6845
commit d51a19cab9

View File

@ -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