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:
commit
499a9ebf33
1 changed files with 26 additions and 18 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue