prod backend: 250m/500m + HPA max 12 to spread across nodes

This commit is contained in:
planpal 2026-09-02 16:10:27 +07:00
parent beeb449c6e
commit 05b4c84172

View File

@ -22,6 +22,27 @@ ingress:
certArn: arn:aws:acm:ap-southeast-3:134604498185:certificate/79b1f257-0f66-4b32-96cb-5ea5c12792f6 certArn: arn:aws:acm:ap-southeast-3:134604498185:certificate/79b1f257-0f66-4b32-96cb-5ea5c12792f6
groupName: planpal-helm # share the one public ALB with argocd + gitea groupName: planpal-helm # share the one public ALB with argocd + gitea
# Prod backend sized to spread across nodes under load and scale wide.
# 250m request => ~7 pods/node (1930m allocatable); max 12 => uses all 4 nodes.
apps:
backend:
command: [planpal-server]
image: backend
envFrom: [backend-env, aws-env]
ports:
- { name: http, containerPort: 8088 }
- { name: metrics, containerPort: 9090 }
service:
port: 8088
targetPort: 8088
probePath: /api/v1/health
probePort: 8088
resources:
requests: { cpu: 250m, memory: 96Mi }
limits: { cpu: 500m, memory: 256Mi }
hpa: { min: 2, max: 12, cpu: 60 }
pdb: { maxUnavailable: 1 }
seedJob: seedJob:
enabled: true enabled: true