Deploy MongoDB on KubeSphere
This tutorial walks you through an example of deploying MongoDB from the App Store of KubeSphere.
- You need to create a workspace, a project, and a user account () for this tutorial. The account needs to be a platform regular user and to be invited as the project operator with the
operator
role. In this tutorial, you log in as and work in the projectdemo-project
in the workspace . For more information, see Create Workspaces, Projects, Users and Roles.
Hands-on Lab
On the Overview page of the project
demo-project
, click App Store in the upper-left corner.Find MongoDB and click Install on the App Information page.
Set a name and select an app version. Make sure MongoDB is deployed in and click Next.
Wait until MongoDB is up and running.
Step 2: Access the MongoDB Terminal
Go to Services and click the service name of MongoDB.
In the pop-up window, enter commands in the terminal directly to use the app.
Note
If you want to access MongoDB outside the cluster, click More and select Edit External Access. In the dialog that appears, select NodePort as the access mode. Use the port number to access MongoDB after it is exposed. You may need to open the port in your security groups and configure related port forwarding rules depending on where your Kubernetes cluster is deployed.