---
# Funkwhale values
# https://gitlab.com/ananace/charts/-/tree/master/charts/funkwhale
# https://hub.docker.com/r/funkwhale/api

image:
  registry: docker.io/funkwhale
  tag: stable
  pullPolicy: IfNotPresent

ingress:
  enabled: true
  host: funkwhale.xai-corp.net
  #  protocol: https
  tls: # < placing a host in the TLS config will determine what ends up in the cert's subjectAltNames
    - secretName: xai-corp-production-tls
      hosts:
        - funkwhale.xai-corp.net

replicaCount: 1

postgresql:
  ## If you already have a Postgresql service you'd like to use, set
  ## this to false and adjust the host to use your existing service.
  enabled: false

  ## External Postgresql hostname or IP
  host: postgresql.postgres

  auth:
    ## Database user
    username: funkwhale

    ## Database password
    password: 18hbc3u19dhqahgoh910y

    ## Database name
    database: funkwhale

  ## Database port
#  service:
#    port: 5432

redis:
  ## If you already have a Redis service you'd like to use, set
  ## this to false and adjust the host to use your existing service.
  enabled: true

  ## External Redis hostname or IP
#  host: redis-master.redis

persistence:
  enabled: true
  existingClaim: data-funkwhale-0
  # storageClass: "-"

  ## Note; Using ReadWriteOnce for persistence will require the addition of
  ## a required affinity for the celery worker, as well as the use of only a
  ## single api replica.
  ##
  ## An example is provided for the worker affinity
  accessMode: ReadWriteMany
  size: 1Gi


api:
  livenessProbe:
    httpGet:
      path: /
      port: api
      scheme: HTTP
    timeoutSeconds: 1
    periodSeconds: 10
    successThreshold: 1
    failureThreshold: 10
  readinessProbe:
    httpGet:
      path: /
      port: api
      scheme: HTTP
    timeoutSeconds: 1
    periodSeconds: 10
    successThreshold: 1
    failureThreshold: 10
  startupProbe:
    tcpSocket:
      port: api
    timeoutSeconds: 1
    periodSeconds: 10
    successThreshold: 1
    failureThreshold: 10
    initialDelaySeconds: 60
