|
| 1 | +:_mod-docs-content-type: PROCEDURE |
| 2 | +[id="installing-pfsr-cli_{context}"] |
| 3 | += Installing the PF Status Relay Operator using the CLI |
| 4 | + |
| 5 | +Install the PF Status Relay Operator to enable {product-title} to use Link Aggregation Control Protocol (LACP) as an active health check on physical functions (PFs). |
| 6 | + |
| 7 | +.Prerequisites |
| 8 | + |
| 9 | +* You configured LACP on your upstream switch. |
| 10 | +
|
| 11 | +* You configured pod-level bonding for your SR-IOV networks. |
| 12 | +
|
| 13 | +* You installed the OpenShift CLI (`oc`). |
| 14 | +
|
| 15 | +* You have cluster-admin privileges. |
| 16 | +
|
| 17 | +.Procedure |
| 18 | + |
| 19 | +. Create the `openshift-pf-status-relay-operator` namespace by entering the following command: |
| 20 | ++ |
| 21 | +[source,bash] |
| 22 | +---- |
| 23 | +$ cat << EOF| oc create -f - |
| 24 | +apiVersion: v1 |
| 25 | +kind: Namespace |
| 26 | +metadata: |
| 27 | + name: openshift-pf-status-relay-operator |
| 28 | + annotations: |
| 29 | + workload.openshift.io/allowed: management |
| 30 | +EOF |
| 31 | +---- |
| 32 | + |
| 33 | +. Create an `OperatorGroup` custom resource (CR) by entering the following command: |
| 34 | ++ |
| 35 | +[source,bash] |
| 36 | +---- |
| 37 | +$ cat << EOF| oc create -f - |
| 38 | +apiVersion: operators.coreos.com/v1 |
| 39 | +kind: OperatorGroup |
| 40 | +metadata: |
| 41 | + name: pf-status-relay-operators |
| 42 | + namespace: openshift-pf-status-relay-operator |
| 43 | +spec: |
| 44 | + targetNamespaces: |
| 45 | + - openshift-pf-status-relay-operator |
| 46 | +EOF |
| 47 | +---- |
| 48 | + |
| 49 | +. Create a `Subscription` CR for the PF Status Relay Operator by entering the following command: |
| 50 | ++ |
| 51 | +[source,bash] |
| 52 | +---- |
| 53 | +$ cat << EOF| oc create -f - |
| 54 | +apiVersion: operators.coreos.com/v1alpha1 |
| 55 | +kind: Subscription |
| 56 | +metadata: |
| 57 | + name: pf-status-relay-operator-subscription |
| 58 | + namespace: openshift-pf-status-relay-operator |
| 59 | +spec: |
| 60 | + channel: stable |
| 61 | + name: pf-status-relay-operator |
| 62 | + source: redhat-operators |
| 63 | + sourceNamespace: openshift-marketplace |
| 64 | +EOF |
| 65 | +---- |
| 66 | + |
| 67 | + |
| 68 | +.Verification |
| 69 | + |
| 70 | +* To verify that the Operator is installed, enter the following command and then check that output shows `Succeeded` for the Operator: |
| 71 | ++ |
| 72 | +[source,bash] |
| 73 | +---- |
| 74 | +$ oc get csv -n openshift-pf-status-relay-operator -o custom-columns=Name:.metadata.name,Phase:.status.phase |
| 75 | +---- |
0 commit comments