1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00

Merge pull request #761 from marquiz/backports/0.7

[release-0.7] docs: fix operator deployment instructions
This commit is contained in:
Kubernetes Prow Robot 2022-01-25 10:10:32 -08:00 committed by GitHub
commit 499a9ebf33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,24 +36,32 @@ is recommended to be done via
[latest release](https://github.com/operator-framework/operator-lifecycle-manager/releases/latest)
for detailed instructions.
1. Install the operator:
```bash
kubectl create -f https://operatorhub.io/install/nfd-operator.yaml
```
1. Create NodeFeatureDiscovery resource (in `nfd` namespace here):
```bash
cat << EOF | kubectl apply -f -
apiVersion: v1
kind: Namespace
metadata:
name: nfd
---
apiVersion: nfd.kubernetes.io/v1alpha1
kind: NodeFeatureDiscovery
metadata:
name: my-nfd-deployment
namespace: nfd
EOF
```
```bash
kubectl create -f https://operatorhub.io/install/nfd-operator.yaml
```
1. Create `NodeFeatureDiscovery` object (in `nfd` namespace here):
```bash
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:
namespace: nfd
image: {{ site.container_image }}
imagePullPolicy: IfNotPresent
EOF
```
### Deployment templates