# Beta environment overrides
# Deployed to stonks-oracle-beta namespace for integration testing
# before promotion to paper-trading (stonks-oracle namespace).

## Override image tag — set by CI via --set image.tag=<sha>
image:
  tag: latest

## Pipeline ON — all services deployed so Kargo sees them as healthy.
## The Redis-based pipeline toggle defaults to OFF so the scheduler
## won't enqueue jobs unless you flip it on from the UI.
pipelineEnabled: true

## Single replica for all services in beta
services:
  queryApi:
    replicas: 1
  dashboard:
    replicas: 1

## Beta-specific config overrides
## Beta shares the paper DB — DEPLOY_STAGE=beta isolates Redis keys
## (stonks:beta:*) and MinIO buckets (beta-stonks-*). Pipeline defaults
## to OFF so beta won't write conflicting data unless explicitly enabled.
config:
  DEPLOY_STAGE: "beta"
  LOG_LEVEL: "DEBUG"
  JSON_LOGS: "true"
  TRADING_ENABLED: "true"
  # Use same infra services (shared postgres/redis/minio)
  POSTGRES_HOST: "postgresql-rw.postgresql-service.svc.cluster.local"
  POSTGRES_PORT: "5432"
  POSTGRES_DB: "stonks_beta"
  POSTGRES_USER: "stonks_beta"
  REDIS_HOST: "redis-master.redis-service.svc.cluster.local"
  REDIS_PORT: "6379"
  REDIS_DB: "1"
  MINIO_ENDPOINT: "minio.minio-service.svc.cluster.local:80"
  MINIO_SECURE: "false"
  BROKER_MODE: "paper"
  BROKER_PROVIDER: "alpaca"
  OLLAMA_BASE_URL: "http://192.168.42.254:11434"
  OLLAMA_MODEL: "qwen3.6"
  VLLM_BASE_URL: "http://192.168.42.254:8000"
  VLLM_MODEL: "AxionML/Qwen3.5-9B-NVFP4"
  VLLM_TIMEOUT: "120"
  VLLM_MAX_RETRIES: "2"
  VLLM_TEMPERATURE: "0.7"
  VLLM_API_KEY: ""
  MARKET_DATA_BASE_URL: "https://api.polygon.io"
  PIPELINE_DEFAULT_OFF: "true"

## Secrets — same credentials as paper for DB/infra access.
## Broker keys blank (TRADING_ENABLED=false), market key provided
## so beta can test ingestion when pipeline is flipped ON.
secrets:
  core:
    POSTGRES_PASSWORD: "St0nks0racl3!"
    MINIO_ACCESS_KEY: "AKIA6V7J3N9B5P0D2YQH"
    MINIO_SECRET_KEY: "8fG3!v2rJ7$wN@9mLpQ6zXbC4tKdPqW1"
    REDIS_PASSWORD: "PSCh4ng3me!"
  broker:
    BROKER_API_KEY: "PKRTP2PRRNCO3AYRGCK2FGWGMJ"
    BROKER_API_SECRET: "dWhCubuyzTGDTPqtV1HXdUGhu8ZQB6EP4oui3GRyDTT"
    BROKER_BASE_URL: "https://paper-api.alpaca.markets"
  market:
    MARKET_DATA_API_KEY: "NPwKtrLvoBxcKt3Byp5PEvuZiBZU_d8E"

## Beta ingress — separate hostnames so beta doesn't conflict with prod
ingress:
  enabled: true
  className: traefik
  clusterIssuer: ca-issuer
  hosts:
    queryApi: stonks-api-beta.celestium.life
    symbolRegistry: stonks-registry-beta.celestium.life
    dashboard: stonks-beta.celestium.life
    superset: ""
    trino: ""
    tradingEngine: stonks-trading-beta.celestium.life

## Disable analytics stack in beta (not needed for API tests)
trino:
  enabled: false
hiveMetastore:
  enabled: false
superset:
  enabled: false

## Network policies still enabled
networkPolicies:
  enabled: true
