Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
option to disable creation of volume. and 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kervel committed Mar 15, 2022
1 parent 336fcf6 commit 6869939
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/cvat-helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# 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.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.1
version: 0.2.2

# 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
Expand Down
10 changes: 8 additions & 2 deletions charts/cvat-helm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,18 @@ Features:
Note that this chart will always create another superuser with a dynamically generated password. The generated credentials will be stored in a kubernetes secret called `cvat-superuser`.
This is useful if you have other pods that need to access the CVAT API.

* `ingress.enabled` true|false enable ingress
* `ingress.host` the public hostname for ingress
* `ingress.clusterIssuer` the cluster issuer for ingress
* `ingress.ingressClassName` the ingress class name

* `volume.createSubdir` create postgres data in a subdirectory under the volume. needed if you use block volumes
* `volume.createSubdir` create postgres data in a subdirectory under the volume. needed if you use block volumes. Note: once you set this value, changing it **will cause you to loose data** (as the postgres data directory will be changed).
* `volume.storageClassName` storage class for volume
* `volume.size` size of volume to create
* `volume.data.size` size of volume to create for storing data. Should be big enough to hold all images/videos you want to annotate.

* `volume.share.size` size of the share volume to create. If you don't use volume sharing, you can leave this at a small value.
* `volume.share.create` set this to false if you want to provide your own share volume (default=true).
* `volume.share.name` set this to the name of the share volume if you provide your own (see above). Defaults to `cvat-share`

## How to install

Expand Down
6 changes: 4 additions & 2 deletions charts/cvat-helm/templates/cvat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
claimName: cvat-logs
- name: cvat-share
persistentVolumeClaim:
claimName: cvat-share
claimName: {{ .Values.volume.share.name }}

---
apiVersion: v1
Expand Down Expand Up @@ -118,11 +118,12 @@ spec:
resources:
requests:
storage: {{ .Values.volume.logs.size }}
{{ if .Values.volume.share.create }}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: cvat-share
name: {{ .Values.volume.share.name }}
spec:
{{ if .Values.volume.share.storageClassName }}
storageClassName: {{ .Values.volume.share.storageClassName }}
Expand All @@ -133,3 +134,4 @@ spec:
resources:
requests:
storage: {{ .Values.volume.share.size }}
{{ end }}
4 changes: 3 additions & 1 deletion charts/cvat-helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ volume:
size: 1Gi
#storageClassName: gp2
share:
size: 4Gi
size: 1Gi
create: true
name: cvat-share
#storageClassName: gp2

database:
Expand Down

0 comments on commit 6869939

Please sign in to comment.