_limitations.tpl 400 B

12345678910111213141516
  1. {{/*
  2. Resource limitations
  3. */}}
  4. {{ define "common.resources.limitation" }}
  5. {{ if (or .Values.enableResourceLimits .Values.gpuConfiguration) }}
  6. resources:
  7. limits:
  8. {{ if .Values.enableResourceLimits }}
  9. cpu: {{ .Values.cpuLimit }}
  10. memory: {{ .Values.memLimit }}
  11. {{ end }}
  12. {{ if .Values.gpuConfiguration }}
  13. {{ toYaml .Values.gpuConfiguration | nindent 4 }}
  14. {{ end }}
  15. {{ end }}
  16. {{ end }}