mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-05 16:27:05 +00:00
This patch adds sample NodeFeatureRules that correspond the built-in labels created by nfd-worker (with its default configuration). The samples provide examples on how to utilize NodeFeatureRules and an easy way to modify the labels being generated. In order to replace the built-in node labeling of nfd-worker with these sample rules, all node labeling from nfd-worker must be disabled by setting the "core.labelSources" configuration option to an empty list (or specify "-label-sources= " on the command line). Then, with all nfd-worker side labeling disabled, just apply the rules with kubectl apply -f samples/ |
||
---|---|---|
.. | ||
nodefeaturerule-cpu.yaml | ||
nodefeaturerule-custom.yaml | ||
nodefeaturerule-kernel.yaml | ||
nodefeaturerule-local.yaml | ||
nodefeaturerule-memory.yaml | ||
nodefeaturerule-network.yaml | ||
nodefeaturerule-pci.yaml | ||
nodefeaturerule-storage.yaml | ||
nodefeaturerule-system.yaml | ||
nodefeaturerule-usb.yaml |