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 project demo-project in the workspace . For more information, see Create Workspaces, Projects, Users and Roles.

    Hands-on Lab

    1. On the Overview page of the project demo-project, click App Store in the upper-left corner.

    2. Find MongoDB and click Install on the App Information page.

    3. Set a name and select an app version. Make sure MongoDB is deployed in and click Next.

    4. Wait until MongoDB is up and running.

    Step 2: Access the MongoDB Terminal

    1. Go to Services and click the service name of MongoDB.

    2. 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.