2022-11-02 12:34:37 +00:00
|
|
|
---
|
|
|
|
title: "Uninstallation"
|
|
|
|
layout: default
|
|
|
|
sort: 6
|
|
|
|
---
|
|
|
|
|
|
|
|
# Uninstallation
|
|
|
|
{: .no_toc}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
Follow the uninstallation instructions of the deployment method used
|
2023-01-12 01:23:36 +00:00
|
|
|
([kustomize](kustomize.md#uninstallation),
|
|
|
|
[helm](helm.md#uninstalling-the-chart) or
|
|
|
|
[operator](operator.md#uninstallation)).
|
2022-11-02 12:34:37 +00:00
|
|
|
|
|
|
|
## Removing feature labels
|
|
|
|
|
2023-11-09 11:14:48 +00:00
|
|
|
> **NOTE:** This is unnecessary when using the Helm chart for deployment as it
|
|
|
|
> will clean up the nodes when NFD is uninstalled.
|
|
|
|
|
2022-11-02 12:34:37 +00:00
|
|
|
NFD-Master has a special `-prune` command line flag for removing all
|
2023-04-11 17:38:21 +00:00
|
|
|
nfd-related node labels, annotations, extended resources and taints from the
|
|
|
|
cluster.
|
2022-11-02 12:34:37 +00:00
|
|
|
|
|
|
|
```bash
|
|
|
|
kubectl apply -k https://github.com/kubernetes-sigs/node-feature-discovery/deployment/overlays/prune?ref={{ site.release }}
|
|
|
|
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={{ site.release }}
|
|
|
|
```
|
|
|
|
|
2023-08-03 10:38:07 +00:00
|
|
|
> **NOTE:** You must run prune before removing the RBAC rules (serviceaccount,
|
|
|
|
> clusterrole and clusterrolebinding).
|