This is a cache of https://docs.openshift.com/container-platform/4.1/networking/openshift_sdn/removing-egress-firewall.html. It is a snapshot of the page at 2024-11-21T02:20:24.044+0000.
Removing an <strong>egress</strong> firewall from a project - OpenShift SDN | Networking | OpenShift Container Platform 4.1
×

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 OpenShift Container Platform cluster.

Removing an egressNetworkPolicy object

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

Prerequisites
  • A cluster using the OpenShift SDN network plug-in.

  • Install the OpenShift Command-line Interface (CLI), commonly known as oc.

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

Procedure

To remove an egress network policy object for a project, complete the following steps:

  1. Find the name of the egressNetworkPolicy object for the project. Replace <project> with the name of the project.

    $ oc get -n <project> egressnetworkpolicy
  2. Enter the following command to delete the egressNetworkPolicy object. Replace <project> with the name of the project and <name> with the name of the object.

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