Skip to content

Commit 9eedb84

Browse files
authored
Merge pull request #43688 from MeenuyD/autoscaling
Change HorizontalPodAutoscaler walkthrough to use autoscaling/v2 API group
2 parents 0398a27 + 362d083 commit 9eedb84

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)