fix HPA
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 7m31s
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 7m31s
This commit is contained in:
32
k8s/hpa.yaml
32
k8s/hpa.yaml
@@ -10,15 +10,23 @@ spec:
|
|||||||
minReplicas: 2
|
minReplicas: 2
|
||||||
maxReplicas: 20
|
maxReplicas: 20
|
||||||
metrics:
|
metrics:
|
||||||
- type: Resource
|
- type: Resource
|
||||||
resource:
|
resource:
|
||||||
name: cpu
|
name: cpu
|
||||||
target:
|
target:
|
||||||
type: Utilization
|
type: Utilization
|
||||||
averageUtilization: 80
|
averageUtilization: 80
|
||||||
- type: Resource
|
- type: Resource
|
||||||
resource:
|
resource:
|
||||||
name: memory
|
name: memory
|
||||||
target:
|
target:
|
||||||
type: Utilization
|
type: Utilization
|
||||||
averageUtilization: 90
|
averageUtilization: 90
|
||||||
|
behavior:
|
||||||
|
scaleDown:
|
||||||
|
stabilizationWindowSeconds: 600
|
||||||
|
policies:
|
||||||
|
- type: Pods
|
||||||
|
value: 1
|
||||||
|
periodSeconds: 600
|
||||||
|
selectPolicy: Min
|
||||||
Reference in New Issue
Block a user