diff --git a/helm-chart/templates/cvat_backend/deployment.yml b/helm-chart/templates/cvat_backend/deployment.yml index 9a35c3434a62..88dc50a091c0 100644 --- a/helm-chart/templates/cvat_backend/deployment.yml +++ b/helm-chart/templates/cvat_backend/deployment.yml @@ -130,10 +130,14 @@ spec: {{- with .Values.cvat.backend.additionalVolumeMounts }} {{- toYaml . | nindent 10 }} {{- end }} - {{- with .Values.cvat.frontend.affinity }} + {{- with .Values.cvat.backend.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.cvat.backend.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} volumes: {{- if .Values.cvat.backend.defaultStorage.enabled }} - name: cvat-backend-data diff --git a/helm-chart/templates/cvat_frontend/deployment.yml b/helm-chart/templates/cvat_frontend/deployment.yml index dc01c17f51dd..9274469e54f2 100644 --- a/helm-chart/templates/cvat_frontend/deployment.yml +++ b/helm-chart/templates/cvat_frontend/deployment.yml @@ -51,10 +51,14 @@ spec: volumes: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.cvat.frontend.affinity }} + {{- with .Values.cvat.frontend.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.cvat.frontend.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index 62fbf44827fb..17ed7649edcc 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -18,6 +18,7 @@ cvat: # test.io/test: test resources: {} affinity: {} + tolerations: [] # nodeAffinity: # requiredDuringSchedulingIgnoredDuringExecution: # nodeSelectorTerms: @@ -65,6 +66,7 @@ cvat: # test.io/test: test resources: {} affinity: {} + tolerations: [] # nodeAffinity: # requiredDuringSchedulingIgnoredDuringExecution: # nodeSelectorTerms: