3 Commits

Author SHA1 Message Date
Gitea Action
18e822e949 chore: update image tag to f1c0543 [skip ci] 2026-02-24 23:29:45 +00:00
joelson
f1c0543a0b feat: add prod hpa configuration
All checks were successful
Build (develop) / Promote (main) / build-and-push-deploy (push) Successful in 1m9s
2026-02-24 20:27:05 -03:00
Gitea Action
f67d73d1b8 chore: update image tag to 5a2ea15 [skip ci] 2026-02-20 13:12:41 +00:00
4 changed files with 21 additions and 2 deletions

View File

@@ -7,4 +7,4 @@ spec:
spec:
containers:
- name: api
image: 172.35.0.216:3000/simplifique/vendaweb-api:016c930
image: 172.35.0.216:3000/simplifique/vendaweb-api:f1c0543

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