mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-06 08:47:04 +00:00
29 lines
755 B
YAML
29 lines
755 B
YAML
|
#
|
||
|
# This NodeFeatureRule replicates all built-in networkfeature labels of NFD.
|
||
|
#
|
||
|
apiVersion: nfd.k8s-sigs.io/v1alpha1
|
||
|
kind: NodeFeatureRule
|
||
|
metadata:
|
||
|
name: nfd-builtin-network-features
|
||
|
spec:
|
||
|
rules:
|
||
|
- name: "nfd built-in network-sriov.capable label"
|
||
|
labels:
|
||
|
"network-sriov.capable": "true"
|
||
|
matchFeatures:
|
||
|
- feature: network.device
|
||
|
matchExpressions:
|
||
|
"sriov_totalvfs":
|
||
|
op: Gt
|
||
|
value: ["0"]
|
||
|
|
||
|
- name: "nfd built-in network-sriov.configured label"
|
||
|
labels:
|
||
|
"network-sriov.configured": "true"
|
||
|
matchFeatures:
|
||
|
- feature: network.device
|
||
|
matchExpressions:
|
||
|
"network-sriov_numvfs":
|
||
|
op: Gt
|
||
|
value: ["0"]
|