Create External Services

This section explains how to create external services.

External services forward business traffic to other services outside the cluster, and can be accessed internally within the cluster using the domain name format <service name>.<project name>.svc.cluster.local.

Prerequisites

You should join a project and have the Application Workload Management permission within the project. For more information, refer to “Project Members” and “Project Roles”.

Steps

  1. Log in to the KubeSphere web console with a user who has the Application Workload Management permission, and access your project.

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

  3. Click Create on the page.

  4. In the Create Service dialog, select External Service.

  5. On the Basic Information tab, set the basic information of the service, then click Next.

  6. On the External Service tab, set the address of the target service, then click Create.

    Note
    • The address of the target service must be a domain name. If you input an IP address, it will be considered as a domain composed of numbers rather than a real IP address.

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