File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,16 +39,10 @@ spec:
3939 command : {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 10 }}
4040 args : {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 10 }}
4141 {{- end }}
42- {{- if or ( .Values.limitsCpu) (.Values.limitsMemory) }}
42+ {{- with index .Values "resources" }}
4343 resources :
44- limits :
45- {{- if (.Values.limitsCpu) }}
46- cpu : {{.Values.limitsCpu}}
47- {{- end}}
48- {{- if (.Values.limitsMemory) }}
49- memory : {{.Values.limitsMemory}}
50- {{- end}}
51- {{- end}}
44+ {{- toYaml . | nindent 10 }}
45+ {{- end }}
5246 {{- include "fluentbit.envs" . | indent 8 }}
5347 volumeMounts :
5448 - name : varlog
Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ imageOrg: "drycc"
22imagePullPolicy : " Always"
33imageTag : " canary"
44imageRegistry : " registry.drycc.cc"
5- # limitsCpu: "100m"
6- # limitsMemory: "50Mi"
75
86# # Enable diagnostic mode
97# #
@@ -20,6 +18,14 @@ diagnosticMode:
2018 args :
2119 - infinity
2220
21+ resources : {}
22+ # limits:
23+ # cpu: 200m
24+ # memory: 50Mi
25+ # requests:
26+ # cpu: 100m
27+ # memory: 30Mi
28+
2329# Interval to flush output (seconds)
2430flush : 1
2531
You can’t perform that action at this time.
0 commit comments