values.yaml 9.5 KB
Newer Older
K
Kirpichev Michael 已提交
1 2 3 4
# Default values for cvat.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

5

K
Kirpichev Michael 已提交
6 7 8 9 10 11
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

cvat:
  backend:
12 13 14 15 16 17 18 19 20 21 22 23 24 25
    server:
      replicas: 1
      labels: {}
      annotations: {}
      resources: {}
      affinity: {}
      tolerations: []
      envs:
        ALLOWED_HOSTS: "*"
        DJANGO_MODWSGI_EXTRA_ARGS: ""
      additionalEnv: []
      additionalVolumes: []
      additionalVolumeMounts: []
    worker:
26
      export:
27 28 29 30 31 32 33 34 35
        replicas: 2
        labels: {}
        annotations: {}
        resources: {}
        affinity: {}
        tolerations: []
        additionalEnv: []
        additionalVolumes: []
        additionalVolumeMounts: []
36 37 38 39 40 41 42 43 44 45 46
      import:
        replicas: 2
        labels: {}
        annotations: {}
        resources: {}
        affinity: {}
        tolerations: []
        additionalEnv: []
        additionalVolumes: []
        additionalVolumeMounts: []
      annotation:
47 48 49 50 51 52 53 54 55
        replicas: 1
        labels: {}
        annotations: {}
        resources: {}
        affinity: {}
        tolerations: []
        additionalEnv: []
        additionalVolumes: []
        additionalVolumeMounts: []
56 57 58 59 60 61 62 63 64 65
      webhooks:
        replicas: 1
        labels: {}
        annotations: {}
        resources: {}
        affinity: {}
        tolerations: []
        additionalEnv: []
        additionalVolumes: []
        additionalVolumeMounts: []
M
Maxim Zhiltsov 已提交
66 67 68 69 70 71 72 73 74 75
      qualityreports:
        replicas: 1
        labels: {}
        annotations: {}
        resources: {}
        affinity: {}
        tolerations: []
        additionalEnv: []
        additionalVolumes: []
        additionalVolumeMounts: []
76 77 78 79 80 81 82 83 84 85
      analyticsreports:
        replicas: 1
        labels: {}
        annotations: {}
        resources: {}
        affinity: {}
        tolerations: []
        additionalEnv: []
        additionalVolumes: []
        additionalVolumeMounts: []
86 87 88 89 90 91 92 93 94 95
    utils:
      replicas: 1
      labels: {}
      annotations: {}
      resources: {}
      affinity: {}
      tolerations: []
      additionalEnv: []
      additionalVolumes: []
      additionalVolumeMounts: []
K
Kirpichev Michael 已提交
96
    replicas: 1
K
Kirill Sizov 已提交
97
    image: cvat/server
A
Andrey Zhavoronkov 已提交
98
    tag: v2.6.1
99
    imagePullPolicy: Always
100 101
    permissionFix:
      enabled: true
K
Kirpichev Michael 已提交
102
    service:
103 104 105 106 107 108 109 110 111
      annotations:
        traefik.ingress.kubernetes.io/service.sticky.cookie: "true"
      spec:
        type: ClusterIP
        ports:
          - port: 8080
            targetPort: 8080
            protocol: TCP
            name: http
K
Kirpichev Michael 已提交
112
    defaultStorage:
113
        enabled: true
114 115 116
#        storageClassName: default
#        accessModes:
#         - ReadWriteMany
117
        size: 20Gi
118
    disableDistinctCachePerService: false
K
Kirpichev Michael 已提交
119 120
  frontend:
    replicas: 1
K
Kirill Sizov 已提交
121
    image: cvat/ui
A
Andrey Zhavoronkov 已提交
122
    tag: v2.6.1
123
    imagePullPolicy: Always
K
Kirpichev Michael 已提交
124 125 126 127 128 129
    labels: {}
    #  test: test
    annotations: {}
    # test.io/test: test
    resources: {}
    affinity: {}
A
Andrey Zhavoronkov 已提交
130
    tolerations: []
K
Kirpichev Michael 已提交
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
    # nodeAffinity:
    #   requiredDuringSchedulingIgnoredDuringExecution:
    #     nodeSelectorTerms:
    #     - matchExpressions:
    #       - key: kubernetes.io/e2e-az-name
    #         operator: In
    #         values:
    #         - e2e-az1
    #         - e2e-az2
    additionalEnv: []
    # Example:
    #  - name: volume-from-secret
    # - name: TEST
    #  value: "test"
    additionalVolumes: []
    # Example(assumes that pvc was already created):
    # - name: tmp
    #   persistentVolumeClaim:
    #       claimName: tmp
    additionalVolumeMounts: []
    # Example:
    # -   mountPath: /tmp
    #     name: tmp
    #     subPath: test
    service:
      type: ClusterIP
      ports:
        - port: 80
          targetPort: 80
          protocol: TCP
          name: http
162 163 164
  opa:
    replicas: 1
    image: openpolicyagent/opa
