Skip to content

Commit 100ea1b

Browse files
authored
Merge pull request #30507 from jboxman/bz-1929230
BZ#1929230 - Clarify network policy multitenant is not multitenant mode
2 parents e2767cc + c08552d commit 100ea1b

File tree

4 files changed

+44
-18
lines changed

4 files changed

+44
-18
lines changed

modules/nw-networkpolicy-multitenant-isolation.adoc

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
// * networking/configuring-networkpolicy.adoc
55
// * post_installation_configuration/network-configuration.adoc
66

7+
ifeval::[{product-version} >= 4.6]
8+
:ovn:
9+
endif::[]
10+
711
[id="nw-networkpolicy-multitenant-isolation_{context}"]
812
= Configuring multitenant isolation by using network policy
913

@@ -12,7 +16,14 @@ project namespaces.
1216

1317
.Prerequisites
1418

15-
* Your cluster is using a default CNI network provider that supports `NetworkPolicy` objects, such as the OpenShift SDN network provider with `mode: NetworkPolicy` set. This mode is the default for OpenShift SDN.
19+
* Your cluster is using a cluster network provider that supports `NetworkPolicy` objects, such as
20+
ifndef::ovn[]
21+
the OpenShift SDN network provider with `mode: NetworkPolicy` set.
22+
endif::ovn[]
23+
ifdef::ovn[]
24+
the OVN-Kubernetes network provider or the OpenShift SDN network provider with `mode: NetworkPolicy` set.
25+
endif::ovn[]
26+
This mode is the default for OpenShift SDN.
1627
* You installed the OpenShift CLI (`oc`).
1728
* You are logged in to the cluster with a user with `cluster-admin` privileges.
1829

@@ -134,3 +145,7 @@ spec:
134145
policyTypes:
135146
- Ingress
136147
----
148+
149+
ifdef::ovn[]
150+
:!ovn:
151+
endif::ovn[]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * networking/openshift_sdn/about-openshift-sdn.adoc
4+
5+
[id="nw-openshift-sdn-modes_{context}"]
6+
= OpenShift SDN network isolation modes
7+
8+
OpenShift SDN provides three SDN modes for configuring the pod network:
9+
10+
* _Network policy_ mode allows project administrators to configure their own
11+
isolation policies using `NetworkPolicy` objects. Network policy is the default mode in {product-title} {product-version}.
12+
13+
* _Multitenant_ mode provides project-level isolation for pods and services. Pods from different projects cannot send packets to or receive packets from pods and services of a different project. You can disable isolation for a project, allowing it to send network traffic to all pods and services in the entire cluster and receive network traffic from those pods and services.
14+
15+
* _Subnet_ mode provides a flat pod network where every pod can communicate with every other pod and service. The network policy mode provides the same functionality as subnet mode.
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
[id="multitenant-network-policy"]
2-
= Configuring multitenant mode with network policy
2+
= Configuring multitenant isolation with network policy
33
include::modules/common-attributes.adoc[]
44
:context: multitenant-network-policy
55

66
toc::[]
77

88
As a cluster administrator, you can configure your network policies to provide multitenant network isolation.
99

10+
[NOTE]
11+
====
12+
If you are using the OpenShift SDN cluster network provider, configuring network policies as described in this section provides network isolation similar to multitenant mode but with network policy mode set.
13+
====
14+
1015
include::modules/nw-networkpolicy-multitenant-isolation.adoc[leveloffset=+1]
1116

1217
[id="multitenant-network-policy-next-steps"]
1318
== Next steps
1419

1520
* xref:../../networking/network_policy/default-network-policy.adoc#default-network-policy[Defining a default network policy]
21+
22+
[id="multitenant-network-policy-additional-resources"]
23+
== Additional resources
24+
25+
* xref:../../networking/openshift_sdn/about-openshift-sdn.adoc#nw-openshift-sdn-modes_about-openshift-sdn[OpenShift SDN network isolation modes]

networking/openshift_sdn/about-openshift-sdn.adoc

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,16 @@ unified cluster network that enables communication between pods across the
1111
OpenShift SDN, which configures an overlay network using Open vSwitch (OVS).
1212

1313
ifdef::openshift-enterprise,openshift-webscale,openshift-origin[]
14-
OpenShift SDN provides three SDN modes for configuring the pod network:
15-
16-
* The _network policy_ mode allows project administrators to configure their own
17-
isolation policies using xref:../../networking/network_policy/about-network-policy.adoc#about-network-policy[NetworkPolicy objects].
18-
Network policy is the default mode in {product-title} {product-version}.
19-
20-
* The _multitenant_ mode provides project-level isolation for pods and services.
21-
pods from different projects cannot send packets to or receive packets from pods
22-
and services of a different project. You can disable isolation for a project,
23-
allowing it to send network traffic to all pods and services in the entire
24-
cluster and receive network traffic from those pods and services.
25-
26-
* The _subnet_ mode provides a flat pod network where every pod can
27-
communicate with every other pod and service. The network policy mode provides
28-
the same functionality as the subnet mode.
14+
include::modules/nw-openshift-sdn-modes.adoc[leveloffset=+1]
2915

3016
ifdef::openshift-origin[]
3117
[NOTE]
3218
====
3319
{product-title} uses the xref:../../networking/ovn_kubernetes_network_provider/about-ovn-kubernetes.adoc#about-ovn-kubernetes[OVN-Kubernetes Container Network Interface (CNI) plug-in] by default.
3420
====
3521
endif::openshift-origin[]
36-
3722
endif::[]
23+
3824
ifdef::openshift-dedicated[]
3925
OpenShift SDN supports only the _network policy_ mode, which allows project
4026
administrators to configure their own isolation policies by using

0 commit comments

Comments
 (0)