diff --git a/charts/overwhelm/templates/overwhelm-controller-manager-deployment.yaml b/charts/overwhelm/templates/overwhelm-controller-manager-deployment.yaml index e357c80..81f2ddf 100755 --- a/charts/overwhelm/templates/overwhelm-controller-manager-deployment.yaml +++ b/charts/overwhelm/templates/overwhelm-controller-manager-deployment.yaml @@ -17,6 +17,10 @@ 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..463c7d4 100644 --- a/charts/overwhelm/values.yaml +++ b/charts/overwhelm/values.yaml @@ -17,4 +17,15 @@ deployment: requests: cpu: 128m memory: 64Mi - + affinity: {} + # podAntiAffinity: + # preferredDuringSchedulingIgnoredDuringExecution: + # - podAffinityTerm: + # labelSelector: + # matchExpressions: + # - key: control-plane + # operator: In + # values: + # - controller-manager + # topologyKey: kubernetes.io/hostname + # weight: 100