mirror of
https://github.com/truenas/charts.git
synced 2026-12-03 07:46:01 +00:00
20 lines
442 B
Smarty
20 lines
442 B
Smarty
{{/*
|
|
Resource limitations
|
|
*/}}
|
|
{{ define "common.resources.limitation" }}
|
|
{{ if (or .Values.enableResourceLimits .Values.gpuConfiguration) }}
|
|
resources:
|
|
limits:
|
|
{{ if .Values.enableResourceLimits }}
|
|
cpu: {{ .Values.cpuLimit }}
|
|
memory: {{ .Values.memLimit }}
|
|
{{ end }}
|
|
{{ if .Values.gpuConfiguration }}
|
|
{{ toYaml .Values.gpuConfiguration | nindent 4 }}
|
|
{{ end }}
|
|
requests:
|
|
cpu: 10m
|
|
memory: 50Mi
|
|
{{ end }}
|
|
{{ end }}
|