Reverse HPA metrics order (#22626)

* Reverse HPA metrics order

Closes #22620 
Signed-off-by: Yaron Idan <yaronidan@gmail.com>

* Bump chart version

Signed-off-by: Yaron Idan <yaronidan@gmail.com>
This commit is contained in:
Yaron Idan
2020-06-03 08:18:20 -07:00
committed by GitHub
parent 4154a10106
commit de13551ecb
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: nginx-ingress
version: 1.39.0
version: 1.39.1
appVersion: 0.32.0
home: https://github.com/kubernetes/ingress-nginx
description: An nginx Ingress controller that uses ConfigMap to store the nginx configuration.
@@ -18,17 +18,17 @@ spec:
minReplicas: {{ .Values.controller.autoscaling.minReplicas }}
maxReplicas: {{ .Values.controller.autoscaling.maxReplicas }}
metrics:
{{- with .Values.controller.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ . }}
{{- end }}
{{- with .Values.controller.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ . }}
{{- end }}
{{- with .Values.controller.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ . }}
{{- end }}
{{- end }}
{{- end }}