fix: update autoscaler to non-deprecated version

This commit is contained in:
2022-09-26 07:54:18 +02:00
parent 4fd9add93d
commit 386f40c58e
+5 -3
View File
@@ -1,4 +1,4 @@
apiVersion: autoscaling/v2beta1
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
labels:
@@ -6,7 +6,7 @@ metadata:
name: dancefinder-app
spec:
scaleTargetRef:
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: Deployment
name: dancefinder-app
minReplicas: 2
@@ -15,4 +15,6 @@ spec:
- type: Resource
resource:
name: cpu
targetAverageUtilization: 60
target:
type: Utilization
averageUtilization: 60