mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
36 lines
980 B
Plaintext
36 lines
980 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * networking/openshift_sdn/removing-egress-firewall.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="nw-egressnetworkpolicy-delete_{context}"]
|
|
= 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
|
|
|
|
. Find the name of the `EgressNetworkPolicy` CR for the project.
|
|
+
|
|
[source,terminal,subs="attributes+"]
|
|
----
|
|
$ oc get -n <project> egressnetworkpolicy
|
|
----
|
|
+
|
|
Replace `<project>` with the name of the project.
|
|
|
|
. Enter the following command to delete the `EgressNetworkPolicy` CR.
|
|
+
|
|
[source,terminal,subs="attributes+"]
|
|
----
|
|
$ oc delete -n <project> egressnetworkpolicy <name>
|
|
----
|
|
+
|
|
Replace `<project>` with the name of the project and `<name>` with the name of the object.
|