Deploy NGINX on KubeSphere

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

    Hands-on Lab

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

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

      nginx-in-app-store

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

      confirm-deployment

    4. In App Config, specify the number of replicas to deploy for the app and enable Ingress based on your needs. When you finish, click Deploy.

      Note

      To specify more values for NGINX, use the toggle switch to see the app’s manifest in YAML format and edit its configurations.

    5. Wait until NGINX is up and running.

      nginx-running

    Step 2: Access NGINX

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

    1. On the service detail page, click More and select Edit Internet Access from the drop-down menu.

    2. Select NodePort for Access Method and click OK. For more information, see .

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

      exposed-port

    4. Access NGINX through {$NodeIP}:{$Nodeport}.

      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.

    5. For more information, see the official documentation of NGINX.