File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -39,16 +39,10 @@ spec:
39
39
command : {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 10 }}
40
40
args : {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 10 }}
41
41
{{- end }}
42
- {{- if or ( .Values.limitsCpu) (.Values.limitsMemory) }}
42
+ {{- with index .Values "resources" }}
43
43
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 }}
52
46
{{- include "fluentbit.envs" . | indent 8 }}
53
47
volumeMounts :
54
48
- name : varlog
Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ imageOrg: "drycc"
2
2
imagePullPolicy : " Always"
3
3
imageTag : " canary"
4
4
imageRegistry : " registry.drycc.cc"
5
- # limitsCpu: "100m"
6
- # limitsMemory: "50Mi"
7
5
8
6
# # Enable diagnostic mode
9
7
# #
@@ -20,6 +18,14 @@ diagnosticMode:
20
18
args :
21
19
- infinity
22
20
21
+ resources : {}
22
+ # limits:
23
+ # cpu: 200m
24
+ # memory: 50Mi
25
+ # requests:
26
+ # cpu: 100m
27
+ # memory: 30Mi
28
+
23
29
# Interval to flush output (seconds)
24
30
flush : 1
25
31
You can’t perform that action at this time.
0 commit comments