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 #757 from k8s-infra-cherrypick-robot/cherry-pick-726-to-release-0.9

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

View file

@ -59,10 +59,10 @@ is recommended to be done via
1. Install the operator: 1. Install the operator:
```bash ```bash
kubectl create -f https://operatorhub.io/install/nfd-operator.yaml kubectl create -f https://operatorhub.io/install/stable/nfd-operator.yaml
``` ```
1. Create NodeFeatureDiscovery resource (in `nfd` namespace here): 1. Create `NodeFeatureDiscovery` object (in `nfd` namespace here):
```bash ```bash
cat << EOF | kubectl apply -f - cat << EOF | kubectl apply -f -
@ -71,21 +71,26 @@ is recommended to be done via
metadata: metadata:
name: nfd name: nfd
--- ---
apiVersion: nfd.kubernetes.io/v1alpha1 apiVersion: nfd.kubernetes.io/v1
kind: NodeFeatureDiscovery kind: NodeFeatureDiscovery
metadata: metadata:
name: my-nfd-deployment name: my-nfd-deployment
namespace: nfd namespace: nfd
spec:
operand:
namespace: nfd
image: {{ site.container_image }}
imagePullPolicy: IfNotPresent
EOF EOF
``` ```
In order to deploy the [minimal](#minimal) image you need to add In order to deploy the [minimal](#minimal) image you need to use
```yaml ```yaml
image: {{ site.container_image }}-minimal image: {{ site.container_image }}-minimal
``` ```
to the metadata of NodeFeatureDiscovery object above. in the `NodeFeatureDiscovery` object above.
### Deployment with kustomize ### Deployment with kustomize