feat: prepare v1.1 deploy and presenter load test
- build and push v1.1 images from the service main worktrees - switch manifests to :v1.1; add web control Secret refs - configure API BOOTSTRAP_REFRESH=60s and remove unused DATA_DIR - add k6 presenter scenario with a mid-run control POST - require control credentials in make load; update runbook and drills
This commit is contained in:
1 parent
40bc8e47d0
commit
b98a1bab42
12 files changed
+264
-117
No files matched your search
@@ -79,7 +79,7 @@ for name, cm in configmaps.items():
|
||||
required_config = {
|
||||
"pulsecast-shared": {"PUBLIC_WEB_URL", "PUBLIC_API_URL", "API_INTERNAL_URL", "ML_INTERNAL_URL"},
|
||||
"web-config": {"PORT", "NUXT_PUBLIC_API_BASE", "NUXT_API_INTERNAL_BASE"},
|
||||
"api-config": {"PORT", "DATA_DIR", "FASTAPI_URL", "ML_TIMEOUT", "SSE_HEARTBEAT"},
|
||||
"api-config": {"PORT", "FASTAPI_URL", "BOOTSTRAP_REFRESH", "ML_TIMEOUT", "SSE_HEARTBEAT"},
|
||||
"ml-config": {
|
||||
"PORT", "PULSECAST_ROOT", "PULSECAST_ARTIFACTS", "PULSECAST_WEATHER",
|
||||
"PULSECAST_MODELS", "PULSECAST_UPLOADS",
|
||||
@@ -93,6 +93,8 @@ for name, keys in required_config.items():
|
||||
have = set((cm.get("data") or {}).keys())
|
||||
for key in sorted(keys - have):
|
||||
errors.append(f"ConfigMap/{name}: missing key {key}")
|
||||
if "DATA_DIR" in ((configmaps.get("api-config") or {}).get("data") or {}):
|
||||
errors.append("ConfigMap/api-config: DATA_DIR is no longer used by the v1.1 API")
|
||||
|
||||
expected_ports = {"web": 3000, "api": 8080, "ml": 8000, "cloudflared": 2000}
|
||||
expected_uids = {"web": 10001, "api": 65532, "ml": 10001, "cloudflared": 65532}
|
||||
@@ -202,6 +204,11 @@ for name in ("web", "api", "ml", "cloudflared"):
|
||||
if ref not in configmaps:
|
||||
errors.append(f"Deployment/{name}: references missing ConfigMap/{ref}")
|
||||
expected_secret_refs = {
|
||||
"web": {
|
||||
("control-auth", "CONTROL_USER"),
|
||||
("control-auth", "CONTROL_PASS"),
|
||||
("control-auth", "CONTROL_TOKEN"),
|
||||
},
|
||||
"api": {
|
||||
("control-auth", "CONTROL_USER"),
|
||||
("control-auth", "CONTROL_PASS"),
|
||||
|
||||
Reference in new issue
Block a user