Skip to content

Commit

Permalink
Adding resource type to default HPA configuration to resolve issues w…
Browse files Browse the repository at this point in the history
…ith Terraform helm chart usage (#9803)
  • Loading branch information
plynch-magnolia authored Apr 24, 2023
1 parent d7ba103 commit 01d2646
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions charts/ingress-nginx/templates/default-backend-hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,16 @@ spec:
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ . }}
target:
type: Utilization
averageUtilization: {{ . }}
{{- end }}
{{- with .Values.defaultBackend.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ . }}
target:
type: Utilization
averageUtilization: {{ . }}
{{- end }}
{{- end }}

0 comments on commit 01d2646

Please sign in to comment.