diff --git a/charts/wiremock/templates/hpa.yaml b/charts/wiremock/templates/hpa.yaml index 3b38c10..b90548f 100644 --- a/charts/wiremock/templates/hpa.yaml +++ b/charts/wiremock/templates/hpa.yaml @@ -14,19 +14,19 @@ spec: maxReplicas: {{ .Values.autoscaling.maxReplicas }} metrics: {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} - - resource: + - type: Resource + resource: name: cpu target: type: Utilization averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} - type: Resource {{- end }} {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} - - resource: + - type: Resource + resource: name: memory target: type: Utilization averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} - type: Resource {{- end }} {{- end }}