---
# Example values for AWS deployment
# Copy to values-aws.yaml and customize with your AWS details

global:
  domain: yourdomain.com

# Disable built-in PostgreSQL and use RDS instead
postgres:
  enabled: false

backend:
  image:
    repository: 123456789.dkr.ecr.us-east-1.amazonaws.com/dating-app-backend
    tag: latest
    pullPolicy: IfNotPresent
  replicas: 3
  resources:
    requests:
      memory: "512Mi"
      cpu: "200m"
    limits:
      memory: "1Gi"
      cpu: "500m"
  service:
    port: 8000
    type: ClusterIP
  ingress:
    enabled: true
    className: aws-alb
    host: api.yourdomain.com
    path: /
    pathType: Prefix
  environment:
    # Use RDS endpoint here with updated credentials
    DATABASE_URL: "postgresql://dating_app_user:Aa123456@your-rds-endpoint.us-east-1.rds.amazonaws.com:5432/dating_app"
    JWT_SECRET: "your-secure-secret-key"
    JWT_EXPIRES_MINUTES: "1440"
    MEDIA_DIR: /app/media
    CORS_ORIGINS: "https://yourdomain.com,https://api.yourdomain.com"
  persistence:
    enabled: true
    size: 20Gi
    storageClass: ebs-sc  # AWS EBS storage class
    mountPath: /app/media

frontend:
  image:
    repository: 123456789.dkr.ecr.us-east-1.amazonaws.com/dating-app-frontend
    tag: latest
    pullPolicy: IfNotPresent
  replicas: 3
  resources:
    requests:
      memory: "256Mi"
      cpu: "100m"
    limits:
      memory: "512Mi"
      cpu: "200m"
  service:
    port: 80
    type: ClusterIP
  ingress:
    enabled: true
    className: aws-alb
    host: yourdomain.com
    path: /
    pathType: Prefix
  environment:
    VITE_API_URL: "https://api.yourdomain.com"

ingress:
  enabled: true
  className: aws-alb
  annotations:
    alb.ingress.kubernetes.io/scheme: internet-facing
    alb.ingress.kubernetes.io/target-type: ip
    cert-manager.io/cluster-issuer: "letsencrypt-prod"
    alb.ingress.kubernetes.io/certificate-arn: "arn:aws:acm:us-east-1:123456789:certificate/xxxx"
