diff --git a/services/quality/oauth2-proxy-sonarqube.yaml b/services/quality/oauth2-proxy-sonarqube.yaml index 70daa916..36e45a90 100644 --- a/services/quality/oauth2-proxy-sonarqube.yaml +++ b/services/quality/oauth2-proxy-sonarqube.yaml @@ -56,14 +56,25 @@ spec: values: ["arm64"] - key: hardware operator: In - values: ["rpi5"] + values: ["rpi5", "rpi4"] preferredDuringSchedulingIgnoredDuringExecution: + - weight: 120 + preference: + matchExpressions: + - key: atlas.bstein.dev/spillover + operator: DoesNotExist - weight: 100 preference: matchExpressions: - key: hardware operator: In values: ["rpi5"] + - weight: 60 + preference: + matchExpressions: + - key: hardware + operator: In + values: ["rpi4"] podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - weight: 100 diff --git a/services/quality/sonarqube-deployment.yaml b/services/quality/sonarqube-deployment.yaml index 9297d1e7..6efca7de 100644 --- a/services/quality/sonarqube-deployment.yaml +++ b/services/quality/sonarqube-deployment.yaml @@ -44,14 +44,25 @@ spec: values: ["arm64"] - key: hardware operator: In - values: ["rpi5"] + values: ["rpi5", "rpi4"] preferredDuringSchedulingIgnoredDuringExecution: + - weight: 120 + preference: + matchExpressions: + - key: atlas.bstein.dev/spillover + operator: DoesNotExist - weight: 100 preference: matchExpressions: - key: hardware operator: In values: ["rpi5"] + - weight: 60 + preference: + matchExpressions: + - key: hardware + operator: In + values: ["rpi4"] - weight: 95 preference: matchExpressions: