fix(recovery): restore source removed by production documentation merge
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# Kubernetes manifests — reference only, NOT the deploy path
|
||||
|
||||
BACKLOG P6 (CD-23). **0pt's actual deploy target is Coolify** (ADR-0001,
|
||||
`siax.config.json`), which runs the committed `Dockerfile` directly — it
|
||||
does not consume Kubernetes manifests. `deploy/k8s/deployment.yaml` in this
|
||||
directory is a reference example only, for the scenario where a future SIAX
|
||||
Cloud node runs k8s instead of/alongside Coolify. It is not applied by any
|
||||
CI/CD path in this repo, and nothing in `.gitea/workflows/` references it.
|
||||
|
||||
Do not `kubectl apply` this against a real cluster without first replacing
|
||||
the placeholder image reference and reviewing resource limits against actual
|
||||
measured usage (none exists yet — 0pt has no live traffic history to size
|
||||
against, see BACKLOG P0-2/D5).
|
||||
@@ -0,0 +1,63 @@
|
||||
# Reference only -- see deploy/k8s/README.md. Not applied by any CI/CD path.
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: 0pt-web
|
||||
labels:
|
||||
app: 0pt-web
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: 0pt-web
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: 0pt-web
|
||||
spec:
|
||||
containers:
|
||||
- name: 0pt-web
|
||||
image: REPLACE_ME/0pt-web:REPLACE_ME_TAG
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
env:
|
||||
- name: NODE_ENV
|
||||
value: "production"
|
||||
# Real values come from Infisical (BACKLOG P0-1), never from a
|
||||
# committed manifest -- see siax.config.json's `env` list for the
|
||||
# names this app reads.
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: 0pt-web-env
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: 3000
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 15
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /api/ready
|
||||
port: 3000
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
resources:
|
||||
# Placeholder -- no live traffic history exists to size against
|
||||
# (BACKLOG P0-2/D5). Replace before any real use.
|
||||
requests:
|
||||
cpu: "250m"
|
||||
memory: "256Mi"
|
||||
limits:
|
||||
cpu: "1"
|
||||
memory: "512Mi"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: 0pt-web
|
||||
spec:
|
||||
selector:
|
||||
app: 0pt-web
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 3000
|
||||
Reference in New Issue
Block a user