1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00
node-feature-discovery/docs/deployment/operator.md
Markus Lehtonen 7ebf5c02c7 docs: remove outdated instructions for minimal image
The "minimal" image variant has been the default since v0.13.
2023-12-01 16:30:55 +02:00

1.9 KiB

title layout sort
NFD Operator default 4

Deployment with NFD Operator

{: .no_toc}

Table of contents

{: .no_toc .text-delta}

  1. TOC {:toc}

The Node Feature Discovery Operator automates installation, configuration and updates of NFD using a specific NodeFeatureDiscovery custom resource. This also provides good support for managing NFD as a dependency of other operators.

Deployment

Deployment using the Node Feature Discovery Operator is recommended to be done via operatorhub.io.

  1. You need to have OLM installed. If you don't, take a look at the latest release for detailed instructions.

  2. Install the operator:

    kubectl create -f https://operatorhub.io/install/nfd-operator.yaml
    
  3. Create NodeFeatureDiscovery object (in nfd 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
    

Uninstallation

If you followed the deployment instructions above you can uninstall NFD with:

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.