Service Exposure
To invoke the service functionality provided by a workload both within and outside the cluster, services are defined using Cluster IP and Node Port methods.
If services are defined using the Node Port method in a cloud-configured cluster, a load balancer can be configured in front of it, allowing external invocation of services through the load balancer address and port.
What types of service exposure do you support?
Cluster IP: Groups pods set with the same label to perform load balancing (not in round-robin but random connection), facilitating internal communication.
Node Port: Distributes the same port to each POD, performs load balancing using Cluster IP and port, and allows external exposure.
When using Node Port, you need to register the Node Port for KT LB to use it.
For inquiries regarding KT firewall and LB Port Open, please contact MSP directly.
What are the benefits of service exposure?
Easy Service Creation
Users can easily create various service exposure types through the web UI console.
Automatic Load Balancer Creation
When a cluster is configured in a public cloud, Cocktail Cloud automatically creates a load balancer. Service exposure using the load balancer type is possible only on clouds that support it, such as AWS, Azure, and GCP.
Task List
Create services
View services
1. Create Services
1.1 Navigate to the service exposure screen
1) Select [Application] - [Service Map], then click the "+ Create" button to move to the service exposure screen.
1.2 Choose the service exposure type
1) Select ClusterIP or Nodeport as needed.
[For KT customers] When creating a Node Port type service, you need to contact MSP for load balancer creation and firewall setup.
1.3 Enter basic service exposure information
1) Enter basic service exposure information.
2) Click "Label Selector," choose the workload and label to connect the service to, then click the "+ Add" button.
3) Confirm that the selected label is displayed at the bottom as Key, Value, and click the "Apply" button.
You can either select labels pre-set in the workload or directly input a label name and value.
When directly adding a workload, input fields for Key and Value will be added at the bottom, and you can enter them directly.
1.4 Configure service target ports
1) In the service exposure settings, click the "Edit" button in the Target Ports section.
2) Click "+ Add," then enter the Name, Protocol, Target Port, and Service Port at the bottom.
Name, Protocol, Target Port, and Service Port are mandatory, and you can choose between TCP and UDP for the protocol.
1.5 Save the configuration
After completing the information input, click the "Save" button to create the service.
2. View Services
Search the generated service information on the service exposure screen of the service map.
2.1 View the list of services
1) Access the service exposure screen in the service map to check the list of created services.
2.2 View detailed service information
1) Click on the service name displayed in the service list to view the service's configuration and status information.
2) You can also view service configuration and status information in YAML format by clicking the settings button on the top screen, then selecting "YAML View" from the left checkbox.
Last updated