sort default backend hpa metrics (#11217)
Co-authored-by: Jozef Halgas <halgasj@gmail.com>
This commit is contained in:
parent
42284d1e73
commit
eab36bb868
1 changed files with 8 additions and 8 deletions
|
@ -21,14 +21,6 @@ spec:
|
||||||
minReplicas: {{ .Values.defaultBackend.autoscaling.minReplicas }}
|
minReplicas: {{ .Values.defaultBackend.autoscaling.minReplicas }}
|
||||||
maxReplicas: {{ .Values.defaultBackend.autoscaling.maxReplicas }}
|
maxReplicas: {{ .Values.defaultBackend.autoscaling.maxReplicas }}
|
||||||
metrics:
|
metrics:
|
||||||
{{- with .Values.defaultBackend.autoscaling.targetCPUUtilizationPercentage }}
|
|
||||||
- type: Resource
|
|
||||||
resource:
|
|
||||||
name: cpu
|
|
||||||
target:
|
|
||||||
type: Utilization
|
|
||||||
averageUtilization: {{ . }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.defaultBackend.autoscaling.targetMemoryUtilizationPercentage }}
|
{{- with .Values.defaultBackend.autoscaling.targetMemoryUtilizationPercentage }}
|
||||||
- type: Resource
|
- type: Resource
|
||||||
resource:
|
resource:
|
||||||
|
@ -37,4 +29,12 @@ spec:
|
||||||
type: Utilization
|
type: Utilization
|
||||||
averageUtilization: {{ . }}
|
averageUtilization: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.defaultBackend.autoscaling.targetCPUUtilizationPercentage }}
|
||||||
|
- type: Resource
|
||||||
|
resource:
|
||||||
|
name: cpu
|
||||||
|
target:
|
||||||
|
type: Utilization
|
||||||
|
averageUtilization: {{ . }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
Loading…
Reference in a new issue