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