From 3a2a1667089f3c73db9c586c395abb5a9072fd80 Mon Sep 17 00:00:00 2001 From: Michael Gagliardo Date: Tue, 8 Aug 2023 11:58:05 -0400 Subject: [PATCH] Update hpa.yaml --- ndustrial/deployment/templates/hpa.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ndustrial/deployment/templates/hpa.yaml b/ndustrial/deployment/templates/hpa.yaml index f4c572f..e991769 100644 --- a/ndustrial/deployment/templates/hpa.yaml +++ b/ndustrial/deployment/templates/hpa.yaml @@ -23,13 +23,17 @@ spec: - type: Resource resource: name: cpu - targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} {{- end }} {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} - type: Resource resource: name: memory - targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} {{- end }} {{- if .Values.autoscaling.externalMetric.metricName }} - type: External