@@ -86,6 +86,58 @@ See the
86
86
[Customization guide](customization-guide.md#node-feature-rule-custom-resource)
87
87
for full documentation of the NodeFeatureRule resource and its usage.
88
88
89
+ ## NodeFeatureGroup
90
+
91
+ > **NOTE:** This feature is experimental and may change in the future.
92
+
93
+ NodeFeatureGroup is an NFD-specific custom resource that is designed for
94
+ grouping Nodes by matching features rules. NFD-Master watches for
95
+ NodeFeatureGroupRules objects in the cluster and creates a NodeFeatureGroup
96
+ object for each NodeFeatureGroupRule. The NodeFeatureGroup object contains a
97
+ list of nodes that match the NodeFeatureGroupRule.
98
+
99
+ ` ` ` yaml
100
+ apiVersion : nfd.k8s-sigs.io/v1alpha1
101
+ kind : NodeFeatureGroup
102
+ metadata :
103
+ name : my-sample-group-resource
104
+ namespace : node-feature-discovery
105
+ spec :
106
+ FeatureGroup :
107
+ name : my-sample-group-resource
108
+ nodes :
109
+ - node-1
110
+ - node-2
111
+ - node-3
112
+ ` ` `
113
+
114
+ ## NodeFeatureGroupRule
115
+
116
+ > **NOTE:** This feature is experimental and may change in the future.
117
+
118
+ NodeFeatureGroupRule is an NFD-specific custom resource that is designed for
119
+ grouping Nodes by matching features rules. NFD-Master watches for
120
+ NodeFeatureGroupRules objects in the cluster and creates a NodeFeatureGroup
121
+ object for each NodeFeatureGroupRule.
122
+
123
+ NodeFeatureGroupRule is similar to NodeFeatureRule, but instead of labeling
124
+ nodes, it creates a NodeFeatureGroup object that contains a list of nodes that
125
+ match the NodeFeatureGroupRule.
126
+
127
+ ` ` ` yaml
128
+ apiVersion : nfd.k8s-sigs.io/v1alpha1
129
+ kind : NodeFeatureGroupRule
130
+ metadata :
131
+ name : my-sample-group-resource
132
+ spec :
133
+ featureGroupRules :
134
+ - name : dummy-rule
135
+ matchFeatures :
136
+ - feature : kernel.version
137
+ matchExpressions :
138
+ major : {op: Exists}
139
+ ` ` `
140
+
89
141
## NodeResourceTopology
90
142
91
143
When run with NFD-Topology-Updater, NFD creates NodeResourceTopology objects
0 commit comments