2.10.4.2. Adding a project to the mesh using the ServiceMeshMember resource with the CLI


You can add one or more projects to the mesh using the ServiceMeshMember resource with the CLI.

Prerequisites

  • You have installed the Red Hat OpenShift Service Mesh Operator.
  • You know the name of the ServiceMeshControlPlane resource and the name of the project it belongs to.
  • You know the name of the project you want to add to the mesh.
  • A service mesh administrator must explicitly grant access to the service mesh. Administrators can grant users permissions to access the mesh by assigning them the mesh-user Role using a RoleBinding or ClusterRoleBinding. For more information, see Creating the Red Hat OpenShift Service Mesh members.

Procedure

  1. Log in to the OpenShift Container Platform CLI.
  2. Create the YAML file for the ServiceMeshMember manifest. The manifest adds the my-application project to the service mesh that was created by the ServiceMeshControlPlane resource deployed in the istio-system namespace:

    apiVersion: maistra.io/v1
    kind: ServiceMeshMember
    metadata:
      name: default
      namespace: my-application
    spec:
      controlPlaneRef:
        namespace: istio-system
        name: basic
  3. Apply the YAML file to create the ServiceMeshMember resource:

    $ oc apply -f <file-name>

Verification

  • Verify that the namespace is part of the mesh by running the following command. Confirm the that the value True appears in the READY column.

    $ oc get smm default -n my-application

    Example output

    NAME      CONTROL PLANE        READY   AGE
    default   istio-system/basic   True    2m11s

  • Alternatively, view the ServiceMeshMemberRoll resource to confirm that the my-application namespace is displayed in the status.members and status.configuredMembers fields of the ServiceMeshMemberRoll resource.

    $ oc describe smmr default -n istio-system

    Example output

    Name:         default
    Namespace:    istio-system
    Labels:       <none>
    # ...
    Status:
    # ...
      Configured Members:
        default
        my-application
    # ...
      Members:
        default
        my-application

Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동