64 lines
1.5 KiB
YAML
64 lines
1.5 KiB
YAML
# 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
|