165 166
    tag: 0.45.0-rootless
    imagepullploicy: IfNotPresent
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
    labels: {}
    #  test: test
    annotations: {}
    # test.io/test: test
    resources: {}
    affinity: {}
    tolerations: []
    # nodeAffinity:
    #   requiredDuringSchedulingIgnoredDuringExecution:
    #     nodeSelectorTerms:
    #     - matchExpressions:
    #       - key: kubernetes.io/e2e-az-name
    #         operator: In
    #         values:
    #         - e2e-az1
    #         - e2e-az2
    additionalEnv: []
    # Example:
    #  - name: volume-from-secret
    # - name: TEST
    #  value: "test"
    additionalVolumes: []
    # Example(assumes that pvc was already created):
    # - name: tmp
    #   persistentVolumeClaim:
    #       claimName: tmp
    additionalVolumeMounts: []
    # Example:
    # -   mountPath: /tmp
    #     name: tmp
    #     subPath: test
198
    composeCompatibleServiceName: true # Sets service name to opa in order to be compatible with Docker Compose. Necessary because changing IAM_OPA_DATA_URL via environment variables in current images. Hinders multiple deployment due to duplicate name
199 200 201 202 203 204 205
    service:
      type: ClusterIP
      ports:
        - port: 8181
          targetPort: 8181
          protocol: TCP
          name: http
K
Kirpichev Michael 已提交
206 207 208 209 210 211 212

postgresql:
  #See https://github.com/bitnami/charts/blob/master/bitnami/postgresql/ for more info
  enabled: true # false for external db
  external:
    host: 127.0.0.1
    port: 5432
213
 # If not external following config will be applied by default
214 215 216 217 218 219 220
  auth:
    existingSecret: "{{ .Release.Name }}-postgres-secret"
    username: cvat
    database: cvat
  service:
    ports:
      postgresql: 5432
K
Kirpichev Michael 已提交
221 222
  secret:
    create: true
223
    name: "{{ .Release.Name }}-postgres-secret"
K
Kirpichev Michael 已提交
224 225 226 227
    password: cvat_postgresql
    postgres_password: cvat_postgresql_postgres
    replication_password: cvat_postgresql_replica

228 229

# See https://github.com/bitnami/charts/blob/master/bitnami/redis/ for more info
K
Kirpichev Michael 已提交
230 231 232
redis:
  enabled: true
  external:
233 234
      host: 127.0.0.1
  auth:
235 236 237 238 239
    existingSecret: "{{ .Release.Name }}-redis-secret"
  secret:
    create: true
    name: "{{ .Release.Name }}-redis-secret"
    password: cvat_redis
K
Kirpichev Michael 已提交
240 241 242
  cluster:
    enabled: false

243
nuclio:
K
Kirpichev Michael 已提交
244
  enabled: false
245 246 247 248 249 250 251 252
# See https://github.com/nuclio/nuclio/blob/master/hack/k8s/helm/nuclio/values.yaml for more info
#  registry:
#    loginUrl: someurl
#    credentials:
#      username: someuser
#      password: somepass

analytics:
253 254 255 256 257 258
  enabled: true
  clickhouseDb: cvat
  clickhouseUser: user
  clickhousePassword: user
  clickhouseHost: "{{ .Release.Name }}-clickhouse"

259 260 261 262 263 264
  ingress:
    path: /analytics
    pathType: "Prefix"
    annotations:
      kubernetes.io/ingress.class: traefik
    service:
265 266
      name: grafana
      port: 80
267

268 269 270 271 272 273 274 275 276 277 278
vector:
  envFrom:
    - secretRef:
        name: cvat-analytics-secret
  existingConfigMaps:
    - cvat-vector-config
  dataDir: "/vector-data-dir"
  containerPorts:
    - name: http
      containerPort: 80
      protocol: TCP
279 280 281
  service:
    ports:
      - name: http
282
        port: 80
283
        protocol: TCP
284 285
  image:
    tag: "0.26.0-alpine"
286

287 288 289
clickhouse:
  shards: 1
  replicaCount: 1
290 291 292 293 294 295
  extraEnvVarsSecret: cvat-analytics-secret
  initdbScriptsSecret: cvat-clickhouse-init
  auth:
    username: user
    existingSecret: cvat-analytics-secret
    existingSecretKey: CLICKHOUSE_PASSWORD
296

297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344
grafana:
  datasources:
    datasources.yaml:
      apiVersion: 1
      datasources:
      - name: 'ClickHouse'
        type: 'grafana-clickhouse-datasource'
        isDefault: true
        jsonData:
          defaultDatabase: cvat
          port: 9000
          server: "{{ .Release.Name }}-clickhouse"
          username: user
          tlsSkipVerify: false
        secureJsonData:
          password: user
        editable: false
  dashboardProviders:
    dashboardproviders.yaml:
      apiVersion: 1
      providers:
      - name: 'default'
        orgId: 1
        folder: ''
        type: file
        disableDeletion: false
        editable: true
        options:
          path: /var/lib/grafana/dashboards
  dashboardsConfigMaps:
    default: "cvat-grafana-dashboards"
  plugins:
    - grafana-clickhouse-datasource
  grafana.ini:
    server:
      root_url: https://cvat.local/analytics
    dashboards:
      default_home_dashboard_path: /var/lib/grafana/dashboards/default/all_events.json
    users:
      viewers_can_edit: true
    auth:
      disable_login_form: true
      disable_signout_menu: true
    auth.anonymous:
      enabled: true
      org_role: Admin
    auth.basic:
      enabled: false
345 346

ingress:
347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395
  enabled: false

# In case you need an ingress, write them manually in your my.values.eml, see example below:
#  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: /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
396 397

traefik:
398
  enabled: false
399 400 401
  service:
    externalIPs:
      # - "192.168.49.2"
402 403 404

smokescreen:
  opts: ''