File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6969 name: database-creds
7070 key: password
7171{{- end }}
72-
73- {{/* Generate database deployment limits */ }}
74- {{- define " database.limits" -}}
75- {{- if or (.Values.limitsCpu ) (.Values.limitsMemory )}}
76- resources:
77- limits:
78- {{- if (.Values.limitsCpu ) }}
79- cpu: {{.Values.limitsCpu }}
80- {{- end }}
81- {{- if (.Values.limitsMemory ) }}
82- memory: {{.Values.limitsMemory }}
83- {{- end }}
84- {{- if (.Values.limitsHugepages2Mi ) }}
85- hugepages-2Mi: {{.Values.limitsHugepages2Mi }}
86- {{- end }}
87- {{- if (.Values.limitsHugepages1Gi ) }}
88- hugepages-1Gi: {{.Values.limitsHugepages1Gi }}
89- {{- end }}
90- {{- end }}
91- {{- end }}
Original file line number Diff line number Diff line change 3737 protocol : TCP
3838 - containerPort : 5432
3939 protocol : TCP
40- {{- include "database.limits" . | indent 8 }}
4140 {{- include "database.envs" . | indent 8 }}
41+ {{- with index .Values "resources" }}
42+ resources :
43+ {{- toYaml . | nindent 10 }}
44+ {{- end }}
4245 {{- if not .Values.diagnosticMode.enabled }}
4346 lifecycle :
4447 preStop :
Original file line number Diff line number Diff line change @@ -2,10 +2,6 @@ imageOrg: "drycc"
22imagePullPolicy : " Always"
33imageTag : " canary"
44imageRegistry : " registry.drycc.cc"
5- # limitsCpu: "100m"
6- # limitsMemory: "50Mi"
7- # limitsHugepages2Mi: 100Mi
8- # limitsHugepages1Gi: 2Gi
95
106replicas : 3
117
@@ -24,6 +20,14 @@ diagnosticMode:
2420 args :
2521 - infinity
2622
23+ resources : {}
24+ # limits:
25+ # cpu: 200m
26+ # memory: 50Mi
27+ # requests:
28+ # cpu: 100m
29+ # memory: 30Mi
30+
2731nodeAffinityPreset :
2832 key : " drycc.cc/node"
2933 type : " soft"
You can’t perform that action at this time.
0 commit comments