From 386f40c58eb9750b2133ba34d4b2a6bfb178e2a2 Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Mon, 26 Sep 2022 07:54:18 +0200 Subject: [PATCH] fix: update autoscaler to non-deprecated version --- k8s/autoscale-prod.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/k8s/autoscale-prod.yaml b/k8s/autoscale-prod.yaml index 7dc3c21..fc609c7 100644 --- a/k8s/autoscale-prod.yaml +++ b/k8s/autoscale-prod.yaml @@ -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