Skip to content

Commit e771f34

Browse files
authored
Fix: Add affinity to deployment template (#55)
1 parent a8026ef commit e771f34

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

charts/overwhelm/templates/overwhelm-controller-manager-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ spec:
1717
labels:
1818
{{ toYaml .Values.deployment.labels | indent 8 }}
1919
spec:
20+
{{- with .Values.deployment.affinity }}
21+
affinity:
22+
{{- toYaml . | nindent 8 }}
23+
{{- end }}
2024
{{- if and .Values.global .Values.global.imagePullSecrets }}
2125
imagePullSecrets:
2226
{{- range .Values.global.imagePullSecrets }}

charts/overwhelm/values.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,15 @@ deployment:
1717
requests:
1818
cpu: 128m
1919
memory: 64Mi
20-
20+
affinity: {}
21+
# podAntiAffinity:
22+
# preferredDuringSchedulingIgnoredDuringExecution:
23+
# - podAffinityTerm:
24+
# labelSelector:
25+
# matchExpressions:
26+
# - key: control-plane
27+
# operator: In
28+
# values:
29+
# - controller-manager
30+
# topologyKey: kubernetes.io/hostname
31+
# weight: 100

0 commit comments

Comments
 (0)