infra(services): set replicas=0 on 9 application services — dev-mode

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 <name> --replicas=1`.
This commit is contained in:
jgrusewski
2026-04-21 00:44:53 +02:00
parent 8d00ffba40
commit 0473eece26
9 changed files with 28 additions and 9 deletions

View File

@@ -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:

View File

@@ -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:

View File

@@ -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:

View File

@@ -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:

View File

@@ -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:

View File

@@ -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:

View File

@@ -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:

View File

@@ -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:

View File

@@ -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: