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 upper-left corner.

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

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

    4. In App Settings, you can use the default settings or customize the settings by editing the YAML file directly. Click Install to continue.

    5. Wait until Tomcat is up and running.

    1. You can view deployed projects in .

    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. Click More and select Edit External Access from the drop-down list.

    3. Under Ports, you can see the port is exposed.

    4. Access the sample Tomcat project through <NodeIP>:<NodePort>/sample in your browser.

      access-tomcat-browser

      Note

      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.