mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
46 lines
1.1 KiB
Plaintext
46 lines
1.1 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * networking/network_security/configuring-egress-firewall-ovn.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="nw-egress-firewall-view_{context}"]
|
|
= Viewing an EgressFirewall custom resource (CR)
|
|
|
|
You can view an `EgressFirewall` CR in your cluster.
|
|
|
|
.Prerequisites
|
|
|
|
* A cluster using the OVN-Kubernetes network plugin.
|
|
* Install the OpenShift Command-line Interface (CLI), commonly known as `oc`.
|
|
* You must log in to the cluster.
|
|
|
|
.Procedure
|
|
|
|
. Optional: To view the names of the `EgressFirewall` CR defined in your cluster,
|
|
enter the following command:
|
|
+
|
|
[source,terminal,subs="attributes"]
|
|
----
|
|
$ oc get egressfirewall --all-namespaces
|
|
----
|
|
|
|
. To inspect a policy, enter the following command. Replace `<policy_name>` with the name of the policy to inspect.
|
|
+
|
|
[source,terminal,subs="attributes+"]
|
|
----
|
|
$ oc describe egressfirewall <policy_name>
|
|
----
|
|
+
|
|
[source,terminal]
|
|
.Example output
|
|
----
|
|
Name: default
|
|
Namespace: project1
|
|
Created: 20 minutes ago
|
|
Labels: <none>
|
|
Annotations: <none>
|
|
Rule: Allow to 1.2.3.0/24
|
|
Rule: Allow to www.example.com
|
|
Rule: Deny to 0.0.0.0/0
|
|
----
|