Files
cannaiq/backend/k8s/deployment.yaml
2025-11-28 19:45:44 -07:00

48 lines
1.1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: dutchie-backend
namespace: default
labels:
app: dutchie-backend
spec:
replicas: 2
selector:
matchLabels:
app: dutchie-backend
template:
metadata:
labels:
app: dutchie-backend
spec:
containers:
- name: backend
image: YOUR_REGISTRY/dutchie-backend:latest # Replace with your Docker registry
ports:
- containerPort: 3010
name: http
envFrom:
- configMapRef:
name: dutchie-backend-config
- secretRef:
name: dutchie-backend-secret
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "512Mi"
cpu: "500m"
livenessProbe:
httpGet:
path: /health
port: 3010
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
httpGet:
path: /health
port: 3010
initialDelaySeconds: 5
periodSeconds: 5