Skip to content

Commit 395b659

Browse files
authored
Added Helm support for Affinity and Tolerations (CrunchyData#304)
* Added support for tolerations / affinity to Helm chart with consistent flow control
1 parent 0f684e7 commit 395b659

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

helm/install/templates/manager.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,11 @@ spec:
6464
port: 8081
6565
initialDelaySeconds: 5
6666
periodSeconds: 10
67+
{{- if .Values.tolerations }}
68+
tolerations:
69+
{{- toYaml .Values.tolerations | nindent 8 }}
70+
{{- end }}
71+
{{- if .Values.affinity }}
72+
affinity:
73+
{{- toYaml .Values.affinity | nindent 8 }}
74+
{{- end }}

helm/install/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,9 @@ resources:
8787
# envOverride:
8888
# - name: PG_DEBUG
8989
# value: "true"
90+
91+
# tolerations allows you to define pod tolerations for the operator pods.
92+
tolerations: []
93+
94+
# affinity allows you to define pod affinity and anti-affinity rules for the operator pods.
95+
affinity: {}

0 commit comments

Comments
 (0)