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 }}