Deploy Tomcat on KubeSphere

    This tutorial walks you through an example of deploying Tomcat from the App Store of KubeSphere.

    Hands-on Lab

    1. On the Overview page of the project , click App Store in the top left corner.

    2. Find Tomcat and click Deploy on the App Info page.

      find-tomcat

    3. Set a name and select an app version. Make sure Tomcat is deployed in demo-project and click Next.

      click-next

    4. In App Config, you can use the default configuration or customize the configuration by editing the YAML file directly. Click Deploy to continue.

    5. tomcat-running

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

    2. You can view deployed projects in .

      view-project

    To access a Tomcat project outside the cluster, you need to expose the app through a NodePort first.

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

    2. edit-internet-access

    3. Select NodePort for Access Method and click OK. For more information, see Project Gateway.

    4. Under Service Ports, you can see the port is exposed.

      exposed-port

    5. Access the sample Tomcat project through {$NodeIP}:{$Nodeport} in your browser.

      Note

      You may need to open the port in your security groups and configure related port forwarding rules depending on your where your Kubernetes cluster is deployed.