=== Requiring a certain label on the node ===
Example: GPU-enabled pod which requires compute capability of at least sm-6075: <syntaxhighlight>apiVersion: v1kind: Podmetadata: name: gpu-podspec: nodeSelector: compute-capability-atleast-sm75: true # note: if a node has e.g. the label "compute-capability-sm80", it also has the # corresponding "atleast"-label for all lower compute capabilities. Same holds for "gpumem". containers: - name: gpu-container image: nvcr.io/nvidia/tensorflow:20.09-tf2-py3 command: ["sleep", "1d"] resources: requests: cpu: 1 nvidia.com/gpu: 1 memory: 10Gi limits: cpu: 1 nvidia.com/gpu: 1 memory: 10Gi # more specs (volumes etc.)</syntaxhighlight>
== Acquiring GPUs with more than 20 GB ==