fix(charts/nginx): reorder metrics HPA (#9440)

Signed-off-by: Jakub Oskera <iam@jakuboskera.dev>
This commit is contained in:
Jakub Oskera
2022-03-17 10:37:03 +01:00
committed by GitHub
parent eada5c606c
commit c93e9ca13f

View File

@@ -18,16 +18,16 @@ spec:
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
metrics:
{{- if .Values.autoscaling.targetCPU }}
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.autoscaling.targetCPU }}
{{- end }}
{{- if .Values.autoscaling.targetMemory }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.autoscaling.targetMemory }}
{{- end }}
{{- if .Values.autoscaling.targetCPU }}
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.autoscaling.targetCPU }}
{{- end }}
{{- end }}