Merge pull request #43688 from MeenuyD/autoscaling
Change HorizontalPodAutoscaler walkthrough to use autoscaling/v2 API grouppull/44251/head
commit
9eedb8451e
|
@ -1,4 +1,4 @@
|
|||
apiVersion: autoscaling/v1
|
||||
apiVersion: autoscaling/v2
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: php-apache
|
||||
|
@ -9,4 +9,10 @@ spec:
|
|||
name: php-apache
|
||||
minReplicas: 1
|
||||
maxReplicas: 10
|
||||
targetCPUUtilizationPercentage: 50
|
||||
metrics:
|
||||
- type: Resource
|
||||
resource:
|
||||
name: cpu
|
||||
target:
|
||||
type: Utilization
|
||||
averageUtilization: 50
|
||||
|
|
Loading…
Reference in New Issue