target-revenue/k8s/railiance/deployment.yaml
tegwick 9e4e84f9ee 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.
2026-08-05 16:41:00 +02:00

78 lines
2.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: target-revenue
namespace: target-revenue
labels:
app.kubernetes.io/name: target-revenue
app.kubernetes.io/part-of: target-revenue
annotations:
argocd.argoproj.io/sync-wave: "3"
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: target-revenue
template:
metadata:
labels:
app.kubernetes.io/name: target-revenue
app.kubernetes.io/part-of: target-revenue
spec:
securityContext:
runAsNonRoot: true
runAsUser: 10001
fsGroup: 10001
containers:
- name: target-revenue
image: forgejo.coulomb.social/coulomb/target-revenue:0.1.0
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8000
env:
- name: TRF_DATABASE_URL
valueFrom:
secretKeyRef:
name: target-revenue-runtime
key: TRF_DATABASE_URL
- name: TRF_SIGNING_KEY_HEX
valueFrom:
secretKeyRef:
name: target-revenue-runtime
key: TRF_SIGNING_KEY_HEX
- name: TRF_CONTROL_PLANE_SECRET_KEY
valueFrom:
secretKeyRef:
name: target-revenue-runtime
key: TRF_CONTROL_PLANE_SECRET_KEY
readinessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 15
periodSeconds: 20
resources:
requests:
cpu: 50m
memory: 256Mi
limits:
cpu: 1000m
memory: 512Mi
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop: ["ALL"]
volumeMounts:
- name: tmp
mountPath: /tmp
volumes:
- name: tmp
emptyDir: {}