WP-0011: deploy scaffolding for revenue.coulomb.social
Record T01 package (in-repo k8s/railiance, combined /ui + API app, dedicated CNPG). Add Dockerfile, healthz, migration/bootstrap scripts, kustomize manifests, ArgoCD Application (in railiance-platform), and docs/deployment.md. T05 left open for operator DNS/OpenBao/image push.
This commit is contained in:
parent
3064c0fe0c
commit
9e4e84f9ee
26 changed files with 691 additions and 142 deletions
54
k8s/railiance/bootstrap-job.yaml
Normal file
54
k8s/railiance/bootstrap-job.yaml
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
# Idempotent founding binky admin credential (WP-0011-T01/T05).
|
||||
# Safe to re-run: no-op when a binky credential already exists.
|
||||
# Capture TOKEN= from job logs once on first bootstrap; store in a password
|
||||
# manager — never commit.
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: target-revenue-bootstrap-binky
|
||||
namespace: target-revenue
|
||||
labels:
|
||||
app.kubernetes.io/name: target-revenue
|
||||
app.kubernetes.io/component: bootstrap
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "2"
|
||||
argocd.argoproj.io/hook: Sync
|
||||
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation
|
||||
spec:
|
||||
ttlSecondsAfterFinished: 86400
|
||||
backoffLimit: 2
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: target-revenue
|
||||
app.kubernetes.io/component: bootstrap
|
||||
spec:
|
||||
restartPolicy: OnFailure
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 10001
|
||||
fsGroup: 10001
|
||||
containers:
|
||||
- name: bootstrap
|
||||
image: forgejo.coulomb.social/coulomb/target-revenue:0.1.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
env:
|
||||
- name: TRF_BOOTSTRAP_BINKY
|
||||
value: "1"
|
||||
- name: TRF_DATABASE_URL
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: target-revenue-runtime
|
||||
key: TRF_MIGRATE_DATABASE_URL
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
readOnlyRootFilesystem: true
|
||||
capabilities:
|
||||
drop: ["ALL"]
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 256Mi
|
||||
Loading…
Add table
Add a link
Reference in a new issue