new scaling policy

This commit is contained in:
Rachit Bhargava
2024-01-19 11:42:08 -05:00
parent 97f085f5e8
commit 7149ce102d
7 changed files with 43 additions and 19 deletions

View File

@@ -9,7 +9,7 @@ metadata:
namespace: medicalalert-web
spec:
progressDeadlineSeconds: 600
replicas: 3
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:

View File

@@ -1,4 +1,4 @@
apiVersion: autoscaling/v1
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: medicalalert-web-hpa
@@ -8,6 +8,12 @@ spec:
apiVersion: apps/v1
kind: Deployment
name: medicalalert-web
minReplicas: 3
maxReplicas: 6
targetCPUUtilizationPercentage: 70
minReplicas: 1
maxReplicas: 2
metrics:
- resource:
name: cpu
target:
averageValue: "90"
type: AverageValue
type: Resource