@@ -26,7 +26,7 @@ After reviewing the possible make targets it's quick and easy to get bpfman depl
26
26
via a [ KIND cluster] ( https://kind.sigs.k8s.io/ ) with:
27
27
28
28
``` bash
29
- cd bpfman/bpfman -operator
29
+ cd bpfman-operator
30
30
make run-on-kind
31
31
```
32
32
@@ -40,67 +40,12 @@ make run-on-kind
40
40
41
41
### Deploy To Openshift Cluster
42
42
43
- First deploy the operator with one of the following two options:
44
-
45
- #### 1. Manually with Kustomize
46
-
47
- To install manually with Kustomize and raw manifests simply run the following
48
- commands.
49
- The Openshift cluster needs to be up and running and specified in ` ~/.kube/config `
50
- file.
51
-
52
- ``` bash
53
- cd bpfman/bpfman-operator
54
- make deploy-openshift
55
- ```
56
-
57
- Which can then be cleaned up at a later time with:
58
-
59
- ``` bash
60
- make undeploy-openshift
61
- ```
62
-
63
- #### 2. Via the OLM bundle
64
-
65
- The other option for installing the bpfman-operator is to install it using
66
- [ OLM bundle] ( https://www.redhat.com/en/blog/deploying-operators-olm-bundles ) .
67
-
68
- First setup the namespace and certificates for the operator with:
69
-
70
- ``` bash
71
- cd bpfman/bpfman-operator
72
- oc apply -f ./hack/ocp-scc-hacks.yaml
73
- ```
74
-
75
- Then use ` operator-sdk ` to install the bundle like so:
76
-
77
- ``` bash
78
- operator-sdk run bundle quay.io/bpfman/bpfman-operator-bundle:latest --namespace openshift-bpfman
79
- ```
80
-
81
- Which can then be cleaned up at a later time with:
82
-
83
- ``` bash
84
- operator-sdk cleanup bpfman-operator
85
- ```
86
-
87
- followed by
88
-
89
- ``` bash
90
- oc delete -f ./hack/ocp-scc-hacks.yaml
91
- ```
92
-
93
- ## Verify the Installation
94
-
95
- Independent of the method used to deploy, if the bpfman-operator came up successfully
96
- you will see the bpfman-daemon and bpfman-operator pods running without errors:
97
-
98
- ``` bash
99
- $ kubectl get pods -n bpfman
100
- NAME READY STATUS RESTARTS AGE
101
- bpfman-daemon-w24pr 3/3 Running 0 130m
102
- bpfman-operator-78cf9c44c6-rv7f2 2/2 Running 0 132m
103
- ```
43
+ The recommend way of deploying bpfman to an OpenShift cluster is via the
44
+ OpenShift Console and using Operator Hub.
45
+ This is described in
46
+ [ OperatorHub via OpenShift Console] ( ../developer-guide/develop-operator.md#operatorhub-via-openshift-console ) .
47
+ For other options, see
48
+ [ Deploy To Existing Cluster] ( ../developer-guide/develop-operator.md#deploy-to-existing-cluster ) .
104
49
105
50
## API Types Overview
106
51
@@ -162,7 +107,7 @@ Any of the cluster scoped samples can be applied as is.
162
107
To test the deployment simply deploy one of the sample ` xdpPrograms ` :
163
108
164
109
``` bash
165
- cd bpfman/bpfman -operator/
110
+ cd bpfman-operator/
166
111
kubectl apply -f config/samples/bpfman.io_v1alpha1_xdp_pass_xdpprogram.yaml
167
112
```
168
113
0 commit comments