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
Log in to the KubeSphere web console with a user who has the Federated Project Management permission, and access your multi-cluster project.
Click Application Workloads > Services in the left navigation pane.
Click the name of a service in the list to open its details page.
On the service details page, click the Access Information tab on the right to view the service’s access information.
Click on the right side of the page, then select Edit External Access from the dropdown list.
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:
Parameter Description 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.
Feedback
Was this page Helpful?
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.