Skip to content

Commit

Permalink
update syntax on HorizontalPodAutoscaler for metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
cResults committed Dec 4, 2024
1 parent eb56bd7 commit 0c9dc11
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions helm/metadata/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,16 @@ spec:
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}

0 comments on commit 0c9dc11

Please sign in to comment.