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

Edit Service External Access Settings

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

  • Application Management for Cluster Federation should have been installed and enabled.

  • You should join a multi-cluster project and have the Federated Project Management permission within the project.

Steps

  1. Log in to the KubeSphere web console with a user who has the Federated Project Management permission, and access your multi-cluster project.

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

  3. Click the name of a service in the list to open its details page.

  4. On the service details page, click the Access Information tab on the right to view the service’s access information.

  5. Click more on the right side of the page, then select Edit External Access from the dropdown list.

  6. 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.

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