# LLMHosts.com Helm Chart Values
# Override these for your deployment environment.

# Backend (Python FastAPI proxy)
backend:
  replicaCount: 1
  image:
    repository: ghcr.io/looknohandsmom/llmhosts.com
    tag: "latest"
    pullPolicy: IfNotPresent
  service:
    type: ClusterIP
    port: 4000
  resources:
    requests:
      cpu: 250m
      memory: 256Mi
    limits:
      cpu: 1000m
      memory: 512Mi
  env:
    LLMHOST_HOST: "0.0.0.0"
    LLMHOST_PORT: "4000"

# Frontend (Next.js dashboard)
frontend:
  replicaCount: 1
  image:
    repository: ghcr.io/looknohandsmom/llmhosts.com-frontend
    tag: "latest"
    pullPolicy: IfNotPresent
  service:
    type: ClusterIP
    port: 3000
  resources:
    requests:
      cpu: 100m
      memory: 128Mi
    limits:
      cpu: 500m
      memory: 256Mi
  env:
    HOSTNAME: "0.0.0.0"
    AUTH_TRUST_HOST: "true"

# Ingress (Traefik, nginx, or cloud LB)
ingress:
  enabled: true
  className: "traefik"
  annotations: {}
  hosts:
    - host: llmhosts.com
      paths:
        - path: /v1
          pathType: Prefix
          service: backend
        - path: /health
          pathType: Exact
          service: backend
        - path: /docs
          pathType: Prefix
          service: backend
        - path: /admin
          pathType: Prefix
          service: backend
        - path: /
          pathType: Prefix
          service: frontend
  tls:
    - secretName: llmhosts-tls
      hosts:
        - llmhosts.com

# Database (SQLite - single replica only, or switch to PostgreSQL for HA)
database:
  type: sqlite
  # For SQLite: uses PVC for persistence
  persistence:
    enabled: true
    size: 1Gi
    storageClass: ""
  # For PostgreSQL (uncomment for production HA):
  # type: postgresql
  # host: ""
  # port: 5432
  # name: llmhosts
  # existingSecret: llmhosts-db-credentials

# Headscale (Hive Mode coordination)
headscale:
  enabled: false
  image:
    repository: headscale/headscale
    tag: "0.22.3"
  service:
    type: ClusterIP
    port: 8080
  persistence:
    enabled: true
    size: 1Gi
