Merge pull request #43688 from MeenuyD/autoscaling

Change HorizontalPodAutoscaler walkthrough to use autoscaling/v2 API group
pull/44251/head
Kubernetes Prow Robot 2023-12-07 14:40:13 +01:00 committed by GitHub
commit 9eedb8451e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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