fix:HorizontalPodAutoscaler Walkthrough uses autoscaling/v1 resource

pull/43688/head
MeenuyD 2023-10-25 22:33:33 +05:30
parent 226dc4a380
commit 362d083ac7
1 changed files with 8 additions and 2 deletions

View File

@ -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