fix: update autoscaler to non-deprecated version
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: autoscaling/v2beta1
|
apiVersion: autoscaling/v2
|
||||||
kind: HorizontalPodAutoscaler
|
kind: HorizontalPodAutoscaler
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
@@ -6,7 +6,7 @@ metadata:
|
|||||||
name: dancefinder-app
|
name: dancefinder-app
|
||||||
spec:
|
spec:
|
||||||
scaleTargetRef:
|
scaleTargetRef:
|
||||||
apiVersion: apps/v1beta1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
name: dancefinder-app
|
name: dancefinder-app
|
||||||
minReplicas: 2
|
minReplicas: 2
|
||||||
@@ -15,4 +15,6 @@ spec:
|
|||||||
- type: Resource
|
- type: Resource
|
||||||
resource:
|
resource:
|
||||||
name: cpu
|
name: cpu
|
||||||
targetAverageUtilization: 60
|
target:
|
||||||
|
type: Utilization
|
||||||
|
averageUtilization: 60
|
||||||
|
|||||||
Reference in New Issue
Block a user