# Production values for orchard
replicaCount: 3

image:
  pullPolicy: Always

resources:
  limits:
    cpu: 1000m
    memory: 1Gi
  requests:
    cpu: 250m
    memory: 256Mi

autoscaling:
  enabled: true
  minReplicas: 3
  maxReplicas: 20
  targetCPUUtilizationPercentage: 70
  targetMemoryUtilizationPercentage: 80

ingress:
  enabled: true
  className: nginx
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
    nginx.ingress.kubernetes.io/proxy-body-size: "500m"
  hosts:
    - host: orchard.example.com
      paths:
        - path: /
          pathType: Prefix
  tls:
    - secretName: orchard-tls
      hosts:
        - orchard.example.com

orchard:
  database:
    sslmode: require

postgresql:
  enabled: true
  auth:
    password: ""  # Set via --set or external secret
  primary:
    persistence:
      enabled: true
      size: 100Gi
    resources:
      limits:
        cpu: 2000m
        memory: 4Gi
      requests:
        cpu: 500m
        memory: 1Gi

minio:
  enabled: true
  auth:
    rootPassword: ""  # Set via --set or external secret
  persistence:
    enabled: true
    size: 500Gi
  resources:
    limits:
      cpu: 2000m
      memory: 4Gi
    requests:
      cpu: 500m
      memory: 1Gi

redis:
  enabled: true
  auth:
    password: ""  # Set via --set or external secret
  master:
    persistence:
      enabled: true
      size: 10Gi
