From 0473eece263f67f79ee985d3b2886a688560a269 Mon Sep 17 00:00:00 2001 From: jgrusewski Date: Tue, 21 Apr 2026 00:44:53 +0200 Subject: [PATCH] =?UTF-8?q?infra(services):=20set=20replicas=3D0=20on=209?= =?UTF-8?q?=20application=20services=20=E2=80=94=20dev-mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Persist the current dev-mode shutdown state in YAML so `kustomize build | kubectl apply` won't quietly restart paused services. Scope: foxhunt application services only. Core infra (GitLab, Minio, Argo, Postgres, Redis) unchanged. Paused: - api, web-dashboard (dashboard stack, not used for CLI dev) - trading-service, trading-agent-service, broker-gateway, ib-gateway (live trading — not running in dev) - backtesting-service (Argo workflows run standalone without it) - data-acquisition-service (training uses cached .fxcache, not live feed) - ml-training-service (training runs via scripts/argo-train.sh) Each manifest has a restore-command comment documenting the rollback: `kubectl -n foxhunt scale deployment --replicas=1`. --- infra/k8s/services/api.yaml | 4 +++- infra/k8s/services/backtesting-service.yaml | 4 +++- infra/k8s/services/broker-gateway.yaml | 4 +++- infra/k8s/services/data-acquisition-service.yaml | 4 +++- infra/k8s/services/ib-gateway.yaml | 4 +++- infra/k8s/services/ml-training-service.yaml | 5 ++++- infra/k8s/services/trading-agent-service.yaml | 4 +++- infra/k8s/services/trading-service.yaml | 4 +++- infra/k8s/services/web-dashboard.yaml | 4 +++- 9 files changed, 28 insertions(+), 9 deletions(-) diff --git a/infra/k8s/services/api.yaml b/infra/k8s/services/api.yaml index a56902ee2..4f42f1b96 100644 --- a/infra/k8s/services/api.yaml +++ b/infra/k8s/services/api.yaml @@ -7,7 +7,9 @@ metadata: app.kubernetes.io/name: api app.kubernetes.io/part-of: foxhunt spec: - replicas: 1 + # Dev-mode: paused while working on model development. + # Restore with: kubectl -n foxhunt scale deployment api --replicas=1 + replicas: 0 strategy: type: RollingUpdate rollingUpdate: diff --git a/infra/k8s/services/backtesting-service.yaml b/infra/k8s/services/backtesting-service.yaml index 01214a954..30f6ca005 100644 --- a/infra/k8s/services/backtesting-service.yaml +++ b/infra/k8s/services/backtesting-service.yaml @@ -7,7 +7,9 @@ metadata: app.kubernetes.io/name: backtesting-service app.kubernetes.io/part-of: foxhunt spec: - replicas: 1 + # Dev-mode: paused while working on model development. + # Restore with: kubectl -n foxhunt scale deployment backtesting-service --replicas=1 + replicas: 0 strategy: type: RollingUpdate rollingUpdate: diff --git a/infra/k8s/services/broker-gateway.yaml b/infra/k8s/services/broker-gateway.yaml index 05b22638b..9a0fc84a5 100644 --- a/infra/k8s/services/broker-gateway.yaml +++ b/infra/k8s/services/broker-gateway.yaml @@ -7,7 +7,9 @@ metadata: app.kubernetes.io/name: broker-gateway app.kubernetes.io/part-of: foxhunt spec: - replicas: 1 + # Dev-mode: paused while working on model development. + # Restore with: kubectl -n foxhunt scale deployment broker-gateway --replicas=1 + replicas: 0 strategy: type: RollingUpdate rollingUpdate: diff --git a/infra/k8s/services/data-acquisition-service.yaml b/infra/k8s/services/data-acquisition-service.yaml index 59bb0292f..d7f4d13da 100644 --- a/infra/k8s/services/data-acquisition-service.yaml +++ b/infra/k8s/services/data-acquisition-service.yaml @@ -7,7 +7,9 @@ metadata: app.kubernetes.io/name: data-acquisition-service app.kubernetes.io/part-of: foxhunt spec: - replicas: 1 + # Dev-mode: paused while working on model development. + # Restore with: kubectl -n foxhunt scale deployment data-acquisition-service --replicas=1 + replicas: 0 strategy: type: RollingUpdate rollingUpdate: diff --git a/infra/k8s/services/ib-gateway.yaml b/infra/k8s/services/ib-gateway.yaml index 670fc892f..a6e56c10b 100644 --- a/infra/k8s/services/ib-gateway.yaml +++ b/infra/k8s/services/ib-gateway.yaml @@ -7,7 +7,9 @@ metadata: app: ib-gateway app.kubernetes.io/part-of: foxhunt spec: - replicas: 1 + # Dev-mode: paused while working on model development. + # Restore with: kubectl -n foxhunt scale deployment ib-gateway --replicas=1 + replicas: 0 strategy: type: Recreate selector: diff --git a/infra/k8s/services/ml-training-service.yaml b/infra/k8s/services/ml-training-service.yaml index 38bbef67f..53a594310 100644 --- a/infra/k8s/services/ml-training-service.yaml +++ b/infra/k8s/services/ml-training-service.yaml @@ -49,7 +49,10 @@ metadata: app.kubernetes.io/name: ml-training-service app.kubernetes.io/part-of: foxhunt spec: - replicas: 1 + # Dev-mode: paused while working on model development. + # Training runs via Argo workflows (scripts/argo-train.sh) — this HTTP service is not required. + # Restore with: kubectl -n foxhunt scale deployment ml-training-service --replicas=1 + replicas: 0 strategy: type: RollingUpdate rollingUpdate: diff --git a/infra/k8s/services/trading-agent-service.yaml b/infra/k8s/services/trading-agent-service.yaml index 085477fa4..13db3d5b7 100644 --- a/infra/k8s/services/trading-agent-service.yaml +++ b/infra/k8s/services/trading-agent-service.yaml @@ -7,7 +7,9 @@ metadata: app.kubernetes.io/name: trading-agent-service app.kubernetes.io/part-of: foxhunt spec: - replicas: 1 + # Dev-mode: paused while working on model development. + # Restore with: kubectl -n foxhunt scale deployment trading-agent-service --replicas=1 + replicas: 0 strategy: type: RollingUpdate rollingUpdate: diff --git a/infra/k8s/services/trading-service.yaml b/infra/k8s/services/trading-service.yaml index 4104ffa22..b126af6e4 100644 --- a/infra/k8s/services/trading-service.yaml +++ b/infra/k8s/services/trading-service.yaml @@ -7,7 +7,9 @@ metadata: app.kubernetes.io/name: trading-service app.kubernetes.io/part-of: foxhunt spec: - replicas: 1 + # Dev-mode: paused while working on model development. + # Restore with: kubectl -n foxhunt scale deployment trading-service --replicas=1 + replicas: 0 strategy: type: RollingUpdate rollingUpdate: diff --git a/infra/k8s/services/web-dashboard.yaml b/infra/k8s/services/web-dashboard.yaml index ebd958162..27e87cca8 100644 --- a/infra/k8s/services/web-dashboard.yaml +++ b/infra/k8s/services/web-dashboard.yaml @@ -7,7 +7,9 @@ metadata: app.kubernetes.io/name: web-dashboard app.kubernetes.io/part-of: foxhunt spec: - replicas: 1 + # Dev-mode: paused while working on model development. + # Restore with: kubectl -n foxhunt scale deployment web-dashboard --replicas=1 + replicas: 0 strategy: type: RollingUpdate rollingUpdate: