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