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
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
-
Log in to the KubeSphere web console with a user who has the Application Workload Management permission, and access your project.
-
Click Application Workloads > Services in the left navigation pane.
-
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.