mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-05 16:27:05 +00:00
Add a separate customization guide. Move documentation of the custom and local sources there. Also, cover the new NodeFeatureRules custom resource and the new expression-based label rule format. This patch also simplifies the "Feature labels" page, describing built-in labels. Reformat the tables describing feature labels.
16 lines
414 B
YAML
16 lines
414 B
YAML
apiVersion: nfd.k8s-sigs.io/v1alpha1
|
|
kind: NodeFeatureRule
|
|
metadata:
|
|
name: my-sample-rule-object
|
|
spec:
|
|
rules:
|
|
- name: "my sample rule"
|
|
labels:
|
|
"my-sample-feature": "true"
|
|
matchFeatures:
|
|
- feature: kernel.loadedmodule
|
|
matchExpressions:
|
|
dummy: {op: Exists}
|
|
- feature: kernel.config
|
|
matchExpressions:
|
|
X86: {op: In, value: ["y"]}
|