# Default values for saberes.

replicaCount: 1

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

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

podAnnotations: {}

podSecurityContext: {}
  # fsGroup: 2000

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

service:
  type: ClusterIP
  port: 80

moodle:
  dbHost: postgres
  dbName: moodle
  dbUser: saberes
  dbPass: apass
  reverseProxy: 'false'
  sslProxy: 'true'
  cron:
    schedule: "*/5 * * * *" # Every 5 mins
    resources:
      limits:
        cpu: 1000m
        memory: 1Gi
      requests:
        cpu: 500m
        memory: 400Mi

ingress:
  enabled: true
  annotations: 
    cert-manager.io/cluster-issuer: "letsencrypt-prod"
  hostname: 'moodle.url'
  pathType: Prefix
  tls:
    enabled: true

osticket:
  apiKey: 'DUMMY'
  url: 'https://osticket.leg.br'

resources: 
  limits:
    cpu: 5000m
    memory: 6Gi
  requests:
    cpu: 3000m
    memory: 4Gi

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

autoscaling:
  enabled: true
  minReplicas: 2
  maxReplicas: 6
  targetCPUUtilizationPercentage: 70
  #targetMemoryUtilizationPercentage: 90

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

nodeSelector: {}

tolerations: []

msa:
  image: 
    repository: porto.interlegis.leg.br/library/alpine-postfix
    tag: latest
    pullPolicy: IfNotPresent 
  enabled: true
  replicas: 1
  config:
    relayHost: yoursmart.host
    domain: cluster.local
    msgSizeLimit: "50000000"
    relayNets: 10.42.0.0/16
  resources: 
    limits:
      cpu: 600m
      memory: 1Gi
    requests:
      cpu: 300m
      memory: 250Mi
  nodeSelector: 
    staticip: "true"
  persistence:
    enabled: true
    #storageClass: ""
    accessMode: ReadWriteOnce
    size: 5Gi