File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -11,18 +11,22 @@ spec:
11
11
minReplicas : {{ .Values.web.autoscaling.minReplicas }}
12
12
maxReplicas : {{ .Values.web.autoscaling.maxReplicas }}
13
13
metrics :
14
+ {{- if .Values.web.autoscaling.cpuUtilization.enable }}
14
15
- type : Resource
15
16
resource :
16
17
name : cpu
17
18
target :
18
19
type : Utilization
19
- averageUtilization : {{ .Values.web.autoscaling.cpuUtilization }}
20
+ averageUtilization : {{ .Values.web.autoscaling.cpuUtilization.value }}
21
+ {{- end }}
22
+ {{- if .Values.web.autoscaling.memoryUtilization.enable }}
20
23
- type : Resource
21
24
resource :
22
25
name : memory
23
26
target :
24
27
type : Utilization
25
- averageUtilization : {{ .Values.web.autoscaling.memoryUtilization }}
28
+ averageUtilization : {{ .Values.web.autoscaling.memoryUtilization.value }}
29
+ {{- end }}
26
30
behavior :
27
31
scaleUp :
28
32
stabilizationWindowSeconds : {{ .Values.web.autoscaling.behavior.scaleUp.stabilizationWindowSeconds | default 60 }}
Original file line number Diff line number Diff line change @@ -178,8 +178,12 @@ web:
178
178
enabled : true
179
179
minReplicas : 1
180
180
maxReplicas : 6
181
- cpuUtilization : 85
182
- memoryUtilization : 85
181
+ cpuUtilization :
182
+ enable : false
183
+ value : 85
184
+ memoryUtilization :
185
+ enable : false
186
+ value : 85
183
187
behavior :
184
188
scaleUp :
185
189
stabilizationWindowSeconds : 60
You can’t perform that action at this time.
0 commit comments