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