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
Log in to the KubeSphere web console with a user who has the Service Mesh Management permission, and access your project.
Click Service Mesh > Composed Apps in the left navigation pane.
On the Composed Apps page, click the name of an app to open its details page.
On the app details page, select More > Add Service in the top-left corner.
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.
On the Basic Information tab, configure the basic information for the service, and then click Next.
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.
On the Storage Settings tab, mount volumes for the containers managed by the backend workload of the service, then click Next.
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.
Feedback
Was this page Helpful?
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.