feat: add prod hpa configuration
All checks were successful
Build (develop) / Promote (main) / build-and-push-deploy (push) Successful in 1m9s

This commit is contained in:
joelson
2026-02-24 20:27:05 -03:00
parent f67d73d1b8
commit f1c0543a0b
3 changed files with 20 additions and 1 deletions

View File

@@ -3,4 +3,4 @@ kind: Deployment
metadata:
name: vendaweb-api
spec:
replicas: 15
replicas: 2

View File

@@ -0,0 +1,18 @@
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: vendaweb-api
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: vendaweb-api
minReplicas: 2
maxReplicas: 15
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70

View File

@@ -5,6 +5,7 @@ namespace: vendaweb-prod
resources:
- ../../base
- hpa.yaml
patches:
- path: service-patch.yaml