# Default values for sapl.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

replicaCount: 1

image:
  repository: porto.interlegis.leg.br/spdt/sapl
  pullPolicy: IfNotPresent
  # Overrides the image tag whose default is the chart appVersion.
  tag: ""

imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

serviceAccount:
  # Specifies whether a service account should be created
  create: true
  # Annotations to add to the service account
  annotations: {}
  # The name of the service account to use.
  # If not set and create is true, a name is generated using the fullname template
  name: ""

podAnnotations: {}

podSecurityContext: {}
  # fsGroup: 2000

securityContext: {}
  # capabilities:
  #   drop:
  #   - ALL
  # readOnlyRootFilesystem: true
  # runAsNonRoot: true
  # runAsUser: 1000

service:
  type: ClusterIP
  port: 80

persistence:
  enabled: true
  #storageClass: ""
  accessMode: ReadWriteOnce
  size: 2Gi

sapl:
  adminPassword: altereme
  adminEmail: contato@tecnico.net
  emailSendUser: no-reply@domain.net
  debug: 'False'
  useTls: 'False'
  emailPort: 25
  emailHost: smtp.domain.net
  timeZone: 'America/Sao_Paulo'
  useSolr: 'True'
  solrCollection: 'sapl'
  solrUrl: 'http://localhost:8983'
  solrNumShards: 1
  solrReplFactor: 2
  solrMaxShardsPerNode: 1
  hostname: 'sapl.domain.net'

ingress:
  enabled: true
  class: nginx
  # nginx - for default nginx ingress controller
  # alb - for AWS ALB Load Balancer controller
  tls:
    enabled: true
    provider: letsencrypt
  # extra annotations only
  annotations: {}

velero:
  namespace: velero
  backup:
    enabled: true
    snapshotVolumes: false
    defaultVolumesToRestic: true
    # cert-manager objects are usually blocked during backup
    excludedResources: 
      - certificates.cert-manager.io
      - orders.acme.cert-manager.io
      - certificaterequests.cert-manager.io
      - challenges.acme.cert-manager.io

postgresql:
  internal: true
  image:
    repository: porto.interlegis.leg.br/bitnami/postgresql
    tag: 9.6.23-debian-10-r61
    pullPolicy: IfNotPresent
  service:
    type: ClusterIP
    port: 5432
  persistence:
    enabled: true
    size: 1Gi
  postgresqlPassword: altereme
  postgresqlUsername: sapl
  postgresqlDatabase: sapl
  resources:
    requests:
      cpu: 50m
      memory: 64Mi


resources:
  limits:
    cpu: 1000m
    memory: 1Gi
  requests:
    cpu: 150m
    memory: 500Mi

autoscaling:
  enabled: false
  minReplicas: 1
  maxReplicas: 100
  targetCPUUtilizationPercentage: 80
  # targetMemoryUtilizationPercentage: 80

nodeSelector: {}

tolerations: []

affinity: {}