You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= Creating a {name} policy allowing traffic to an application from all namespaces
18
17
19
-
20
18
[NOTE]
21
19
====
22
20
If you log in with a user with the `cluster-admin` role, then you can create a network policy in any namespace in the cluster.
@@ -26,14 +24,7 @@ Follow this procedure to configure a policy that allows traffic from all pods in
26
24
27
25
.Prerequisites
28
26
29
-
* Your cluster uses a network plugin that supports `NetworkPolicy` objects, such as
30
-
ifndef::ovn[]
31
-
the OpenShift SDN network provider with `mode: NetworkPolicy` set.
32
-
endif::ovn[]
33
-
ifdef::ovn[]
34
-
the OVN-Kubernetes network provider or the OpenShift SDN network provider with `mode: NetworkPolicy` set.
35
-
endif::ovn[]
36
-
This mode is the default for OpenShift SDN.
27
+
* Your cluster uses a network plugin that supports `NetworkPolicy` objects, such as the OVN-Kubernetes network plugin or the OpenShift SDN network plugin with `mode: NetworkPolicy` set. This mode is the default for OpenShift SDN.
37
28
* You installed the OpenShift CLI (`oc`).
38
29
* You are logged in to the cluster with a user with `{role}` privileges.
39
30
* You are working in the namespace that the {name} policy applies to.
@@ -145,4 +136,10 @@ Commercial support is available at
@@ -28,14 +27,7 @@ Follow this procedure to configure a policy that allows traffic to a pod with th
28
27
29
28
.Prerequisites
30
29
31
-
* Your cluster uses a network plugin that supports `NetworkPolicy` objects, such as
32
-
ifndef::ovn[]
33
-
the OpenShift SDN network provider with `mode: NetworkPolicy` set.
34
-
endif::ovn[]
35
-
ifdef::ovn[]
36
-
the OVN-Kubernetes network provider or the OpenShift SDN network provider with `mode: NetworkPolicy` set.
37
-
endif::ovn[]
38
-
This mode is the default for OpenShift SDN.
30
+
* Your cluster uses a network plugin that supports `NetworkPolicy` objects, such as the OVN-Kubernetes network plugin or the OpenShift SDN network plugin with `mode: NetworkPolicy` set. This mode is the default for OpenShift SDN.
39
31
* You installed the OpenShift CLI (`oc`).
40
32
* You are logged in to the cluster with a user with `{role}` privileges.
41
33
* You are working in the namespace that the {name} policy applies to.
@@ -195,4 +187,8 @@ Commercial support is available at
@@ -27,14 +26,7 @@ Follow this procedure to configure a policy that allows external service from th
27
26
28
27
.Prerequisites
29
28
30
-
* Your cluster uses a network plugin that supports `NetworkPolicy` objects, such as
31
-
ifndef::ovn[]
32
-
the OpenShift SDN network provider with `mode: NetworkPolicy` set.
33
-
endif::ovn[]
34
-
ifdef::ovn[]
35
-
the OVN-Kubernetes network provider or the OpenShift SDN network provider with `mode: NetworkPolicy` set.
36
-
endif::ovn[]
37
-
This mode is the default for OpenShift SDN.
29
+
* Your cluster uses a network plugin that supports `NetworkPolicy` objects, such as the OVN-Kubernetes network plugin or the OpenShift SDN network plugin with `mode: NetworkPolicy` set. This mode is the default for OpenShift SDN.
38
30
* You installed the OpenShift CLI (`oc`).
39
31
* You are logged in to the cluster with a user with `{role}` privileges.
40
32
* You are working in the namespace that the {name} policy applies to.
@@ -91,4 +83,10 @@ endif::multi[]
91
83
92
84
This policy allows traffic from all resources, including external traffic as illustrated in the following diagram:
93
85
94
-
image::292_OpenShift_Configuring_multi-network_policy_1122.png[Allow traffic from external clients]
86
+
image::292_OpenShift_Configuring_multi-network_policy_1122.png[Allow traffic from external clients]
* Your cluster uses a network plugin that supports `NetworkPolicy` objects, such as
34
-
ifndef::ovn[]
35
-
the OpenShift SDN network provider with `mode: NetworkPolicy` set.
36
-
endif::ovn[]
37
-
ifdef::ovn[]
38
-
the OVN-Kubernetes network provider or the OpenShift SDN network provider with `mode: NetworkPolicy` set.
39
-
endif::ovn[]
40
-
This mode is the default for OpenShift SDN.
30
+
* Your cluster uses a network plugin that supports `NetworkPolicy` objects, such as the OVN-Kubernetes network plugin or the OpenShift SDN network plugin with `mode: NetworkPolicy` set. This mode is the default for OpenShift SDN.
41
31
* You installed the OpenShift CLI (`oc`).
42
32
* You are logged in to the cluster with a user with `{role}` privileges.
43
33
* You are working in the namespace that the {name} policy applies to.
@@ -239,9 +229,6 @@ multinetworkpolicy.k8s.cni.cncf.io/deny-by-default created
0 commit comments