Follow the uninstallation instructions of the deployment method used (kustomize, helm or operator).
NFD-Master has a special -prune
command line flag for removing all nfd-related node labels, annotations and extended resources from the cluster.
kubectl apply -k https://github.com/kubernetes-sigs/node-feature-discovery/deployment/overlays/prune?ref=v0.12.5
kubectl -n node-feature-discovery wait job.batch/nfd-master --for=condition=complete && \
kubectl delete -k https://github.com/kubernetes-sigs/node-feature-discovery/deployment/overlays/prune?ref=v0.12.5
NOTE: You must run prune before removing the RBAC rules (serviceaccount, clusterrole and clusterrolebinding).