Documentation
¶
Index ¶
Constants ¶
View Source
const ( NvidiaGPU = "nvidia.com/gpu" AMDGPU = "amd.com/gpu" AWSNeuron = "aws.amazon.com/neuron" AWSPodENI = "vpc.amazonaws.com/pod-eni" )
Variables ¶
This section is empty.
Functions ¶
func GPULimitsFor ¶ added in v0.5.3
func GPULimitsFor(pod *v1.Pod) v1.ResourceList
GPULimitsFor returns a resource list of GPU limits from a pod GPUs must be specified in the Limits section of the pod resources per
https://kubernetes.io/docs/tasks/manage-gpus/scheduling-gpus/
func LimitsForPods ¶ added in v0.5.3
func LimitsForPods(pods ...*v1.Pod) v1.ResourceList
LimitsForPods returns the total resources of a variadic list of podspecs
func Merge ¶
func Merge(resources ...v1.ResourceList) v1.ResourceList
Merge the resources from the variadic into a single v1.ResourceList
func RequestsForPods ¶
func RequestsForPods(pods ...*v1.Pod) v1.ResourceList
RequestsForPods returns the total resources of a variadic list of podspecs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.