_limitations.tpl 442 B

12345678910111213141516171819
  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. requests:
  13. cpu: 10m
  14. memory: 50Mi
  15. {{ if .Values.gpuConfiguration }}
  16. {{ toYaml .Values.gpuConfiguration | nindent 4 }}
  17. {{ end }}
  18. {{ end }}
  19. {{ end }}