Switch to new way to specify cpu usage.

master
Tom Alexander 3 years ago
parent 3654b13a66
commit 7167e3fa32
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

@ -49,7 +49,7 @@ spec:
- port: 80
targetPort: "http"
---
apiVersion: autoscaling/v1
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: autoscale-test
@ -61,4 +61,10 @@ spec:
name: autoscale-test
minReplicas: 1
maxReplicas: 10
targetCPUUtilizationPercentage: 50
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 50

Loading…
Cancel
Save