diff --git a/charts/element-call/Chart.yaml b/charts/element-call/Chart.yaml index 44da0cc..bb07294 100644 --- a/charts/element-call/Chart.yaml +++ b/charts/element-call/Chart.yaml @@ -6,7 +6,7 @@ type: application # This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: "0.1.5" +version: "0.1.6" # This version number should be incremented each time you make changes # to the application. 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 }}