mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-02-03 00:38:40 +08:00
* fix: #2899, using autoscaling/v2 instead of v2beta1 * chore: change hpa definition --------- Co-authored-by: kevin.wan <kevin.wan@yijinin.com>
This commit is contained in:
parent
66be213346
commit
284331b7b1
@ -70,7 +70,7 @@ spec:
|
||||
|
||||
---
|
||||
|
||||
apiVersion: autoscaling/v2beta1
|
||||
apiVersion: autoscaling/v2beta2
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: {{.Name}}-hpa-c
|
||||
@ -88,11 +88,13 @@ spec:
|
||||
- type: Resource
|
||||
resource:
|
||||
name: cpu
|
||||
targetAverageUtilization: 80
|
||||
target:
|
||||
type: Utilization
|
||||
averageUtilization: 80
|
||||
|
||||
---
|
||||
|
||||
apiVersion: autoscaling/v2beta1
|
||||
apiVersion: autoscaling/v2beta2
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: {{.Name}}-hpa-m
|
||||
@ -110,4 +112,6 @@ spec:
|
||||
- type: Resource
|
||||
resource:
|
||||
name: memory
|
||||
targetAverageUtilization: 80
|
||||
target:
|
||||
type: Utilization
|
||||
averageUtilization: 80
|
||||
|
Loading…
Reference in New Issue
Block a user