Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

hpa | temporary reverse ordering for items #8

Merged
merged 2 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/app/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: app
description: Deployment for base pinup app
version: 3.3.1
version: 3.3.2
apiVersion: v2
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
Loading