values.yaml 8.2 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
    server:
      replicas: 1
      labels: {}
      annotations: {}
      resources: {}
      affinity: {}
      tolerations: []
      envs:
        ALLOWED_HOSTS: "*"
        DJANGO_MODWSGI_EXTRA_ARGS: ""
M
Maria Khrustaleva 已提交
22 23 24
        USE_ALLAUTH_SOCIAL_ACCOUNTS: false
      secret:
        create: true
25
        name: "{{ .Release.Name }}-cvat-server-secret"
M
Maria Khrustaleva 已提交
26 27 28 29 30
        socialAccountAuthentication:
          googleClientId: ""
          googleClientSecret: ""
          githubClientId: ""
          githubClientSecret: ""
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
      additionalEnv: []
      additionalVolumes: []
      additionalVolumeMounts: []
    worker:
      default:
        replicas: 2
        labels: {}
        annotations: {}
        resources: {}
        affinity: {}
        tolerations: []
        additionalEnv: []
        additionalVolumes: []
        additionalVolumeMounts: []
      low:
        replicas: 1
        labels: {}
        annotations: {}
        resources: {}
        affinity: {}
        tolerations: []
        additionalEnv: []
        additionalVolumes: []
        additionalVolumeMounts: []
55 56 57 58 59 60 61 62 63 64
      webhooks:
        replicas: 1
        labels: {}
        annotations: {}
        resources: {}
        affinity: {}
        tolerations: []
        additionalEnv: []
        additionalVolumes: []
        additionalVolumeMounts: []
65 66 67 68 69 70 71 72 73 74
    utils:
      replicas: 1
      labels: {}
      annotations: {}
      resources: {}
      affinity: {}
      tolerations: []
      additionalEnv: []
      additionalVolumes: []
      additionalVolumeMounts: []
K
Kirpichev Michael 已提交
75
    replicas: 1
K
Kirill Sizov 已提交
76
    image: cvat/server
77
    tag: dev
78
    imagepullploicy: IfNotPresent
79 80
    permissionFix:
      enabled: true
K
Kirpichev Michael 已提交
81
    service:
82 83 84 85 86 87 88 89 90
      annotations:
        traefik.ingress.kubernetes.io/service.sticky.cookie: "true"
      spec:
        type: ClusterIP
        ports:
          - port: 8080
            targetPort: 8080
            protocol: TCP
            name: http
K
Kirpichev Michael 已提交
91
    defaultStorage:
92 93
        enabled: true
        size: 20Gi
K
Kirpichev Michael 已提交
94 95
  frontend:
    replicas: 1
K
Kirill Sizov 已提交
96
    image: cvat/ui
97
    tag: dev
98
    imagepullploicy: IfNotPresent
K
Kirpichev Michael 已提交
99 100 101 102 103 104
    labels: {}
    #  test: test
    annotations: {}
    # test.io/test: test
    resources: {}
    affinity: {}
A
Andrey Zhavoronkov 已提交
105
    tolerations: []
K
Kirpichev Michael 已提交
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
    # 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
137 138 139 140
  opa:
    replicas: 1
    image: openpolicyagent/opa
    tag: 0.34.2-rootless
141
    imagepullploicy: IfNotPresent
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
    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
    composeCompatibleServiceName: true # Sets service name to opa in order to be docker-compose compatible. Necessary because changing IAM_OPA_DATA_URL via environment variables in current images. Hinders multiple deployment due to duplicate name
    service:
      type: ClusterIP
      ports:
        - port: 8181
          targetPort: 8181
          protocol: TCP
          name: http
K
Kirpichev Michael 已提交
181 182 183 184 185 186 187 188 189 190

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
    user: postgres
    password: postgres
    dbname: cvat
191
 # If not external following config will be applied by default
K
Kirpichev Michael 已提交
192 193
  global:
    postgresql:
194
      existingSecret: "{{ .Release.Name }}-postgres-secret"
K
Kirpichev Michael 已提交
195 196
  secret:
    create: true
197
    name: "{{ .Release.Name }}-postgres-secret"
K
Kirpichev Michael 已提交
198 199 200 201 202 203 204 205 206 207 208 209
    password: cvat_postgresql
    postgres_password: cvat_postgresql_postgres
    replication_password: cvat_postgresql_replica
  postgresqlDatabase: cvat
  postgresqlUsername: cvat
  service:
    port: 5432

redis:
  #See https://github.com/bitnami/charts/blob/master/bitnami/redis/ for more info
  enabled: true
  external:
210 211 212
      host: 127.0.0.1
  auth:
    enabled: false
K
Kirpichev Michael 已提交
213 214 215
  cluster:
    enabled: false

216
nuclio:
K
Kirpichev Michael 已提交
217
  enabled: false
218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294
# 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:
  enabled: false
  external:
    useExternal: false
    logServerHost: logstash
    logServerPort: 8080
  ingress:
    path: /analytics
    pathType: "Prefix"
    annotations:
      kubernetes.io/ingress.class: traefik
    service:
      name: kibana
      port: 5601

# Because custom images are required here, you'll need to build them yourself and add them to your preferred docker registry.
# Ignored if analytics.enabled is false
# See https://github.com/elastic/helm-charts/blob/main/logstash/values.yaml for details
logstash:
  image: "your_logstash_image"
  imageTag: "latest"
  # For compatibility with compose config
  extraEnvs:
    - name: "LOGSTASH_OUTPUT_HOST"
      value: "elasticsearch-master:9200"
    - name: LOGSTASH_OUTPUT_USER
      value: ""
    - name: LOGSTASH_OUTPUT_PASS
      value: ""
  imagePullPolicy: Always
  service:
    type: ClusterIP
    ports:
      - name: http
        port: 8080
        protocol: TCP
        targetPort: 8080

# Ignored if analytics.enabled is false
# See https://github.com/elastic/helm-charts/blob/main/elasticsearch/values.yaml for details
elasticsearch:
  image: "your_elasticsearch_image"
  imageTag: "latest"
  replicas: 1
  minimumMasterNodes: 1

# Ignored if analytics.enabled is false
# See https://github.com/elastic/helm-charts/blob/main/kibana/values.yaml for details
kibana:
  image: "your_kibana_image"
  imageTag: "latest"

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
295
        - path: /static
296 297 298 299
          pathType: "Prefix"
          service:
            name: backend-service
            port: 8080
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
        - 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"