17 lines
455 B
YAML
17 lines
455 B
YAML
apiVersion: resource.k8s.io/v1beta2
|
|
kind: ResourceClaim
|
|
metadata:
|
|
name: example-resource-claim
|
|
spec:
|
|
devices:
|
|
requests:
|
|
- name: single-gpu-claim
|
|
exactly:
|
|
deviceClassName: example-device-class
|
|
allocationMode: All
|
|
selectors:
|
|
- cel:
|
|
expression: |-
|
|
device.attributes["driver.example.com"].type == "gpu" &&
|
|
device.capacity["driver.example.com"].memory == quantity("64Gi")
|