|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * networking/hardware_networks/uninstalling-sriov-operator.adoc |
| 4 | + |
| 5 | +:_content-type: PROCEDURE |
| 6 | +[id="nw-sriov-operator-uninstall_{context}"] |
| 7 | += Uninstalling the SR-IOV Network Operator |
| 8 | + |
| 9 | +As a cluster administrator, you can uninstall the SR-IOV Network Operator. |
| 10 | + |
| 11 | +.Prerequisites |
| 12 | + |
| 13 | +* You have access to an {product-title} cluster using an account with `cluster-admin` permissions. |
| 14 | +* You have the SR-IOV Network Operator installed. |
| 15 | +
|
| 16 | +.Procedure |
| 17 | + |
| 18 | +. Delete all SR-IOV custom resources (CRs): |
| 19 | ++ |
| 20 | +[source,terminal] |
| 21 | +---- |
| 22 | +$ oc delete sriovnetwork -n openshift-sriov-network-operator --all |
| 23 | +---- |
| 24 | ++ |
| 25 | +[source,terminal] |
| 26 | +---- |
| 27 | +$ oc delete sriovnetworknodepolicy -n openshift-sriov-network-operator --all |
| 28 | +---- |
| 29 | ++ |
| 30 | +[source,terminal] |
| 31 | +---- |
| 32 | +$ oc delete sriovibnetwork -n openshift-sriov-network-operator --all |
| 33 | +---- |
| 34 | + |
| 35 | +. Follow the instructions in the "Deleting Operators from a cluster" section to remove the SR-IOV Network Operator from your cluster. |
| 36 | + |
| 37 | +. Delete the SR-IOV custom resource definitions that remain in the cluster after the SR-IOV Network Operator is uninstalled: |
| 38 | ++ |
| 39 | +[source,terminal] |
| 40 | +---- |
| 41 | +$ oc delete crd sriovibnetworks.sriovnetwork.openshift.io |
| 42 | +---- |
| 43 | ++ |
| 44 | +[source,terminal] |
| 45 | +---- |
| 46 | +$ oc delete crd sriovnetworknodepolicies.sriovnetwork.openshift.io |
| 47 | +---- |
| 48 | ++ |
| 49 | +[source,terminal] |
| 50 | +---- |
| 51 | +$ oc delete crd sriovnetworknodestates.sriovnetwork.openshift.io |
| 52 | +---- |
| 53 | ++ |
| 54 | +[source,terminal] |
| 55 | +---- |
| 56 | +$ oc delete crd sriovnetworkpoolconfigs.sriovnetwork.openshift.io |
| 57 | +---- |
| 58 | ++ |
| 59 | +[source,terminal] |
| 60 | +---- |
| 61 | +$ oc delete crd sriovnetworks.sriovnetwork.openshift.io |
| 62 | +---- |
| 63 | ++ |
| 64 | +[source,terminal] |
| 65 | +---- |
| 66 | +$ oc delete crd sriovoperatorconfigs.sriovnetwork.openshift.io |
| 67 | +---- |
| 68 | + |
| 69 | +. Delete the SR-IOV webhooks: |
| 70 | ++ |
| 71 | +[source,terminal] |
| 72 | +---- |
| 73 | +$ oc delete mutatingwebhookconfigurations network-resources-injector-config |
| 74 | +---- |
| 75 | ++ |
| 76 | +[source,terminal] |
| 77 | +---- |
| 78 | +$ oc delete MutatingWebhookConfiguration sriov-operator-webhook-config |
| 79 | +---- |
| 80 | ++ |
| 81 | +[source,terminal] |
| 82 | +---- |
| 83 | +$ oc delete ValidatingWebhookConfiguration sriov-operator-webhook-config |
| 84 | +---- |
| 85 | + |
| 86 | +. Delete the SR-IOV Network Operator namespace: |
| 87 | ++ |
| 88 | +[source,terminal] |
| 89 | +---- |
| 90 | +$ oc delete namespace openshift-sriov-network-operator |
| 91 | +---- |
| 92 | + |
0 commit comments