mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-15 17:50:49 +00:00
57b6035b71
kubectl-nfd is a kubectl plugin for debbuging NodeFeatureRules Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
31 lines
805 B
YAML
31 lines
805 B
YAML
apiVersion: nfd.k8s-sigs.io/v1alpha1
|
|
kind: NodeFeatureRule
|
|
metadata:
|
|
name: my-sample-rule-object
|
|
spec:
|
|
rules:
|
|
- name: "my sample rule"
|
|
labels:
|
|
"vendor.io/my-sample-feature": "true"
|
|
matchFeatures:
|
|
- feature: kernel.loadedmodule
|
|
matchExpressions:
|
|
dummy: { op: Exists }
|
|
- feature: kernel.config
|
|
matchExpressions:
|
|
X86: { op: In, value: ["y"] }
|
|
---
|
|
apiVersion: nfd.k8s-sigs.io/v1alpha1
|
|
kind: NodeFeatureRule
|
|
metadata:
|
|
name: my-sample-extened-resource
|
|
spec:
|
|
rules:
|
|
- name: "my sample rule"
|
|
extendedResources:
|
|
vendor.io/dynamic: "@kernel.version.major"
|
|
vendor.io/static: "123"
|
|
matchFeatures:
|
|
- feature: kernel.version
|
|
matchExpressions:
|
|
major: { op: Exists }
|