mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
Merge pull request #758 from k8s-infra-cherrypick-robot/cherry-pick-726-to-release-0.8
[release-0.8] docs: fix operator deployment instructions
This commit is contained in:
commit
916a9793ab
1 changed files with 25 additions and 20 deletions
|
@ -58,34 +58,39 @@ is recommended to be done via
|
|||
for detailed instructions.
|
||||
1. Install the operator:
|
||||
|
||||
```bash
|
||||
kubectl create -f https://operatorhub.io/install/nfd-operator.yaml
|
||||
```
|
||||
```bash
|
||||
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
|
||||
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
|
||||
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
|
||||
```
|
||||
|
||||
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
|
||||
image: {{ site.container_image }}-minimal
|
||||
```
|
||||
|
||||
to the metadata of NodeFeatureDiscovery object above.
|
||||
in the `NodeFeatureDiscovery` object above.
|
||||
|
||||
### Deployment templates
|
||||
|
||||
|
|
Loading…
Reference in a new issue