Add imagePullPolicy into Helm chart (#5313)

Co-authored-by: dalli <skcha67@gmail.com>
main
Andrey Zhavoronkov 3 years ago committed by GitHub
parent 7383c17c8e
commit b8552faa8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes # This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version. # to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/) # Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.4.3 version: 0.4.4
# This is the version number of the application being deployed. This version number should be # This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to # incremented each time you make changes to the application. Versions are not expected to

@ -46,6 +46,7 @@ spec:
containers: containers:
- name: cvat-app-backend-utils-container - name: cvat-app-backend-utils-container
image: {{ .Values.cvat.backend.image }}:{{ .Values.cvat.backend.tag }} image: {{ .Values.cvat.backend.image }}:{{ .Values.cvat.backend.tag }}
imagePullPolicy: {{ .Values.cvat.backend.imagepullpolicy }}
{{- with .Values.cvat.backend.utils.resources }} {{- with .Values.cvat.backend.utils.resources }}
resources: resources:
{{- toYaml . | nindent 12 }} {{- toYaml . | nindent 12 }}

@ -33,6 +33,7 @@ spec:
containers: containers:
- name: cvat-frontend-app-container - name: cvat-frontend-app-container
image: {{ .Values.cvat.frontend.image }}:{{ .Values.cvat.frontend.tag }} image: {{ .Values.cvat.frontend.image }}:{{ .Values.cvat.frontend.tag }}
imagePullPolicy: {{ .Values.cvat.frontend.imagepullpolicy }}
{{- with .Values.cvat.frontend.resources }} {{- with .Values.cvat.frontend.resources }}
resources: resources:
{{- toYaml . | nindent 12 }} {{- toYaml . | nindent 12 }}
@ -62,4 +63,4 @@ spec:
{{- with .Values.imagePullSecrets }} {{- with .Values.imagePullSecrets }}
imagePullSecrets: imagePullSecrets:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}

@ -33,6 +33,7 @@ spec:
containers: containers:
- name: cvat-opa-app-container - name: cvat-opa-app-container
image: {{ .Values.cvat.opa.image }}:{{ .Values.cvat.opa.tag }} image: {{ .Values.cvat.opa.image }}:{{ .Values.cvat.opa.tag }}
imagePullPolicy: {{ .Values.cvat.opa.imagepullpolicy }}
args: args:
- run - run
- --server - --server

@ -75,6 +75,7 @@ cvat:
replicas: 1 replicas: 1
image: cvat/server image: cvat/server
tag: dev tag: dev
imagepullploicy: IfNotPresent
permissionFix: permissionFix:
enabled: true enabled: true
service: service:
@ -94,6 +95,7 @@ cvat:
replicas: 1 replicas: 1
image: cvat/ui image: cvat/ui
tag: dev tag: dev
imagepullploicy: IfNotPresent
labels: {} labels: {}
# test: test # test: test
annotations: {} annotations: {}
@ -136,6 +138,7 @@ cvat:
replicas: 1 replicas: 1
image: openpolicyagent/opa image: openpolicyagent/opa
tag: 0.34.2-rootless tag: 0.34.2-rootless
imagepullploicy: IfNotPresent
labels: {} labels: {}
# test: test # test: test
annotations: {} annotations: {}

@ -64,7 +64,7 @@ numprocs=1
; apps are dynamically loaded by an environment variable. It can lead to issues ; apps are dynamically loaded by an environment variable. It can lead to issues
; with docker cache. Thus it is necessary to run collectstatic here for such ; with docker cache. Thus it is necessary to run collectstatic here for such
; apps. ; apps.
command=%(ENV_HOME)s/wait-for-it.sh %(ENV_CVAT_POSTGRES_HOST)s:5432 -t 0 -- bash -ic \ command=%(ENV_HOME)s/wait-for-it.sh %(ENV_CVAT_POSTGRES_HOST)s:%(ENV_CVAT_POSTGRES_PORT)% -t 0 -- bash -ic \
"rm -f /tmp/cvat-server/httpd.pid && python3 ~/manage.py migrate && \ "rm -f /tmp/cvat-server/httpd.pid && python3 ~/manage.py migrate && \
python3 ~/manage.py collectstatic --no-input && \ python3 ~/manage.py collectstatic --no-input && \
exec python3 $HOME/manage.py runmodwsgi --log-to-terminal --port 8080 \ exec python3 $HOME/manage.py runmodwsgi --log-to-terminal --port 8080 \

Loading…
Cancel
Save