< img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=3131724&fmt=gif" />

Access the Backend Service of an Ingress

This section describes how to access the backend service of an Ingress.

After the Ingress is created, you can access the backend service of the Ingress through any HTTP or HTTPS client. Depending on the external access mode of the cluster gateway or project gateway, you can use the following access methods:

  • If the external access mode of the cluster gateway or project gateway is NodePort, you can access the backend service of the Ingress through the domain name, path, and port number (e.g., example.com/test:30240).

  • If the external access mode of the cluster gateway or project gateway is LoadBalancer, you can access the backend service of the Ingress through the domain name and path (e.g., example.com/test).

The following only demonstrates how to test whether the Ingress is set correctly in the KubeSphere web console.

Prerequisites

  • You should join a cluster or a project and have the Application Workload Viewing permission within the cluster or the project. For more information, refer to "Cluster Roles" and "Project Roles".

  • You should install the KubeSphere Gateway extension and enable the cluster gateway or project gateway. For more information, see KubeSphere Gateway.

  • The client must resolve the domain name to the gateway IP address through the local hosts file or DNS service.

  • The client must have network connectivity to the gateway IP address. For more information, contact your network environment administrator.

Steps

  1. Log in to the KubeSphere web console with a user who has the Application Workload Viewing permission and enter your cluster or project.

  2. Click Application Workloads > Ingresses in the left navigation pane.

  3. Click the name of an Ingress in the Ingress list to open its details page.

  4. In the Resource Status tab, click Access Service on the right side of the routing rule you want to access.

    If the Ingress is set correctly, the browser will display the response information from the backend service.

Receive the latest news, articles and updates from KubeSphere


Thanks for the feedback. If you have a specific question about how to use KubeSphere, ask it on Slack. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.

What’s on this Page