Skip to content

Commit

Permalink
fix: HPA v2 spec (#28)
Browse files Browse the repository at this point in the history
Signed-off-by: Roland Kool <[email protected]>
  • Loading branch information
rolandkool authored Jan 2, 2025
1 parent d47269b commit 9cb73a5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions charts/zipkin/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,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 9cb73a5

Please sign in to comment.