|
3 | 3 | // * logging/cluster-logging-deploying.adoc
|
4 | 4 |
|
5 | 5 | [id="cluster-logging-deploy-multitenant_{context}"]
|
6 |
| -= Installing OpenShift Logging into a multitenant network |
| 6 | += Allowing traffic between projects when network isolation is enabled |
7 | 7 |
|
8 |
| -If you are deploying OpenShift Logging into a cluster that uses multitenant isolation mode, projects are isolated from other projects. As a result, network traffic is not allowed between pods or services in different projects. |
| 8 | +Your cluster network provider might enforce network isolation. If so, you must allow network traffic between the projects that contain the operators deployed by OpenShift Logging. |
9 | 9 |
|
10 |
| -Because the OpenShift Elasticsearch Operator and the Red Hat OpenShift Logging Operator are installed in different projects, you must explicitly allow access between the `openshift-operators-redhat` and `openshift-logging` projects. How you allow this access depends on how you configured multitenant isolation mode. |
| 10 | +Network isolation blocks network traffic between pods or services that are in different projects. OpenShift Logging installs the _OpenShift Elasticsearch Operator_ in the `openshift-operators-redhat` project and the _Red Hat OpenShift Logging Operator_ in the `openshift-logging` project. Therefore, you must allow traffic between these two projects. |
11 | 11 |
|
12 |
| -.Procedure |
| 12 | +{product-title} offers two supported choices for the default Container Network Interface (CNI) network provider, OpenShift SDN and OVN-Kubernetes. These two providers implement various network isolation policies. |
13 | 13 |
|
14 |
| -To allow traffic between the OpenShift Elasticsearch Operator and the Red Hat OpenShift Logging Operator, perform one of the following: |
| 14 | +OpenShift SDN has three modes: |
15 | 15 |
|
16 |
| -* If you configured multitenant isolation mode with the OpenShift SDN CNI plug-in set to the *Multitenant* mode, use the following command to join the two projects: |
17 |
| -+ |
18 |
| -For example: |
| 16 | +network policy:: This is the default mode. If no policy is defined, it allows all traffic. However, if a user defines a policy, they typically start by denying all traffic and then adding exceptions. This process might break applications that are running in different projects. Therefore, explicitly configure the policy to allow traffic to egress from one logging-related project to the other. |
| 17 | + |
| 18 | +multitenant:: This mode enforces network isolation. You must join the two logging-related projects to allow traffic between them. |
| 19 | + |
| 20 | +subnet:: This mode allows all traffic. It does not enforce network isolation. No action is needed. |
| 21 | + |
| 22 | +OVN-Kubernetes always uses a *network policy*. Therefore, as with OpenShift SDN, you must configure the policy to allow traffic to egress from one logging-related project to the other. |
| 23 | + |
| 24 | +.Procedure |
| 25 | + |
| 26 | +* If you are using OpenShift SDN in *multitenant* mode, join the two projects. For example: |
19 | 27 | +
|
20 | 28 | [source,terminal]
|
21 | 29 | ----
|
22 | 30 | $ oc adm pod-network join-projects --to=openshift-operators-redhat openshift-logging
|
23 | 31 | ----
|
24 | 32 |
|
25 |
| -* If you configured multitenant isolation mode with the OpenShift SDN CNI plug-in set to the *NetworkPolicy* mode, create a network policy object in the `openshift-logging` namespace that allows ingress from the `openshift-operators-redhat` project to the `openshift-logging` project. |
| 33 | +* Otherwise, for OpenShift SDN in *network policy* mode and OVN-Kubernetes, perform the following actions: |
| 34 | + |
| 35 | +.. Set a label on the `openshift-operators-redhat` namespace. For example: |
26 | 36 | +
|
27 |
| -For example: |
| 37 | +[source,terminal] |
| 38 | +---- |
| 39 | +$ oc label namespace openshift-operators-redhat project=openshift-operators-redhat |
| 40 | +---- |
| 41 | + |
| 42 | +.. Create a network policy object in the `openshift-logging` namespace that allows ingress from the `openshift-operators-redhat` project to the `openshift-logging` project. For example: |
28 | 43 | +
|
29 | 44 | [source,yaml]
|
30 | 45 | ----
|
|
39 | 54 | matchLabels:
|
40 | 55 | project: openshift-operators-redhat
|
41 | 56 | ----
|
42 |
| - |
|
0 commit comments