Edit External Access

This section explains how to edit external access settings for services.

Note

This operation is only available for services with an internal access mode of VirtualIP, not available for services with internal access modes of Headless or ExternalName.

Prerequisites

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

Steps

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

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

  3. In the Edit External Access dialog, set the external access mode for the service, then click OK.

    The external access modes for the service include the following types:

    ParameterDescription

    None

    The service cannot be accessed from outside the cluster.

    • NodePort: The system maps the ports of nodes to the service ports, and the service can be accessed through the node IP address and node port.

    • LoadBalancer: On the basis of a NodePort service, the system assigns an external IP address to the service and binds the external IP address to an external load balancer. The external load balancer listens on the node port corresponding to the service, allowing access to the service through the external IP address. To achieve this, LoadBalancer-type services need support from load balancer plugins and the infrastructure environment, and relevant annotations need to be set. For more information, please contact your infrastructure environment provider.