From 7d6f7c386119705f484f094dcdf36a3b474a1ab7 Mon Sep 17 00:00:00 2001 From: Laurence Gill Date: Tue, 26 Sep 2023 17:19:05 +0100 Subject: [PATCH] Sort HPA --- charts/element-call/templates/hpa.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/charts/element-call/templates/hpa.yaml b/charts/element-call/templates/hpa.yaml index 573a25d..55faa30 100644 --- a/charts/element-call/templates/hpa.yaml +++ b/charts/element-call/templates/hpa.yaml @@ -13,20 +13,20 @@ spec: minReplicas: {{ .Values.autoscaling.minReplicas }} maxReplicas: {{ .Values.autoscaling.maxReplicas }} metrics: - {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} + {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} - type: Resource resource: - name: cpu + name: memory target: type: Utilization - averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} + averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} {{- end }} - {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} + {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} - type: Resource resource: - name: memory + name: cpu target: type: Utilization - averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} + averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} {{- end }} {{- end }}