From 94ff719c0dce94b3a7ef12c2558bad75cb7fd87d Mon Sep 17 00:00:00 2001 From: Roland Kool Date: Mon, 23 Dec 2024 13:24:52 +0100 Subject: [PATCH] fix: HPA v2 spec Signed-off-by: Roland Kool --- charts/zipkin/templates/hpa.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/charts/zipkin/templates/hpa.yaml b/charts/zipkin/templates/hpa.yaml index ab89efe..ec68a24 100644 --- a/charts/zipkin/templates/hpa.yaml +++ b/charts/zipkin/templates/hpa.yaml @@ -31,12 +31,16 @@ 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 }} {{- end }}