diff --git a/charts/overwhelm/templates/overwhelm-controller-manager-deployment.yaml b/charts/overwhelm/templates/overwhelm-controller-manager-deployment.yaml index e357c80..725604e 100755 --- a/charts/overwhelm/templates/overwhelm-controller-manager-deployment.yaml +++ b/charts/overwhelm/templates/overwhelm-controller-manager-deployment.yaml @@ -17,6 +17,9 @@ spec: labels: {{ toYaml .Values.deployment.labels | indent 8 }} spec: + {{- with (.Values.deployment).affinity }} + affinity: {{- toYaml . | nindent 8 }} + {{- end }} {{- if and .Values.global .Values.global.imagePullSecrets }} imagePullSecrets: {{- range .Values.global.imagePullSecrets }} diff --git a/charts/overwhelm/values.yaml b/charts/overwhelm/values.yaml index f306847..d276bb4 100644 --- a/charts/overwhelm/values.yaml +++ b/charts/overwhelm/values.yaml @@ -17,4 +17,12 @@ deployment: requests: cpu: 128m memory: 64Mi + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: karpenter.sh/nodepool + operator: DoesNotExist +