48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: traceworks-api
|
|
namespace: traceworks
|
|
labels:
|
|
app: traceworks-api
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: traceworks-api
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: traceworks-api
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: forgejo-regcred
|
|
containers:
|
|
- name: api
|
|
image: ci.nxtgauge.com/admin/traceworks2026-api:19700101000000-000000000000
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 3001
|
|
name: http
|
|
envFrom:
|
|
- secretRef:
|
|
name: traceworks-api-env
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /api/health
|
|
port: 3001
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /api/health
|
|
port: 3001
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 20
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 256Mi
|