This section describes how to create an external service.

An external service forwards business traffic to services outside the cluster. Within the cluster, it can be accessed using a domain name in the format <service name>.<project name>.svc.cluster.local.

Prerequisites

You need to join a project and have the Application Workload Management permission in the project. For more information, see Project Members and Project Roles.

Steps

  1. Log in to the KubeSphere web console with a user who has Application Workload Management permissions and enter your workspace.

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

  3. Select a project from the drop-down list in the upper left corner of the page.

  4. Click Create on the page.

  5. In the Create Service dialog box, select External Service.

  6. On the Basic Information tab, configure the basic information for the service, and then click Next.

  7. On the External Service tab, configure the address of the target service, and then click Create.

    Note
    • The address of the target service must be a domain name. If you enter an IP address, it will be treated as a domain name consisting of numbers, not a real IP address.

    • To ensure business traffic can be correctly forwarded to the target service, make sure the domain name of the target service can be resolved to an actual IP address by the DNS server.