×

As a cluster administrator, you can remove an egress firewall from a project to remove all restrictions on network traffic from the project that leaves the OKD cluster.

Removing an EgressNetworkPolicy custom resource (CR)

As a cluster administrator, you can remove an egress firewall from a project.

Prerequisites
  • A cluster using the OpenShift SDN network plugin.

  • Install the OpenShift CLI (oc).

  • You must log in to the cluster as a cluster administrator.

Procedure
  1. Find the name of the EgressNetworkPolicy CR for the project.

    $ oc get -n <project> egressnetworkpolicy

    Replace <project> with the name of the project.

  2. Enter the following command to delete the EgressNetworkPolicy CR.

    $ oc delete -n <project> egressnetworkpolicy <name>

    Replace <project> with the name of the project and <name> with the name of the object.