Skip to content

Commit 01d2646

Browse files
Adding resource type to default HPA configuration to resolve issues with Terraform helm chart usage (#9803)
1 parent d7ba103 commit 01d2646

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

charts/ingress-nginx/templates/default-backend-hpa.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,16 @@ spec:
2222
- type: Resource
2323
resource:
2424
name: cpu
25-
targetAverageUtilization: {{ . }}
25+
target:
26+
type: Utilization
27+
averageUtilization: {{ . }}
2628
{{- end }}
2729
{{- with .Values.defaultBackend.autoscaling.targetMemoryUtilizationPercentage }}
2830
- type: Resource
2931
resource:
3032
name: memory
31-
targetAverageUtilization: {{ . }}
33+
target:
34+
type: Utilization
35+
averageUtilization: {{ . }}
3236
{{- end }}
3337
{{- end }}

0 commit comments

Comments
 (0)