Skip to content
This repository was archived by the owner on Nov 25, 2024. It is now read-only.

Commit 3c67ac3

Browse files
committed
Helm Chart - Add configuration for node selector / tolerations / affinity
Signed-off-by: Rhea Danzey <[email protected]>
1 parent c914f06 commit 3c67ac3

File tree

4 files changed

+34
-1
lines changed

4 files changed

+34
-1
lines changed

helm/dendrite/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: dendrite
3-
version: "0.14.5"
3+
version: "0.14.6"
44
appVersion: "0.13.8"
55
description: Dendrite Matrix Homeserver
66
type: application

helm/dendrite/templates/deployment.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,16 @@ spec:
113113
imagePullSecrets:
114114
{{- with .Values.imagePullSecrets }}
115115
{{ . | toYaml | nindent 6 }}
116+
{{- end }}
117+
{{- with .Values.nodeSelector }}
118+
nodeSelector:
119+
{{- toYaml . | nindent 8 }}
120+
{{- end }}
121+
{{- with .Values.affinity }}
122+
affinity:
123+
{{- toYaml . | nindent 8 }}
124+
{{- end }}
125+
{{- with .Values.tolerations }}
126+
tolerations:
127+
{{- toYaml . | nindent 8 }}
116128
{{- end }}

helm/dendrite/templates/jobs.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,18 @@ spec:
9898
volumes:
9999
- name: signing-key
100100
emptyDir: {}
101+
{{- with .Values.nodeSelector }}
102+
nodeSelector:
103+
{{- toYaml . | nindent 8 }}
104+
{{- end }}
105+
{{- with .Values.affinity }}
106+
affinity:
107+
{{- toYaml . | nindent 8 }}
108+
{{- end }}
109+
{{- with .Values.tolerations }}
110+
tolerations:
111+
{{- toYaml . | nindent 8 }}
112+
{{- end }}
101113
parallelism: 1
102114
completions: 1
103115
backoffLimit: 1

helm/dendrite/values.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,15 @@ strategy:
100100
# -- Maximum number of pods that can be scheduled above the desired number of pods
101101
maxSurge: 25%
102102

103+
# -- Node selector configuration
104+
nodeSelector: {}
105+
106+
# -- Tolerations configuration
107+
tolerations: {}
108+
109+
# -- Affinity configuration
110+
affinity: {}
111+
103112
dendrite_config:
104113
version: 2
105114
global:

0 commit comments

Comments
 (0)