mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
6171c745a4
Introduce two main sections "Deployment" and "Usage" and move "Developer guide" to the top level, too. In particular, split the huge deployment-and-usage file into multiple parts under the new main sections. Move customization guide from "Advanced" to "Usage". This patch also renames "Advanced" to "Reference" as only that is left there is reference documentation.
1.8 KiB
1.8 KiB
title | layout | sort |
---|---|---|
NFD Operator | default | 4 |
Deployment with NFD Operator
{: .no_toc}
Table of contents
{: .no_toc .text-delta}
- TOC {:toc}
Deployment
Deployment using the Node Feature Discovery Operator is recommended to be done via operatorhub.io.
-
You need to have OLM installed. If you don't, take a look at the latest release for detailed instructions.
-
Install the operator:
kubectl create -f https://operatorhub.io/install/nfd-operator.yaml
-
Create
NodeFeatureDiscovery
object (innfd
namespace here):cat << EOF | kubectl apply -f - apiVersion: v1 kind: Namespace metadata: name: nfd --- apiVersion: nfd.kubernetes.io/v1 kind: NodeFeatureDiscovery metadata: name: my-nfd-deployment namespace: nfd spec: operand: image: {{ site.container_image }} imagePullPolicy: IfNotPresent EOF
In order to deploy the minimal image you need to use
image: {{ site.container_image }}-minimal
in the NodeFeatureDiscovery
object above.
Uninstallation
If you followed the deployment instructions above you can simply do:
kubectl -n nfd delete NodeFeatureDiscovery my-nfd-deployment
Optionally, you can also remove the namespace:
kubectl delete ns nfd
See the node-feature-discovery-operator and OLM project documentation for instructions for uninstalling the operator and operator lifecycle manager, respectively.