mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-06 06:46:26 +01:00
59 lines
2.2 KiB
Plaintext
59 lines
2.2 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * service_mesh/service_mesh_install/installing-mt-ossm.adoc
|
|
|
|
[id="ossm-mt-namespaces_{context}"]
|
|
= Configuring namespaces in multi-tenant installations
|
|
|
|
A multi-tenant control plane installation only affects namespaces configured as part of the {ProductShortName}. You must specify the namespaces associated with the {ProductShortName} in a `ServiceMeshMemberRoll` resource located in the same namespace as the `ServiceMeshControlPlane` resource and name it `default`.
|
|
|
|
[WARNING]
|
|
====
|
|
If Container Network Interface (CNI) is enabled, manual sidecar injection will work, but pods will not be able to communicate with the control plane unless they are a part of the `ServiceMeshMemberRoll` resource.
|
|
====
|
|
|
|
[NOTE]
|
|
====
|
|
The member namespaces are only updated if the {ProductShortName} control plane installation succeeds.
|
|
====
|
|
|
|
* You can add any number of namespaces, but a namespace can only belong to *one* `ServiceMeshMemberRoll`.
|
|
|
|
* `ServiceMeshMemberRoll` resources are reconciled in response to the following events:
|
|
|
|
** The `ServiceMeshMemberRoll` is created, updated, or deleted
|
|
** The `ServiceMeshControlPlane` resource in the namespace containing the `ServiceMeshMemberRoll` is created or updated
|
|
** A namespace listed in the `ServiceMeshMemberRoll` is created or deleted
|
|
|
|
The `ServiceMeshMemberRoll` is deleted when its corresponding `ServiceMeshControlPlane` resource is deleted.
|
|
|
|
Here is an example that joins the bookinfo namespace into the {ProductShortName}:
|
|
|
|
.Prerequisites
|
|
|
|
* An installed, verified {ProductShortName} Operator.
|
|
* Location of the namespace where the custom resource installed the control plane.
|
|
|
|
.Procedure
|
|
|
|
. Create a custom resource file named `ServiceMeshMemberRoll` in the same namespace as the `ServiceMeshControlPlane` custom resource.
|
|
|
|
. Name the resource `default`.
|
|
|
|
. Add the namespaces to the member list in the `ServiceMeshMemberRoll`. The `bookinfo` namespace is joined to the {ProductShortName} in this example.
|
|
+
|
|
.Namespace configuration example
|
|
|
|
[source,yaml]
|
|
----
|
|
apiVersion: maistra.io/v1
|
|
kind: ServiceMeshMemberRoll
|
|
metadata:
|
|
name: default
|
|
spec:
|
|
members:
|
|
# a list of namespaces joined into the service mesh
|
|
- bookinfo
|
|
----
|
|
|