Skip to content

Commit 9cb73a5

Browse files
authored
fix: HPA v2 spec (#28)
Signed-off-by: Roland Kool <rkool@bol.com>
1 parent d47269b commit 9cb73a5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

charts/zipkin/templates/hpa.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,16 @@ spec:
3131
- type: Resource
3232
resource:
3333
name: cpu
34-
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
34+
target:
35+
type: Utilization
36+
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
3537
{{- end }}
3638
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
3739
- type: Resource
3840
resource:
3941
name: memory
40-
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
42+
target:
43+
type: Utilization
44+
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
4145
{{- end }}
4246
{{- end }}

0 commit comments

Comments
 (0)