diff --git a/CHANGELOG.md b/CHANGELOG.md index 456705f50f73..c6fd9c6eb96d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Migration of `dataset_repo` application () - Helm settings for external psql database were unused by backend () - Updated WSL setup for development () +- Helm chart config () ### Security diff --git a/helm-chart/templates/cvat_backend/deployment.yml b/helm-chart/templates/cvat_backend/deployment.yml index dcfc35836ccf..1f0c701f933f 100644 --- a/helm-chart/templates/cvat_backend/deployment.yml +++ b/helm-chart/templates/cvat_backend/deployment.yml @@ -141,10 +141,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: