File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
- {{- if .Values.web.enabled -}}
2
- {{- if .Values.web.autoscaling.enabled -}}
1
+ {{- if and .Values.web.enabled .Values.web.autoscaling.enabled -}}
3
2
apiVersion : autoscaling/v2
4
3
kind : HorizontalPodAutoscaler
5
4
metadata :
18
17
target :
19
18
type : Utilization
20
19
averageUtilization : {{ .Values.web.autoscaling.cpuUtilization }}
21
- {{- end }}
20
+ - type : Resource
21
+ resource :
22
+ name : memory
23
+ target :
24
+ type : Utilization
25
+ averageUtilization : {{ .Values.web.autoscaling.memoryUtilization }}
22
26
{{- end }}
Original file line number Diff line number Diff line change 178
178
enabled : false
179
179
minReplicas : 1
180
180
maxReplicas : 3
181
- cpuUtilization : 80
181
+ cpuUtilization : 60
182
+ memoryUtilization : 60
182
183
sharedMemorySize : 256Mi
183
184
livenessProbeExec : true
184
185
# ====================================================================================================
You can’t perform that action at this time.
0 commit comments