Commit de1f6e6 1 parent 2090a81 commit de1f6e6 Copy full SHA for de1f6e6
File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
{{- if .Values.autoscaling.enabled }}
2
- apiVersion : autoscaling/v2beta1
2
+ apiVersion : autoscaling/v2
3
3
kind : HorizontalPodAutoscaler
4
4
metadata :
5
5
name : {{ .Chart.Name }}
6
6
labels :
7
7
app : {{ .Chart.Name }}
8
8
environment : {{ .Values.metadata.labels.environment }}
9
-
10
9
spec :
11
10
scaleTargetRef :
12
11
apiVersion : apps/v1
@@ -19,12 +18,16 @@ spec:
19
18
- type : Resource
20
19
resource :
21
20
name : cpu
22
- targetAverageUtilization : {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
21
+ target :
22
+ type : Utilization
23
+ averageUtilization : {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
23
24
{{- end }}
24
25
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
25
26
- type : Resource
26
27
resource :
27
28
name : memory
28
- targetAverageUtilization : {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
29
+ target :
30
+ type : Utilization
31
+ averageUtilization : {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
29
32
{{- end }}
30
- {{- end }}
33
+ {{- end }}
You can’t perform that action at this time.
0 commit comments