mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
Sync egress firewall filename IDs
This commit is contained in:
@@ -647,13 +647,13 @@ Topics:
|
||||
- Name: Rollback to the OpenShift SDN default CNI network provider
|
||||
File: rollback-to-openshift-sdn
|
||||
- Name: Configuring an egress firewall for a project
|
||||
File: configuring-egress-firewall
|
||||
File: configuring-egress-firewall-ovn
|
||||
- Name: Viewing an egress firewall for a project
|
||||
File: viewing-egress-firewall
|
||||
File: viewing-egress-firewall-ovn
|
||||
- Name: Editing an egress firewall for a project
|
||||
File: editing-egress-firewall
|
||||
File: editing-egress-firewall-ovn
|
||||
- Name: Removing an egress firewall from a project
|
||||
File: removing-egress-firewall
|
||||
File: removing-egress-firewall-ovn
|
||||
- Name: Enabling multicast for a project
|
||||
File: enabling-multicast
|
||||
Distros: openshift-origin,openshift-enterprise,openshift-webscale
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// Module included in the following assemblies:
|
||||
//
|
||||
// * networking/openshift_sdn/configuring-egress-firewall.adoc
|
||||
// * networking/ovn_kubernetes_network_provider/configuring-egress-firewall.adoc
|
||||
// * networking/ovn_kubernetes_network_provider/configuring-egress-firewall-ovn.adoc
|
||||
|
||||
ifeval::["{context}" == "ovn-configuring-egress-firewall"]
|
||||
ifeval::["{context}" == "configuring-egress-firewall-ovn"]
|
||||
:ovn:
|
||||
:kind: EgressFirewall
|
||||
endif::[]
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
// Module included in the following assemblies:
|
||||
//
|
||||
// * networking/openshift_sdn/configuring-egress-firewall.adoc
|
||||
// * networking/ovn_kubernetes_network_provider/configuring-egress-firewall.adoc
|
||||
// * networking/ovn_kubernetes_network_provider/configuring-egress-firewall-ovn.adoc
|
||||
|
||||
ifeval::["{context}" == "openshift-sdn-egress-firewall"]
|
||||
:kind: EgressNetworkPolicy
|
||||
:obj: egressnetworkpolicy.network.openshift.io/v1
|
||||
:cni: OpenShift SDN
|
||||
endif::[]
|
||||
ifeval::["{context}" == "ovn-configuring-egress-firewall"]
|
||||
ifeval::["{context}" == "configuring-egress-firewall-ovn"]
|
||||
:kind: EgressFirewall
|
||||
:obj: egressfirewall.k8s.ovn.org/v1
|
||||
:cni: OVN-Kubernetes
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
// Module included in the following assemblies:
|
||||
//
|
||||
// * networking/openshift-sdn/removing-egress-firewall.adoc
|
||||
// * networking/ovn_kubernetes_network_provider/removing-egress-firewall.adoc
|
||||
// * networking/ovn_kubernetes_network_provider/removing-egress-firewall-ovn.adoc
|
||||
|
||||
ifeval::["{context}" == "openshift-sdn-egress-firewall"]
|
||||
:kind: EgressNetworkPolicy
|
||||
:res: egressnetworkpolicy
|
||||
:cni: OpenShift SDN
|
||||
endif::[]
|
||||
ifeval::["{context}" == "ovn-removing-egress-firewall"]
|
||||
ifeval::["{context}" == "removing-egress-firewall-ovn"]
|
||||
:kind: EgressFirewall
|
||||
:res: egressfirewall
|
||||
:cni: OVN-Kubernetes
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
// Module included in the following assemblies:
|
||||
//
|
||||
// * networking/openshift_sdn/editing-egress-firewall.adoc
|
||||
// * networking/ovn_kubernetes_network_provider/editing-egress-firewall.adoc
|
||||
// * networking/ovn_kubernetes_network_provider/editing-egress-firewall-ovn.adoc
|
||||
|
||||
ifeval::["{context}" == "openshift-sdn-egress-firewall"]
|
||||
:kind: EgressNetworkPolicy
|
||||
:res: egressnetworkpolicy
|
||||
:cni: OpenShift SDN
|
||||
endif::[]
|
||||
ifeval::["{context}" == "ovn-editing-egress-firewall"]
|
||||
ifeval::["{context}" == "editing-egress-firewall-ovn"]
|
||||
:kind: EgressFirewall
|
||||
:res: egressfirewall
|
||||
:cni: OVN-Kubernetes
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
// Module included in the following assemblies:
|
||||
//
|
||||
// * networking/openshift_sdn/configuring-egress-firewall.adoc
|
||||
// * networking/ovn_kubernetes_network_provider/configuring-egress-firewall.adoc
|
||||
// * networking/ovn_kubernetes_network_provider/configuring-egress-firewall-ovn.adoc
|
||||
|
||||
ifeval::["{context}" == "openshift-sdn-egress-firewall"]
|
||||
:kind: EgressNetworkPolicy
|
||||
:api: network.openshift.io/v1
|
||||
:openshift-sdn:
|
||||
endif::[]
|
||||
ifeval::["{context}" == "ovn-configuring-egress-firewall"]
|
||||
ifeval::["{context}" == "configuring-egress-firewall-ovn"]
|
||||
:kind: EgressFirewall
|
||||
:api: k8s.ovn.org/v1
|
||||
:ovn:
|
||||
|
||||
@@ -1,33 +1,66 @@
|
||||
// Module included in the following assemblies:
|
||||
//
|
||||
// networking/openshift-sdn/configuring-egressnetworkpolicy.adoc
|
||||
// * networking/openshift_sdn/configuring-egress-firewall.adoc
|
||||
// * networking/ovn_kubernetes_network_provider/configuring-egress-firewall-ovn.adoc
|
||||
|
||||
ifeval::["{context}" == "openshift-sdn-viewing-egress-firewall"]
|
||||
:kind: EgressNetworkPolicy
|
||||
:res: egressnetworkpolicy
|
||||
:cni: OpenShift SDN
|
||||
endif::[]
|
||||
ifeval::["{context}" == "viewing-egress-firewall-ovn"]
|
||||
:kind: EgressFirewall
|
||||
:res: egressfirewall
|
||||
:cni: OVN-Kubernetes
|
||||
endif::[]
|
||||
|
||||
[id="nw-egressnetworkpolicy-view_{context}"]
|
||||
= Viewing an {kind} object
|
||||
|
||||
= Viewing NetworkPolicy objects
|
||||
|
||||
You can list the EgressNetworkPolicy objects in your cluster.
|
||||
You can view an {kind} object in your cluster.
|
||||
|
||||
.Prerequisites
|
||||
|
||||
* A cluster using the OpenShift SDN network plug-in.
|
||||
* Install the OpenShift CLI (`oc`).
|
||||
* A cluster using the {cni} default Container Network Interface (CNI) network provider plug-in.
|
||||
* Install the OpenShift Command-line Interface (CLI), commonly known as `oc`.
|
||||
* You must log in to the cluster.
|
||||
|
||||
.Procedure
|
||||
|
||||
* To view the names of the EgressNetworkPolicy objects defined in your cluster,
|
||||
. Optional: To view the names of the {kind} objects defined in your cluster,
|
||||
enter the following command:
|
||||
+
|
||||
[source,terminal,subs="attributes"]
|
||||
----
|
||||
$ oc get egressnetworkpolicy -o go-template='{{range .items}}{{.metadata.name}}{{end}}'
|
||||
$ oc get {res} --all-namespaces
|
||||
----
|
||||
|
||||
* Optional: You can inspect a specific policy object by entering the following
|
||||
command:
|
||||
. To inspect a policy, enter the following command. Replace `<policy_name>` with the name of the policy to inspect.
|
||||
+
|
||||
[source,terminal,subs="attributes+"]
|
||||
----
|
||||
$ oc get egressnetworkpolicy <policy-name> -o yaml
|
||||
$ oc describe {res} <policy_name>
|
||||
----
|
||||
+
|
||||
Replace `<policy-name>` with the name of the policy to inspect.
|
||||
[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
|
||||
----
|
||||
|
||||
ifdef::kind[]
|
||||
:!kind:
|
||||
endif::[]
|
||||
ifdef::res[]
|
||||
:!res:
|
||||
endif::[]
|
||||
ifdef::cni[]
|
||||
:!cni:
|
||||
endif::[]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[id="ovn-configuring-egress-firewall"]
|
||||
[id="configuring-egress-firewall-ovn"]
|
||||
= Configuring an egress firewall for a project
|
||||
include::modules/common-attributes.adoc[]
|
||||
:context: ovn-configuring-egress-firewall
|
||||
:context: configuring-egress-firewall-ovn
|
||||
|
||||
toc::[]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[id="ovn-editing-egress-firewall"]
|
||||
[id="editing-egress-firewall-ovn"]
|
||||
= Editing an egress firewall for a project
|
||||
include::modules/common-attributes.adoc[]
|
||||
:context: ovn-editing-egress-firewall
|
||||
:context: editing-egress-firewall-ovn
|
||||
|
||||
toc::[]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[id="ovn-removing-egress-firewall"]
|
||||
[id="removing-egress-firewall-ovn"]
|
||||
= Removing an egress firewall from a project
|
||||
include::modules/common-attributes.adoc[]
|
||||
:context: ovn-removing-egress-firewall
|
||||
:context: removing-egress-firewall-ovn
|
||||
|
||||
toc::[]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[id="ovn-viewing-egress-firewall"]
|
||||
[id="viewing-egress-firewall-ovn"]
|
||||
= Viewing an egress firewall for a project
|
||||
include::modules/common-attributes.adoc[]
|
||||
:context: ovn-viewing-egress-firewall
|
||||
:context: viewing-egress-firewall-ovn
|
||||
|
||||
toc::[]
|
||||
|
||||
Reference in New Issue
Block a user