Skip to content

Commit

Permalink
upd: hpa reverse items ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
dihnatenkopinup authored Feb 20, 2024
1 parent 4b92b27 commit d7eceae
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions charts/app/templates/kube-hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ spec:
{{- toYaml .Values.hpa.behavior | indent 4 }}
{{- end }}
metrics:
{{- if .Values.hpa.cpu }}
{{- if .Values.hpa.memory }}
- type: Resource
resource:
name: cpu
name: memory
target:
type: Utilization
averageUtilization: {{ .Values.hpa.cpu | default "70" }}
averageUtilization: {{ .Values.hpa.memory | default "70" }}
{{- end }}
{{- if .Values.hpa.memory }}
{{- if .Values.hpa.cpu }}
- type: Resource
resource:
name: memory
name: cpu
target:
type: Utilization
averageUtilization: {{ .Values.hpa.memory | default "70" }}
averageUtilization: {{ .Values.hpa.cpu | default "70" }}
{{- end }}
{{- if .Values.hpa.customMetric }}
- type: Object
Expand Down

0 comments on commit d7eceae

Please sign in to comment.