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

Helm Chart - Add configuration for node selector / tolerations / affi… #3433

Merged
merged 2 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion helm/dendrite/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: dendrite
version: "0.14.5"
version: "0.14.6"
appVersion: "0.13.8"
description: Dendrite Matrix Homeserver
type: application
Expand Down
15 changes: 15 additions & 0 deletions helm/dendrite/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ spec:
args:
- '--config'
- '/etc/dendrite/dendrite.yaml'
{{- with .Values.extraArgs }}
{{- toYaml . | nindent 10 }}
{{- end }}
ports:
- name: http
containerPort: 8008
Expand Down Expand Up @@ -113,4 +116,16 @@ spec:
imagePullSecrets:
{{- with .Values.imagePullSecrets }}
{{ . | toYaml | nindent 6 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
12 changes: 12 additions & 0 deletions helm/dendrite/templates/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,18 @@ spec:
volumes:
- name: signing-key
emptyDir: {}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
parallelism: 1
completions: 1
backoffLimit: 1
Expand Down
12 changes: 12 additions & 0 deletions helm/dendrite/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ persistence:
# GKE, AWS & OpenStack)
storageClass:

# -- Add additional arguments to the dendrite command
extraArgs: []

# -- Add additional volumes to the Dendrite Pod
extraVolumes: []
# ex.
Expand All @@ -100,6 +103,15 @@ strategy:
# -- Maximum number of pods that can be scheduled above the desired number of pods
maxSurge: 25%

# -- Node selector configuration
nodeSelector: {}

# -- Tolerations configuration
tolerations: {}

# -- Affinity configuration
affinity: {}

dendrite_config:
version: 2
global:
Expand Down
Loading