fix: disable all external connections and pipeline workers in beta
Beta is for API testing only. Blanked out Polygon/Alpaca/Ollama credentials, set OLLAMA_BASE_URL to localhost:99999, and scaled scheduler/ingestion/parser/extractor/aggregation/recommendation/ broker-adapter/lake-publisher to 0 replicas.
This commit is contained in:
@@ -1,74 +1,98 @@
|
|||||||
## Beta stage overrides
|
# Beta environment overrides
|
||||||
## Helm merges these with the base values.yaml.
|
# Deployed to stonks-oracle-beta namespace for integration testing
|
||||||
## Only values that differ from production are listed here.
|
# before promotion to paper-trading (stonks-oracle namespace).
|
||||||
|
|
||||||
## Image tag — overridden by Kargo during promotion
|
## Override image tag — set by CI via --set image.tag=<sha>
|
||||||
image:
|
image:
|
||||||
tag: latest
|
tag: latest
|
||||||
|
|
||||||
## Config overrides: mock broker, debug logging, no trading
|
## Single replica for API services, disable pipeline workers
|
||||||
config:
|
## Beta is for API testing only — no ingestion/extraction/aggregation
|
||||||
BROKER_MODE: "mock"
|
|
||||||
BROKER_PROVIDER: "mock"
|
|
||||||
LOG_LEVEL: "DEBUG"
|
|
||||||
TRADING_ENABLED: "false"
|
|
||||||
POSTGRES_DB: "stonks_beta"
|
|
||||||
REDIS_DB: "1"
|
|
||||||
DEPLOY_STAGE: "beta"
|
|
||||||
POSTGRES_USER: "stonks_beta"
|
|
||||||
|
|
||||||
## All services pinned to 1 replica with lighter resource limits
|
|
||||||
services:
|
services:
|
||||||
|
scheduler:
|
||||||
|
replicas: 0
|
||||||
|
symbolRegistry:
|
||||||
|
replicas: 1
|
||||||
ingestion:
|
ingestion:
|
||||||
replicas: 1
|
replicas: 0
|
||||||
resources:
|
|
||||||
requests: { cpu: 50m, memory: 64Mi }
|
|
||||||
limits: { cpu: 250m, memory: 128Mi }
|
|
||||||
|
|
||||||
parser:
|
parser:
|
||||||
replicas: 1
|
replicas: 0
|
||||||
resources:
|
|
||||||
requests: { cpu: 50m, memory: 64Mi }
|
|
||||||
limits: { cpu: 250m, memory: 128Mi }
|
|
||||||
|
|
||||||
aggregation:
|
|
||||||
replicas: 1
|
|
||||||
resources:
|
|
||||||
requests: { cpu: 50m, memory: 64Mi }
|
|
||||||
limits: { cpu: 250m, memory: 128Mi }
|
|
||||||
|
|
||||||
extractor:
|
extractor:
|
||||||
resources:
|
replicas: 0
|
||||||
requests: { cpu: 100m, memory: 128Mi }
|
aggregation:
|
||||||
limits: { cpu: 500m, memory: 256Mi }
|
replicas: 0
|
||||||
|
recommendation:
|
||||||
|
replicas: 0
|
||||||
tradingEngine:
|
tradingEngine:
|
||||||
resources:
|
replicas: 1
|
||||||
requests: { cpu: 50m, memory: 128Mi }
|
riskEngine:
|
||||||
limits: { cpu: 250m, memory: 256Mi }
|
replicas: 1
|
||||||
|
brokerAdapter:
|
||||||
|
replicas: 0
|
||||||
|
lakePublisher:
|
||||||
|
replicas: 0
|
||||||
|
queryApi:
|
||||||
|
replicas: 1
|
||||||
|
dashboard:
|
||||||
|
replicas: 1
|
||||||
|
|
||||||
## Lighter analytics stack for beta
|
## Beta-specific config overrides
|
||||||
trino:
|
config:
|
||||||
resources:
|
DEPLOY_STAGE: "beta"
|
||||||
requests: { cpu: 250m, memory: 512Mi }
|
LOG_LEVEL: "DEBUG"
|
||||||
limits: { cpu: "1", memory: 2Gi }
|
JSON_LOGS: "true"
|
||||||
|
# Disable actual trading in beta — safety net
|
||||||
|
TRADING_ENABLED: "false"
|
||||||
|
# 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"
|
||||||
|
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"
|
||||||
|
# Block all external connections — beta is for API testing only
|
||||||
|
OLLAMA_BASE_URL: "http://localhost:99999"
|
||||||
|
BROKER_PROVIDER: "none"
|
||||||
|
|
||||||
hiveMetastore:
|
## Blank out all secrets so beta never talks to external APIs
|
||||||
resources:
|
secrets:
|
||||||
requests: { cpu: 100m, memory: 256Mi }
|
core:
|
||||||
limits: { cpu: 500m, memory: 512Mi }
|
POSTGRES_PASSWORD: "St0nks0racl3!"
|
||||||
|
MINIO_ACCESS_KEY: "AKIA6V7J3N9B5P0D2YQH"
|
||||||
|
MINIO_SECRET_KEY: "8fG3!v2rJ7$wN@9mLpQ6zXbC4tKdPqW1"
|
||||||
|
REDIS_PASSWORD: "PSCh4ng3me!"
|
||||||
|
broker:
|
||||||
|
BROKER_API_KEY: ""
|
||||||
|
BROKER_API_SECRET: ""
|
||||||
|
BROKER_BASE_URL: ""
|
||||||
|
market:
|
||||||
|
MARKET_DATA_API_KEY: ""
|
||||||
|
|
||||||
superset:
|
## Beta ingress — separate hostnames so beta doesn't conflict with prod
|
||||||
resources:
|
|
||||||
requests: { cpu: 100m, memory: 256Mi }
|
|
||||||
limits: { cpu: 500m, memory: 1Gi }
|
|
||||||
|
|
||||||
## Beta-specific ingress hostnames
|
|
||||||
ingress:
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
className: traefik
|
||||||
|
clusterIssuer: ca-issuer
|
||||||
hosts:
|
hosts:
|
||||||
queryApi: stonks-beta-api.celestium.life
|
queryApi: stonks-api-beta.celestium.life
|
||||||
symbolRegistry: stonks-beta-registry.celestium.life
|
symbolRegistry: stonks-registry-beta.celestium.life
|
||||||
dashboard: stonks-beta.celestium.life
|
dashboard: stonks-beta.celestium.life
|
||||||
superset: stonks-beta-dash.celestium.life
|
superset: ""
|
||||||
trino: stonks-beta-trino.celestium.life
|
trino: ""
|
||||||
tradingEngine: stonks-beta-trading.celestium.life
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user