spec:
nodeSelector:
gpumem=32: "40"
tolerations:
- key: "gpumem"
If you need a GPU with *at least* 32 GB, but also would be happy with more, you have to # make the pod just can tolerate the taint "gpumem=32" *and* "gpumem=40"any amount.Then,# make the pod require the node label "gpumem" to be larger than 31.
Example:
# not sure if this works, maybe you need tolerations for all the
# different values, each with an "Equal" operator.
operator: "GtExists" value: 31
effect: "NoSchedule"
# ... rest of the specs like before
</syntaxhighlight>