|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * service_mesh/v2x/installing-ossm.adoc |
| 4 | + |
| 5 | +:_content-type: CONCEPT |
| 6 | +[id="ossm-about-adding-namespace_{context}"] |
| 7 | += About adding projects to a service mesh |
| 8 | + |
| 9 | +A project contains services; however, the services are only available if you add the project to the service mesh. |
| 10 | + |
| 11 | +[NOTE] |
| 12 | +==== |
| 13 | +In {product-title}, 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 {product-title} web console uses the term project, and the CLI uses the term namespace, but the terms are essentially synonymous. |
| 14 | +==== |
| 15 | + |
| 16 | +You can add projects to an existing service mesh using either the {product-title} web console or the CLI. There are two methods to add a project to a service mesh: |
| 17 | + |
| 18 | +* Specifying the project name in the `ServiceMeshMemberRoll` resource. |
| 19 | +
|
| 20 | +* Creating the `ServiceMeshMember` resource in the project. |
| 21 | +
|
| 22 | +.ServiceMeshMemberRoll method |
| 23 | + |
| 24 | +This is the simplest way to add a project to a service mesh. To add a project, specify the project name in the `spec.members` field of the `ServiceMeshMemberRoll` resource. The `ServiceMeshMemberRoll` resource specifies which projects are controlled by the `ServiceMeshControlPlane` resource. |
| 25 | + |
| 26 | +[NOTE] |
| 27 | +==== |
| 28 | +Adding projects using this method requires the user to have the `update servicemeshmemberrolls` and the `update pods` privileges in the project that is being added. |
| 29 | +==== |
| 30 | + |
| 31 | +* If you already have an application, workload, or service to add to the service mesh, see the instructions for adding or removing projects from the service mesh using the `ServiceMeshMemberRoll` resource with the xref:../../service_mesh/v2x/ossm-create-mesh.adoc#ossm-add-project-member-roll-recourse-console_ossm-create-mesh[web console] or with the xref:../../service_mesh/v2x/ossm-create-mesh.adoc#ossm-add-project-member-roll-resource-cli_ossm-create-mesh[CLI]. |
| 32 | +
|
| 33 | +* Alternatively, to install a sample application called Bookinfo and add it to a `ServiceMeshMemberRoll` resource, see xref:../../service_mesh/v2x/ossm-create-mesh.adoc#ossm-tutorial-bookinfo-overview_ossm-create-mesh[Bookinfo example application] tutorial. |
| 34 | +
|
| 35 | +.ServiceMeshMember method |
| 36 | + |
| 37 | +A `ServiceMeshMember` resource provides a way to add a project to a service mesh without modifying the `ServiceMeshMemberRoll` resource. To add a project, create a `ServiceMeshMember` resource in the project that you want to add to the service mesh. When the {SMProductShortName} Operator processes the `ServiceMeshMember` object, the project appears in the `status.members` list of the `ServiceMeshMemberRoll` resource. Then, the services that reside in the project are made available to the mesh. For more information, see the instructions for adding projects to the service mesh using the `ServiceMeshMember` resource with the xref:../../service_mesh/v2x/ossm-create-mesh.adoc#ossm-adding-project-using-smm-resource-console_ossm-create-mesh[web console] or with the xref:../../service_mesh/v2x/ossm-create-mesh.adoc#ossm-adding-project-using-smm-resource-cli_ossm-create-mesh[CLI]. |
| 38 | + |
| 39 | +The mesh administrator must grant each mesh user permission to reference the `ServiceMeshControlPlane` resource in the `ServiceMeshMember` resource. With this permission in place, this method of adding projects to a mesh can be used when the mesh user does not have direct access rights for the service mesh project or the `ServiceMeshMemberRoll` resource. For more information, see xref:../../service_mesh/v2x/ossm-profiles-users.html#ossm-members_ossm-profiles-users[Creating the {SMProductName} members]. |
0 commit comments