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
@@ -42,8 +42,10 @@ metadata:
|
||||
app.kubernetes.io/part-of: pulsecast
|
||||
data:
|
||||
PORT: "8080"
|
||||
DATA_DIR: "/app/data"
|
||||
FASTAPI_URL: "http://ml:8000"
|
||||
# v1.1 fetches FastAPI /bootstrap at startup and every BOOTSTRAP_REFRESH;
|
||||
# there is no baked data directory and no DATA_DIR env.
|
||||
BOOTSTRAP_REFRESH: "60s"
|
||||
ML_TIMEOUT: "1.5s"
|
||||
SSE_HEARTBEAT: "15s"
|
||||
---
|
||||
|
||||
@@ -35,9 +35,9 @@ spec:
|
||||
fsGroup: 10001
|
||||
containers:
|
||||
- name: ml
|
||||
image: git.noelsabia.dev/noel/pulsecast-ml:gate1
|
||||
# Gate 1 reuses the `gate1` tag while iterating; Always makes a re-push visible.
|
||||
# Switch to an immutable tag + IfNotPresent at deploy freeze.
|
||||
image: git.noelsabia.dev/noel/pulsecast-ml:v1.1
|
||||
# v1.1 may be re-pushed during the demo run-up; Always makes a re-push visible.
|
||||
# Switch back to IfNotPresent once the tag is frozen.
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- name: http
|
||||
|
||||
@@ -36,9 +36,9 @@ spec:
|
||||
fsGroup: 65532
|
||||
containers:
|
||||
- name: api
|
||||
image: git.noelsabia.dev/noel/pulsecast-api:gate1
|
||||
# Gate 1 reuses the `gate1` tag while iterating; Always makes a re-push visible.
|
||||
# Switch to an immutable tag + IfNotPresent at deploy freeze.
|
||||
image: git.noelsabia.dev/noel/pulsecast-api:v1.1
|
||||
# v1.1 may be re-pushed during the demo run-up; Always makes a re-push visible.
|
||||
# Switch back to IfNotPresent once the tag is frozen.
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- name: http
|
||||
|
||||
+20
-3
@@ -39,9 +39,9 @@ spec:
|
||||
containers:
|
||||
- name: web
|
||||
# Replace owner/package only if your Gitea layout differs. Keep the tag in sync with `make build`.
|
||||
image: git.noelsabia.dev/noel/pulsecast-web:gate1
|
||||
# Gate 1 reuses the `gate1` tag while iterating; Always makes a re-push visible.
|
||||
# Switch to an immutable tag + IfNotPresent at deploy freeze.
|
||||
image: git.noelsabia.dev/noel/pulsecast-web:v1.1
|
||||
# v1.1 may be re-pushed during the demo run-up; Always makes a re-push visible.
|
||||
# Switch back to IfNotPresent once the tag is frozen.
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- name: http
|
||||
@@ -58,6 +58,23 @@ spec:
|
||||
# Nuxt/Nitro may use a temp dir; keep it on the writable emptyDir.
|
||||
- name: NITRO_TEMP_DIR
|
||||
value: /tmp
|
||||
# The web server validates /control and POST /api/scenario itself
|
||||
# and attaches these same credentials to Go control calls.
|
||||
- name: CONTROL_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: control-auth
|
||||
key: CONTROL_USER
|
||||
- name: CONTROL_PASS
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: control-auth
|
||||
key: CONTROL_PASS
|
||||
- name: CONTROL_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: control-auth
|
||||
key: CONTROL_TOKEN
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
|
||||
Reference in new issue
Block a user