Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
HPA Bug fix with updated api version (#61)
Browse files Browse the repository at this point in the history
HPA Bug fix with updated API version
Signed-off-by: AB <[email protected]>
  • Loading branch information
bhataprameya authored Dec 8, 2023
1 parent 6b1d325 commit 752c75e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,17 @@ spec:
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- with .Values.autoscaling.customMetric -}}
{{ toYaml . | nindent 4 }}
Expand Down

0 comments on commit 752c75e

Please sign in to comment.