diff --git a/deployment/deployment.yaml b/deployment/deployment.yaml index b05c7eb..2eda0ac 100644 --- a/deployment/deployment.yaml +++ b/deployment/deployment.yaml @@ -17,6 +17,13 @@ spec: spec: affinity: nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: kubernetes.io/hostname + operator: NotIn + values: + - masterpi preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: