generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
- Loading branch information
1 parent
2bdb963
commit 5d6adf9
Showing
3 changed files
with
70 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
title: "Uninstallation" | ||
layout: default | ||
sort: 4 | ||
--- | ||
|
||
# Uninstallation | ||
|
||
{: .no_toc} | ||
|
||
## Table of contents | ||
|
||
{: .no_toc .text-delta} | ||
|
||
1. TOC | ||
{:toc} | ||
|
||
--- | ||
|
||
## Uninstallation | ||
|
||
If you followed the deployment instructions from the [Quick start](index) you | ||
can simply do: | ||
|
||
```bash | ||
kubectl -n nfd-operator delete NodeFeatureDiscovery my-nfd-deployment | ||
``` | ||
|
||
Optionally, you can also remove the namespace: | ||
|
||
```bash | ||
kubectl delete ns nfd-operator | ||
``` | ||
|
||
See the [node-feature-discovery-operator][nfd-operator] and [OLM][OLM] project | ||
documentation for instructions for uninstalling the operator and operator | ||
lifecycle manager, respectively. | ||
|
||
## Removing feature labels | ||
|
||
From the [Operand repository][nfd] NFD-Master has a special `-prune` command | ||
line flag for removing all nfd-related node labels, annotations and extended | ||
resources from the cluster. | ||
|
||
```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 }} | ||
``` | ||
|
||
**NOTE:** You must run prune before removing the RBAC rules (serviceaccount, | ||
clusterrole and clusterrolebinding). | ||
|
||
<!-- Links --> | ||
[nfd-operator]: https://github.com/kubernetes-sigs/node-feature-discovery-operator | ||
[nfd]: https://github.com/kubernetes-sigs/node-feature-discovery | ||
[OLM]: https://github.com/operator-framework/operator-lifecycle-manager |