Files
taskarr-mgr/deploy/overlays/preview/deployment.yaml
2026-05-13 09:10:47 +02:00

27 lines
709 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: election # Must match the name in base/
spec:
replicas: 2 # Scale up for production
template:
spec:
containers:
- name: election # This name must match base EXACTLY
ports: # Adding this back into the patch solves the diff
- containerPort: 3000
name: election
# Production-specific resource limits
resources:
limits:
cpu: "1"
memory: "1Gi"
requests:
cpu: "500m"
memory: "512Mi"
# Adding a production-only environment variable
env:
- name: NODE_ENV
value: "production"