feat: add prod hpa configuration
All checks were successful
Build (develop) / Promote (main) / build-and-push-deploy (push) Successful in 1m9s
All checks were successful
Build (develop) / Promote (main) / build-and-push-deploy (push) Successful in 1m9s
This commit is contained in:
@@ -3,4 +3,4 @@ kind: Deployment
|
||||
metadata:
|
||||
name: vendaweb-api
|
||||
spec:
|
||||
replicas: 15
|
||||
replicas: 2
|
||||
|
||||
18
k8s/overlays/prod/hpa.yaml
Normal file
18
k8s/overlays/prod/hpa.yaml
Normal 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
|
||||
@@ -5,6 +5,7 @@ namespace: vendaweb-prod
|
||||
|
||||
resources:
|
||||
- ../../base
|
||||
- hpa.yaml
|
||||
|
||||
patches:
|
||||
- path: service-patch.yaml
|
||||
|
||||
Reference in New Issue
Block a user