< img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=3131724&fmt=gif" />

Add Services to Composed Apps

This section describes how to add stateful or stateless services to a composed app.

Prerequisites

You should join a project and have the Service Mesh Management permission within the project. For more information, refer to "Project Members" and "Project Roles".

Steps

  1. Log in to the KubeSphere web console with a user who has the Service Mesh Management permission, and access your project.

  2. Click Service Mesh > Composed Apps in the left navigation pane.

  3. On the Composed Apps page, click the name of an app to open its details page.

  4. On the app details page, select More > Add Service in the top-left corner.

  5. In the Create Service dialog, select Stateful Service or Stateless Service as needed.

    Note
    • Stateful Service: The internal access mode of the service is Headless, and the backend workload is Statefulset.

    • Stateless Service: The internal access mode of the service is VirtualIP, and the backend workload is Deployment.

  6. On the Basic Information tab, configure the basic information for the service, and then click Next.

  7. On the Pod Settings tab, set the number of replicas, containers, update strategy, security context, scheduling rules, and metadata for the pods managed by the service backend workload, then click Next.

  8. On the Storage Settings tab, mount volumes for the containers managed by the backend workload of the service, then click Next.

  9. On the Advanced Settings tab, specify IP pools and nodes for the pods managed by the backend workload of the service, set the external access mode, session persistence settings, and metadata for the service, then click Create.

    Once the service is created, it will be displayed in the list of services.

    For parameter settings of Stateful Service and Stateless Service, see Create a Stateful or Stateless Service.

Receive the latest news, articles and updates from KubeSphere


Thanks for the feedback. If you have a specific question about how to use KubeSphere, ask it on Slack. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.

What’s on this Page