Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple fixes to make helm work #6137

Merged
merged 34 commits into from
Jul 25, 2023
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
0f2eb4b
[] multiple fixes to make it work
Keramblock May 12, 2023
71f15e0
Merge branch 'develop' into fix-helm
Keramblock May 12, 2023
d53faa9
Merge branch 'develop' into fix-helm
Keramblock May 15, 2023
24b60ab
updated changelog
Keramblock May 15, 2023
edf8d00
updated changelog
Keramblock May 15, 2023
8515861
Merge branch 'develop' into fix-helm
Keramblock May 15, 2023
402344d
[NOTASK] merge develop, again
Keramblock May 16, 2023
d298d10
[NOTASK] aaaand we still waiting for merge, antoher develop conflict
Keramblock May 25, 2023
2da7f88
[NOTASK] change default volume accessmode, removed default storage class
Keramblock May 25, 2023
deaf53b
turn on analytics by default
Keramblock May 26, 2023
883a0db
Add example comment for ingress
Keramblock May 26, 2023
322eb6e
Merge branch 'develop' into fix-helm
nmanovic May 26, 2023
d25ce79
fix changelog formatting
Keramblock May 26, 2023
f135743
merge remote
Keramblock May 26, 2023
cf8474a
Merge branch 'develop' into fix-helm
Keramblock May 30, 2023
2c0b8ee
one more develop conflict
Keramblock Jun 6, 2023
853772c
merge new changes from develop
Keramblock Jul 19, 2023
11fabab
trying to fix helm check
Keramblock Jul 19, 2023
e76097f
[] moving all values files to the same directory
Keramblock Jul 19, 2023
b0f0c2e
temporary remove distinct cache dir to check CI reaction
Keramblock Jul 19, 2023
63827be
Merge branch 'develop' into fix-helm
Keramblock Jul 19, 2023
a8b4042
trying to trigger helm linter
Keramblock Jul 19, 2023
f5d63af
Merge branch 'fix-helm' of github.com:Keramblock/cvat into fix-helm
Keramblock Jul 19, 2023
67e5245
trying to trigger helm linter
Keramblock Jul 19, 2023
5973a76
trying to trigger helm linter
Keramblock Jul 19, 2023
ff85522
trying to trigger helm linter
Keramblock Jul 19, 2023
3d2d493
trying to fix kubectl cp
Keramblock Jul 20, 2023
26550b2
fix default access mode for storage
Keramblock Jul 20, 2023
26db28b
fix add switch to turn off all cache dirs
Keramblock Jul 20, 2023
1c3a8b1
fix values formatting, fix minikube deployment
Keramblock Jul 24, 2023
fce4cdf
change traefik config according to azhavoro suggest
Keramblock Jul 24, 2023
bfc8659
reslove conflict with develop
Keramblock Jul 24, 2023
f00b1e9
fix formatting
Keramblock Jul 24, 2023
151c4f6
Merge branch 'develop' into fix-helm
azhavoro Jul 25, 2023
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
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Support task creation with any type of data supported by the server by default from cloud storage
without use_cache option (<https://github.com/opencv/cvat/pull/6074>)
- Support task creation with cloud storage data and without use_cache option (<https://github.com/opencv/cvat/pull/6074>)
- [helm] Added configurable default storage option to chart(<https://github.com/opencv/cvat/pull/6137>)

### Changed
- Cloud storage manifest file is optional (<https://github.com/opencv/cvat/pull/6074>)

### Changed
- Updated Django to 4.2.x version (<https://github.com/opencv/cvat/pull/6122>)

- [helm] Moved test-related values to another values.file to separate it from default config(<https://github.com/opencv/cvat/pull/6137>)
### Deprecated
- The endpoint /cloudstorages/{id}/content was deprecated (<https://github.com/opencv/cvat/pull/6074>)

### Removed
- TDB
- [helm] Removed hardcoded mandatory traefik ingress usage(<https://github.com/opencv/cvat/pull/6137>)

### Fixed
- Skeletons dumping on created tasks/projects (<https://github.com/opencv/cvat/pull/6157>)
Expand Down Expand Up @@ -61,6 +62,7 @@ without use_cache option (<https://github.com/opencv/cvat/pull/6074>)
(<https://github.com/opencv/cvat/pull/6150>)
- Prevented sending of empty list of events.
(<https://github.com/opencv/cvat/pull/6154>)
- - [helm] fixed issue with multiple caches in same RWX volume, which prevents db migration to start(<https://github.com/opencv/cvat/pull/6137>)

## \[2.4.3] - 2023-04-24
### Changed
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ dependencies:
- name: traefik
version: 10.24.0
repository: https://helm.traefik.io/traefik
condition: ingress.enabled
condition: traefik.enabled
6 changes: 6 additions & 0 deletions helm-chart/templates/cvat_backend/server/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ spec:
ports:
- containerPort: 8080
volumeMounts:
- mountPath: /home/django/data/cache
name: cvat-server-backend-cache
- mountPath: /home/django/data
name: cvat-backend-data
subPath: data
Expand All @@ -140,6 +142,8 @@ spec:
{{- end }}
volumeMounts:
{{- if .Values.cvat.backend.defaultStorage.enabled }}
- mountPath: /home/django/data/cache
name: cvat-server-backend-cache
- mountPath: /home/django/data
name: cvat-backend-data
subPath: data
Expand Down Expand Up @@ -170,6 +174,8 @@ spec:
- name: cvat-backend-data
persistentVolumeClaim:
claimName: "{{ .Release.Name }}-backend-data"
- name: cvat-server-backend-cache
emptyDir: {}
{{- end }}
{{- with .Values.cvat.backend.server.additionalVolumes }}
{{- toYaml . | nindent 8 }}
Expand Down
7 changes: 5 additions & 2 deletions helm-chart/templates/cvat_backend/storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ metadata:
tier: backend
spec:
accessModes:
- ReadWriteOnce
{{ .Values.cvat.backend.defaultStorage.accessModes | toYaml | nindent 4 }}
{{- if .Values.cvat.backend.defaultStorage.storageClassName }}
storageClassName: {{ .Values.cvat.backend.defaultStorage.storageClassName }}
{{- end }}
resources:
requests:
storage: {{ .Values.cvat.backend.defaultStorage.size }}
{{- end}}
{{- end }}
6 changes: 6 additions & 0 deletions helm-chart/templates/cvat_backend/utils/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ spec:
ports:
- containerPort: 8080
volumeMounts:
- mountPath: /home/django/data/cache
name: cvat-utils-backend-cache
- mountPath: /home/django/data
name: cvat-backend-data
subPath: data
Expand All @@ -134,6 +136,8 @@ spec:
{{- end }}
volumeMounts:
{{- if .Values.cvat.backend.defaultStorage.enabled }}
- mountPath: /home/django/data/cache
name: cvat-utils-backend-cache
- mountPath: /home/django/data
name: cvat-backend-data
subPath: data
Expand Down Expand Up @@ -164,6 +168,8 @@ spec:
- name: cvat-backend-data
persistentVolumeClaim:
claimName: "{{ .Release.Name }}-backend-data"
- name: cvat-utils-backend-cache
emptyDir: {}
{{- end }}
{{- with .Values.cvat.backend.utils.additionalVolumes }}
{{- toYaml . | nindent 8 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ spec:
{{- toYaml . | nindent 10 }}
{{- end }}
volumeMounts:
- mountPath: /home/django/data/cache
name: cvat-worker-annotation-backend-cache
- mountPath: /home/django/data
name: cvat-backend-data
subPath: data
Expand Down Expand Up @@ -135,6 +137,8 @@ spec:
{{- end }}
volumeMounts:
{{- if .Values.cvat.backend.defaultStorage.enabled }}
- mountPath: /home/django/data/cache
name: cvat-worker-annotation-backend-cache
- mountPath: /home/django/data
name: cvat-backend-data
subPath: data
Expand Down Expand Up @@ -165,6 +169,8 @@ spec:
- name: cvat-backend-data
persistentVolumeClaim:
claimName: "{{ .Release.Name }}-backend-data"
- name: cvat-worker-annotation-backend-cache
emptyDir: {}
{{- end }}
{{- with .Values.cvat.backend.worker.annotation.additionalVolumes }}
{{- toYaml . | nindent 8 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ spec:
{{- toYaml . | nindent 10 }}
{{- end }}
volumeMounts:
- mountPath: /home/django/data/cache
name: cvat-worker-export-backend-cache
- mountPath: /home/django/data
name: cvat-backend-data
subPath: data
Expand Down Expand Up @@ -135,6 +137,8 @@ spec:
{{- end }}
volumeMounts:
{{- if .Values.cvat.backend.defaultStorage.enabled }}
- mountPath: /home/django/data/cache
name: cvat-worker-export-backend-cache
- mountPath: /home/django/data
name: cvat-backend-data
subPath: data
Expand Down Expand Up @@ -165,6 +169,8 @@ spec:
- name: cvat-backend-data
persistentVolumeClaim:
claimName: "{{ .Release.Name }}-backend-data"
- name: cvat-worker-export-backend-cache
emptyDir: {}
{{- end }}
{{- with .Values.cvat.backend.worker.export.additionalVolumes }}
{{- toYaml . | nindent 8 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ spec:
{{- toYaml . | nindent 10 }}
{{- end }}
volumeMounts:
- mountPath: /home/django/data/cache
name: cvat-worker-import-backend-cache
- mountPath: /home/django/data
name: cvat-backend-data
subPath: data
Expand Down Expand Up @@ -135,6 +137,8 @@ spec:
{{- end }}
volumeMounts:
{{- if .Values.cvat.backend.defaultStorage.enabled }}
- mountPath: /home/django/data/cache
name: cvat-worker-import-backend-cache
- mountPath: /home/django/data
name: cvat-backend-data
subPath: data
Expand Down Expand Up @@ -165,6 +169,8 @@ spec:
- name: cvat-backend-data
persistentVolumeClaim:
claimName: "{{ .Release.Name }}-backend-data"
- name: cvat-worker-import-backend-cache
emptyDir: {}
{{- end }}
{{- with .Values.cvat.backend.worker.import.additionalVolumes }}
{{- toYaml . | nindent 8 }}
Expand Down
60 changes: 60 additions & 0 deletions helm-chart/tests.values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
analytics:
enabled: true

ingress:
enabled: true
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: web
kubernetes.io/ingress.class: traefik
hosts:
- host: cvat.local
paths:
- path: /api
pathType: "Prefix"
service:
name: backend-service
port: 8080
- path: /admin
pathType: "Prefix"
service:
name: backend-service
port: 8080
- path: /static
pathType: "Prefix"
service:
name: backend-service
port: 8080
- path: /django-rq
pathType: "Prefix"
service:
name: backend-service
port: 8080
- path: /git
pathType: "Prefix"
service:
name: backend-service
port: 8080
- path: /opencv
pathType: "Prefix"
service:
name: backend-service
port: 8080
- path: /profiler
pathType: "Prefix"
service:
name: backend-service
port: 8080
- path : /
pathType: "Prefix"
service:
name: frontend-service
port: 80

traefik:
enabled: true
logs:
general:
level: INFO
service:
externalIPs:
# - "192.168.49.2"
111 changes: 55 additions & 56 deletions helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ cvat:
additionalVolumeMounts: []
worker:
export:
replicas: 2
replicas: 1
Keramblock marked this conversation as resolved.
Show resolved Hide resolved
labels: {}
annotations: {}
resources: {}
Expand All @@ -34,7 +34,7 @@ cvat:
additionalVolumes: []
additionalVolumeMounts: []
import:
replicas: 2
replicas: 1
Keramblock marked this conversation as resolved.
Show resolved Hide resolved
labels: {}
annotations: {}
resources: {}
Expand Down Expand Up @@ -91,6 +91,9 @@ cvat:
name: http
defaultStorage:
enabled: true
# storageClassName: default
accessModes:
- ReadWriteMany
size: 20Gi
frontend:
replicas: 1
Expand Down Expand Up @@ -225,7 +228,7 @@ nuclio:
# password: somepass

analytics:
enabled: true
enabled: false
Keramblock marked this conversation as resolved.
Show resolved Hide resolved
clickhouseDb: cvat
clickhouseUser: user
clickhousePassword: user
Expand Down Expand Up @@ -319,62 +322,58 @@ grafana:
enabled: false

ingress:
enabled: true
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: web
kubernetes.io/ingress.class: traefik
hosts:
- host: cvat.local
paths:
- path: /api
pathType: "Prefix"
service:
name: backend-service
port: 8080
- path: /admin
pathType: "Prefix"
service:
name: backend-service
port: 8080
- path: /static
pathType: "Prefix"
service:
name: backend-service
port: 8080
- path: /django-rq
pathType: "Prefix"
service:
name: backend-service
port: 8080
- path: /git
pathType: "Prefix"
service:
name: backend-service
port: 8080
- path: /opencv
pathType: "Prefix"
service:
name: backend-service
port: 8080
- path: /profiler
pathType: "Prefix"
service:
name: backend-service
port: 8080
- path : /
pathType: "Prefix"
service:
name: frontend-service
port: 80
enabled: false
# enabled: true
# annotations:
Keramblock marked this conversation as resolved.
Show resolved Hide resolved
# traefik.ingress.kubernetes.io/router.entrypoints: web
# kubernetes.io/ingress.class: traefik
# hosts:
# - host: cvat.local
# paths:
# - path: /api
# pathType: "Prefix"
# service:
# name: backend-service
# port: 8080
# - path: /admin
# pathType: "Prefix"
# service:
# name: backend-service
# port: 8080
# - path: /static
# pathType: "Prefix"
# service:
# name: backend-service
# port: 8080
# - path: /django-rq
# pathType: "Prefix"
# service:
# name: backend-service
# port: 8080
# - path: /git
# pathType: "Prefix"
# service:
# name: backend-service
# port: 8080
# - path: /opencv
# pathType: "Prefix"
# service:
# name: backend-service
# port: 8080
# - path: /profiler
# pathType: "Prefix"
# service:
# name: backend-service
# port: 8080
# - path : /
# pathType: "Prefix"
# service:
# name: frontend-service
# port: 80
# tls:
# - hosts:
# - <your_domain>
# secretName: ingress-tls-cvat

traefik:
logs:
general:
level: INFO
service:
externalIPs:
# - "192.168.49.2"
enabled: false