Skip to content

Commit 362d083

Browse files
committed
fix:HorizontalPodAutoscaler Walkthrough uses autoscaling/v1 resource
1 parent 226dc4a commit 362d083

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

content/en/examples/application/hpa/php-apache.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: autoscaling/v1
1+
apiVersion: autoscaling/v2
22
kind: HorizontalPodAutoscaler
33
metadata:
44
name: php-apache
@@ -9,4 +9,10 @@ spec:
99
name: php-apache
1010
minReplicas: 1
1111
maxReplicas: 10
12-
targetCPUUtilizationPercentage: 50
12+
metrics:
13+
- type: Resource
14+
resource:
15+
name: cpu
16+
target:
17+
type: Utilization
18+
averageUtilization: 50

0 commit comments

Comments
 (0)