diff --git a/src/main/k8s/production.yml b/src/main/k8s/production.yml index bd00737e99305d4de65df8a74cbfb2a49c7ef44c..03e84c2fea8fc268bebe44cd49b5e1838bfe2c3c 100644 --- a/src/main/k8s/production.yml +++ b/src/main/k8s/production.yml @@ -15,6 +15,16 @@ spec: app: marketplace-rest-api environment: production spec: + affinity: + nodeAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - key: speed + operator: NotIn + values: + - fast + weight: 1 containers: - name: app image: eclipsefdn/marketplace-rest-api:latest diff --git a/src/main/k8s/staging.yml b/src/main/k8s/staging.yml index d2c7ad41d655a6a8901a854cdf56eb7ac7f62cf8..2bfbb76bba998d7ac0b167c9a26f176e3d2b09a3 100644 --- a/src/main/k8s/staging.yml +++ b/src/main/k8s/staging.yml @@ -15,6 +15,16 @@ spec: app: marketplace-rest-api environment: staging spec: + affinity: + nodeAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - key: speed + operator: NotIn + values: + - fast + weight: 1 containers: - name: app image: eclipsefdn/marketplace-rest-api:latest