feat: harden Gate 1 manifests and runbook
- add read-only make gate1-check: permissions, guardrails, dry-run, Secret keys - set numeric runAsUser/runAsGroup (SKE non-numeric user caveat), pin cloudflared and use HTTP/2 - align ML env with PULSECAST_* and wire CONTROL_TOKEN for API/ML training proxy - fix service worktree paths and smoke.sh executable bit - pin k6 v2.0.0 for xk6-sse, fix closed-connection metric and initial scenario latency - rewrite docs/deploy.md as an exact copy-paste Gate 1 checklist
This commit is contained in:
1 parent
55dfe8b616
commit
5b199f8fe3
13 files changed
+1231
-235
No files matched your search
+13
-1
@@ -28,10 +28,16 @@ spec:
|
||||
securityContext:
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
# Numeric UID is required: a non-numeric image user breaks runAsNonRoot
|
||||
# (verified on SKE with curlimages/curl, 2026-11-14).
|
||||
runAsUser: 10001
|
||||
runAsGroup: 10001
|
||||
containers:
|
||||
- name: ml
|
||||
image: git.noelsabia.dev/noelsabia/pulsecast-ml:gate1
|
||||
imagePullPolicy: IfNotPresent
|
||||
# Gate 1 reuses the `gate1` tag while iterating; Always makes a re-push visible.
|
||||
# Switch to an immutable tag + IfNotPresent at deploy freeze.
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8000
|
||||
@@ -46,6 +52,12 @@ spec:
|
||||
value: /tmp
|
||||
- name: MPLCONFIGDIR
|
||||
value: /tmp
|
||||
# Required by FastAPI /train; returns 503 when it is unset.
|
||||
- name: CONTROL_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: control-auth
|
||||
key: CONTROL_TOKEN
|
||||
resources:
|
||||
requests:
|
||||
cpu: 200m
|
||||
|
||||
Reference in new issue
Block a user