From 111416c597506c8aaf289837c237e59d0dbe0ee0 Mon Sep 17 00:00:00 2001 From: Frederic Gurr <frederic.gurr@eclipse-foundation.org> Date: Tue, 30 Jun 2020 16:51:29 +0200 Subject: [PATCH] Set nodeAffinity to not schedule webdev-apps on "fast" nodes Signed-off-by: Frederic Gurr <frederic.gurr@eclipse-foundation.org> --- src/main/k8s/production.yml | 10 ++++++++++ src/main/k8s/staging.yml | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/src/main/k8s/production.yml b/src/main/k8s/production.yml index bd00737..03e84c2 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 d2c7ad4..2bfbb76 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 -- GitLab