File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,16 +37,10 @@ spec:
3737 command : {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 10 }}
3838 args : {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 10 }}
3939 {{- end }}
40- {{- if or ( .Values.limitsCpu) (.Values.limitsMemory) }}
40+ {{- with index .Values "resources" }}
4141 resources :
42- limits :
43- {{- if (.Values.limitsCpu) }}
44- cpu : {{.Values.limitsCpu}}
45- {{- end}}
46- {{- if (.Values.limitsMemory) }}
47- memory : {{.Values.limitsMemory}}
48- {{- end}}
49- {{- end}}
42+ {{- toYaml . | nindent 10 }}
43+ {{- end }}
5044 ports :
5145 - containerPort : 3000
5246 name : grafana
Original file line number Diff line number Diff line change @@ -18,8 +18,13 @@ diagnosticMode:
1818 args :
1919 - infinity
2020
21- # limitsCpu: "100m"
22- # limitsMemory: "50Mi"
21+ resources : {}
22+ # limits:
23+ # cpu: 200m
24+ # memory: 50Mi
25+ # requests:
26+ # cpu: 100m
27+ # memory: 30Mi
2328
2429nodeAffinityPreset :
2530 key : " drycc.cc/node"
You can’t perform that action at this time.
0 commit comments