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

feat: Added cvat helm #26

Merged
merged 1 commit into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
23 changes: 23 additions & 0 deletions charts/cvat/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
24 changes: 24 additions & 0 deletions charts/cvat/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
dependencies:
- name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 12.1.15
- name: nuclio
repository: https://nuclio.github.io/nuclio/charts
version: 0.19.0
- name: vector
repository: https://helm.vector.dev
version: 0.19.2
- name: clickhouse
repository: https://charts.bitnami.com/bitnami
version: 4.1.16
- name: grafana
repository: https://grafana.github.io/helm-charts
version: 6.60.6
- name: traefik
repository: https://helm.traefik.io/traefik
version: 25.0.0
- name: redis
repository: https://charts.bitnami.com/bitnami
version: 18.5.0
digest: sha256:078ab405af1d5183ac9ad4085c67dbfa10f965bb86eb01b3dd53a40d5d17f616
generated: "2024-06-09T14:43:36.56104194+03:00"
62 changes: 62 additions & 0 deletions charts/cvat/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
apiVersion: v2
name: cvat
kubeVersion: ">= 1.19.0-0"
description: A Helm chart for Kubernetes

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
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.14.0

# 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
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: latest
# We dont use it, so you can override it using values.override.yaml

dependencies:
- name: postgresql
version: "12.1.*"
repository: https://charts.bitnami.com/bitnami
condition: postgresql.enabled

- name: nuclio
version: 0.19.0
repository: https://nuclio.github.io/nuclio/charts
condition: nuclio.enabled

- name: vector
version: "0.19.*"
repository: https://helm.vector.dev
condition: analytics.enabled

- name: clickhouse
version: "4.1.*"
repository: https://charts.bitnami.com/bitnami
condition: clickhouse.enabled

- name: grafana
version: "6.60.*"
repository: https://grafana.github.io/helm-charts
condition: analytics.enabled

- name: traefik
version: 25.0.0
repository: https://helm.traefik.io/traefik
condition: traefik.enabled

- name: redis
version: "18.5.*"
repository: https://charts.bitnami.com/bitnami
condition: redis.enabled
2 changes: 2 additions & 0 deletions charts/cvat/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

[See for details](https://docs.cvat.ai/docs/administration/advanced/k8s_deployment_with_helm/)
32 changes: 32 additions & 0 deletions charts/cvat/analytics/clickhouse/init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash

CLICKHOUSE_DB="${CLICKHOUSE_DB:-cvat}";

clickhouse-client --query "CREATE DATABASE IF NOT EXISTS ${CLICKHOUSE_DB};"

echo "
CREATE TABLE IF NOT EXISTS ${CLICKHOUSE_DB}.events
(
\`scope\` String NOT NULL,
\`obj_name\` String NULL,
\`obj_id\` UInt64 NULL,
\`obj_val\` String NULL,
\`source\` String NOT NULL,
\`timestamp\` DateTime64(3, 'Etc/UTC') NOT NULL,
\`count\` UInt16 NULL,
\`duration\` UInt32 DEFAULT toUInt32(0),
\`project_id\` UInt64 NULL,
\`task_id\` UInt64 NULL,
\`job_id\` UInt64 NULL,
\`user_id\` UInt64 NULL,
\`user_name\` String NULL,
\`user_email\` String NULL,
\`org_id\` UInt64 NULL,
\`org_slug\` String NULL,
\`payload\` String NULL
)
ENGINE = MergeTree
PARTITION BY toYYYYMM(timestamp)
ORDER BY (timestamp)
SETTINGS index_granularity = 8192
;" | clickhouse-client
Loading
Loading