File tree 2 files changed +35
-0
lines changed
2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ {{- if and .Values.cgimap.enabled .Values.cgimap.autoscaling.enabled -}}
2
+ apiVersion : autoscaling/v2
3
+ kind : HorizontalPodAutoscaler
4
+ metadata :
5
+ name : {{ .Release.Name }}-cgimmap-hpa
6
+ spec :
7
+ scaleTargetRef :
8
+ apiVersion : apps/v1
9
+ kind : Deployment
10
+ name : {{ .Release.Name }}-cgimap-deployment
11
+ minReplicas : {{ .Values.cgimap.autoscaling.minReplicas }}
12
+ maxReplicas : {{ .Values.cgimap.autoscaling.maxReplicas }}
13
+ metrics :
14
+ - type : Resource
15
+ resource :
16
+ name : cpu
17
+ target :
18
+ type : Utilization
19
+ averageUtilization : {{ .Values.cgimap.autoscaling.cpuUtilization }}
20
+ - type : Resource
21
+ resource :
22
+ name : memory
23
+ target :
24
+ type : Utilization
25
+ averageUtilization : {{ .Values.cgimap.autoscaling.memoryUtilization }}
26
+ {{- end }}
Original file line number Diff line number Diff line change @@ -206,6 +206,9 @@ memcached:
206
206
# Cgimap
207
207
# ====================================================================================================
208
208
cgimap :
209
+ image :
210
+ name : " "
211
+ tag : " "
209
212
enabled : false
210
213
priorityClass : " low-priority"
211
214
resources :
@@ -218,6 +221,12 @@ cgimap:
218
221
cpu : ' 10'
219
222
nodeSelector :
220
223
enabled : false
224
+ autoscaling :
225
+ enabled : false
226
+ minReplicas : 2
227
+ maxReplicas : 4
228
+ cpuUtilization : 60
229
+ memoryUtilization : 60
221
230
# ====================================================================================================
222
231
# Variables for full-history container
223
232
# ====================================================================================================
You can’t perform that action at this time.
0 commit comments