diff --git a/rocketchat/templates/chat-deployment.yaml b/rocketchat/templates/chat-deployment.yaml index a4022de..44ffc58 100644 --- a/rocketchat/templates/chat-deployment.yaml +++ b/rocketchat/templates/chat-deployment.yaml @@ -215,3 +215,9 @@ spec: app.kubernetes.io/instance: {{ .Release.Name }} {{- end }} {{- end }} + {{- if .Values.nodeSelector }} + nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }} + {{- end }} + {{- if .Values.tolerations }} + tolerations: {{ toYaml .Values.tolerations | nindent 8 }} + {{- end }} diff --git a/rocketchat/templates/hook-verify-mongodb-version.yaml b/rocketchat/templates/hook-verify-mongodb-version.yaml index 0eb0025..cdd1e17 100644 --- a/rocketchat/templates/hook-verify-mongodb-version.yaml +++ b/rocketchat/templates/hook-verify-mongodb-version.yaml @@ -44,4 +44,10 @@ spec: items: - key: verifyMongodb.js path: verifyMongodb.js + {{- if .Values.nodeSelector }} + nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }} + {{- end }} + {{- if .Values.tolerations }} + tolerations: {{ toYaml .Values.tolerations | nindent 8 }} + {{- end }} {{- end }} diff --git a/rocketchat/templates/microservices-account-deployment.yaml b/rocketchat/templates/microservices-account-deployment.yaml index 79fa0ce..e57c3e0 100644 --- a/rocketchat/templates/microservices-account-deployment.yaml +++ b/rocketchat/templates/microservices-account-deployment.yaml @@ -68,6 +68,12 @@ spec: {{- if .Values.extraVolumes }} {{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 6 }} {{- end }} + {{- if .Values.nodeSelector }} + nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }} + {{- end }} + {{- if .Values.tolerations }} + tolerations: {{ toYaml .Values.tolerations | nindent 8 }} + {{- end }} dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler diff --git a/rocketchat/templates/microservices-authorization-deployment.yaml b/rocketchat/templates/microservices-authorization-deployment.yaml index 1120137..9896e4e 100644 --- a/rocketchat/templates/microservices-authorization-deployment.yaml +++ b/rocketchat/templates/microservices-authorization-deployment.yaml @@ -69,6 +69,12 @@ spec: {{- if .Values.extraVolumes }} {{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 6 }} {{- end }} + {{- if .Values.nodeSelector }} + nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }} + {{- end }} + {{- if .Values.tolerations }} + tolerations: {{ toYaml .Values.tolerations | nindent 8 }} + {{- end }} dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler diff --git a/rocketchat/templates/microservices-ddp-streamer-deployment.yaml b/rocketchat/templates/microservices-ddp-streamer-deployment.yaml index 2c09110..193214f 100644 --- a/rocketchat/templates/microservices-ddp-streamer-deployment.yaml +++ b/rocketchat/templates/microservices-ddp-streamer-deployment.yaml @@ -70,6 +70,12 @@ spec: {{- if .Values.extraVolumes }} {{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 6 }} {{- end }} + {{- if .Values.nodeSelector }} + nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }} + {{- end }} + {{- if .Values.tolerations }} + tolerations: {{ toYaml .Values.tolerations | nindent 8 }} + {{- end }} dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler diff --git a/rocketchat/templates/microservices-presence-deployment.yaml b/rocketchat/templates/microservices-presence-deployment.yaml index 403e781..d0947ca 100644 --- a/rocketchat/templates/microservices-presence-deployment.yaml +++ b/rocketchat/templates/microservices-presence-deployment.yaml @@ -69,6 +69,12 @@ spec: {{- if .Values.extraVolumes }} {{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 6 }} {{- end }} + {{- if .Values.nodeSelector }} + nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }} + {{- end }} + {{- if .Values.tolerations }} + tolerations: {{ toYaml .Values.tolerations | nindent 8 }} + {{- end }} dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler diff --git a/rocketchat/templates/microservices-stream-hub-deployment.yaml b/rocketchat/templates/microservices-stream-hub-deployment.yaml index ac3b423..e66759a 100644 --- a/rocketchat/templates/microservices-stream-hub-deployment.yaml +++ b/rocketchat/templates/microservices-stream-hub-deployment.yaml @@ -79,6 +79,12 @@ spec: {{- if .Values.extraVolumes }} {{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 6 }} {{- end }} + {{- if .Values.nodeSelector }} + nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }} + {{- end }} + {{- if .Values.tolerations }} + tolerations: {{ toYaml .Values.tolerations | nindent 8 }} + {{- end }} dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler diff --git a/rocketchat/values.yaml b/rocketchat/values.yaml index a346105..53ef4c1 100644 --- a/rocketchat/values.yaml +++ b/rocketchat/values.yaml @@ -80,6 +80,10 @@ affinity: {} # - e2e-az1 # - e2e-az2 +nodeSelector: {} + +tolerations: [] + ## Use an existing secret file with the MongoDB Url and OplogUrl existingMongodbSecret: ""