# Minimal Definite on-prem config for Google Kubernetes Engine.
#
# Assumes:
#   - A GKE cluster (Autopilot is fine; uses `premium-rwo` for PD-SSD)
#   - A Cloud SQL Postgres instance reachable from the cluster
#   - A GCS bucket plus an HMAC key for a service account with object admin
#     on that bucket (see ducklake-spike/DEPLOYMENT.md Step 2)
#   - cert-manager + an ingress-nginx controller installed
#
# Usage:
#   export POSTGRES_PASSWORD=...
#   export ANTHROPIC_API_KEY=...
#   export GCS_HMAC_KEY_ID=...
#   export GCS_HMAC_SECRET=...
#   definite doctor --config minimal-gke.yaml
#   definite init   --config minimal-gke.yaml

deployment:
  name: definite
  namespace: definite
  hostname: definite.acme.internal
  tls: cert_manager

postgres:
  url: postgres://definite:${POSTGRES_PASSWORD}@10.0.0.5:5432/definite

object_store:
  type: gcs
  bucket: acme-definite-lake
  # GCS HMAC pair. The Quack server uses DuckDB's httpfs extension to read /
  # write the bucket on clients' behalf; Workload Identity isn't enough because
  # httpfs speaks the S3 interop API, not native GCS.
  credentials:
    key_id:
      env: GCS_HMAC_KEY_ID
    secret:
      env: GCS_HMAC_SECRET

lakehouse:
  prefix: lake/
  storage:
    size: 50Gi
    storage_class_name: premium-rwo  # GKE shorthand for PD-SSD

auth:
  mode: local
  initial_admin_email: admin@acme.com

llm:
  provider: anthropic
  api_key:
    env: ANTHROPIC_API_KEY

resources:
  api:
    replicas: 2
    cpu: "1"
    memory: 2Gi
  lakehouse:
    replicas: 1
    cpu: "4"
    memory: 16Gi
  frontend:
    replicas: 2
    cpu: 500m
    memory: 512Mi
  job_runner:
    replicas: 1
    cpu: 500m
    memory: 1Gi

telemetry:
  enabled: false

# Override the container image registry / tag if you mirror images into your
# own registry (Artifact Registry, etc.) instead of pulling from
# ghcr.io/definite-app. Uncomment and customize.
#
# image:
#   registry: us-central1-docker.pkg.dev/acme-prod/definite
#   tag: 0.0.1
#   pull_policy: IfNotPresent
#   pull_secrets:
#     - artifact-registry-pull
