new scaling policy
This commit is contained in:
@@ -83,11 +83,11 @@ spec:
|
||||
timeoutSeconds: 10
|
||||
resources:
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 1024Mi
|
||||
cpu: 1000m
|
||||
memory: 2048Mi
|
||||
requests:
|
||||
cpu: 300m
|
||||
memory: 700Mi
|
||||
cpu: 500M
|
||||
memory: 1024Mi
|
||||
terminationMessagePath: /dev/termination-log
|
||||
terminationMessagePolicy: File
|
||||
volumeMounts:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
apiVersion: autoscaling/v1
|
||||
apiVersion: autoscaling/v2
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: medicalalert-web-hpa
|
||||
@@ -10,4 +10,10 @@ spec:
|
||||
name: medicalalert-web
|
||||
minReplicas: 3
|
||||
maxReplicas: 6
|
||||
targetCPUUtilizationPercentage: 70
|
||||
metrics:
|
||||
- resource:
|
||||
name: cpu
|
||||
target:
|
||||
averageValue: "90"
|
||||
type: AverageValue
|
||||
type: Resource
|
||||
|
||||
Reference in New Issue
Block a user