Files
infra-k8/deploy/examples/secrets.example.yaml
Noel Sabia 5b199f8fe3 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
2026-11-14 05:10:41 +01:00

46 lines
1.4 KiB
YAML

# EXAMPLE ONLY — do not apply this file.
# It exists so the manifest shapes are reviewable. Create the real secrets with
# the commands in docs/deploy.md; never commit real tokens or credentials.
#
# kubectl -n fch26-onemanarmy create secret generic cloudflared \
# --from-literal=TUNNEL_TOKEN='<cloudflare tunnel token>'
#
# kubectl -n fch26-onemanarmy create secret generic control-auth \
# --from-literal=CONTROL_USER='<control user>' \
# --from-literal=CONTROL_PASS='<strong password>' \
# --from-literal=CONTROL_TOKEN='<random token shared by API and ML>'
#
# kubectl -n fch26-onemanarmy create secret docker-registry gitea-regcred \
# --docker-server=git.noelsabia.dev \
# --docker-username='<gitea user>' \
# --docker-password='<read-only package token>'
apiVersion: v1
kind: Secret
metadata:
name: cloudflared
namespace: fch26-onemanarmy
type: Opaque
stringData:
TUNNEL_TOKEN: "REPLACE_ME"
---
apiVersion: v1
kind: Secret
metadata:
name: control-auth
namespace: fch26-onemanarmy
type: Opaque
stringData:
CONTROL_USER: "REPLACE_ME"
CONTROL_PASS: "REPLACE_ME"
CONTROL_TOKEN: "REPLACE_ME"
---
apiVersion: v1
kind: Secret
metadata:
name: gitea-regcred
namespace: fch26-onemanarmy
type: kubernetes.io/dockerconfigjson
stringData:
.dockerconfigjson: |
{"auths":{"git.noelsabia.dev":{"username":"REPLACE_ME","password":"REPLACE_ME","auth":"REPLACE_ME"}}}