From a8b8bad0e45c22c0eff0e9be875ecfe5031600d4 Mon Sep 17 00:00:00 2001 From: dirien Date: Wed, 5 Aug 2020 12:10:36 +0200 Subject: [PATCH] Update hpa.yaml update apiVersion: autoscaling/v2beta2 --- kustomize/hpa.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/kustomize/hpa.yaml b/kustomize/hpa.yaml index 9824ef1..6bd46a2 100644 --- a/kustomize/hpa.yaml +++ b/kustomize/hpa.yaml @@ -1,4 +1,4 @@ -apiVersion: autoscaling/v2beta1 +apiVersion: autoscaling/v2beta2 kind: HorizontalPodAutoscaler metadata: name: podinfo @@ -13,6 +13,8 @@ spec: - type: Resource resource: name: cpu - # scale up if usage is above - # 99% of the requested CPU (100m) - targetAverageUtilization: 99 + target: + type: Utilization + # scale up if usage is above + # 99% of the requested CPU (100m) + averageUtilization: 99