2.10. Adding services to a service mesh
A project contains services; however, the services are only available if you add the project to the service mesh.
2.10.1. About adding projects to a service mesh 复制链接链接已复制到粘贴板!
After installing the Operators and creating the ServiceMeshControlPlane resource, add one or more projects to the service mesh.
In OpenShift Container Platform, a project is essentially a Kubernetes namespace with additional annotations, such as the range of user IDs that can be used in the project. Typically, the OpenShift Container Platform web console uses the term project, and the CLI uses the term namespace, but the terms are essentially synonymous.
You can add projects to an existing service mesh using either the OpenShift Container Platform web console or the CLI. There are three methods to add a project to a service mesh:
-
Specifying the project name in the
ServiceMeshMemberRollresource. -
Configuring label selectors in the
spec.memberSelectorsfield of theServiceMeshMemberRollresource. -
Creating the
ServiceMeshMemberresource in the project.
If you use the first method, then you must create the ServiceMeshMemberRoll resource.