Volcengine Kubernetes Engine
Item | ClusterIP | Headless Service |
Item | ClusterIP | Headless Service |
ClusterIP | Yes | None |
DNS resolution for services | The ClusterIPs of Services will be returned as results. | IPs of all pods will be returned as results. |
Accessed by other applications | Services are the farthest destinations that other applications can see. The iptables acts as a load balancer to determine which pod the traffic is further forwarded to. | Pods can be directly accessed through IPs. |
Application scenarios | Where services are required to provide load balancing for pods. |
|
Parameter | Description |
Parameter | Description |
Name | Enter a name for the service. Make sure the name is unique under the same namespace. |
Namespace | Select the namespace to which the service belongs. It is recommended that you select the namespace created by yourself or the default namespace created by the system. For details about namespaces, see Namespace overview. |
Label | Click Add new to add labels to the service. Labels are used to define various attributes of services, facilitating batch filtering and other operations. |
Annotation | It is an annotation in Kubernetes. Click Add annotation to add one for the service by creating a key-value pair. |
Parameter | Description |
Parameter | Description |
Access type | Select an access type for the service. In this case, select ClusterIP. |
Communication protocol | [beta·apply for trial] IPv4 and IPv6 protocols can be configured with different options to cover specific scenarios. The options include:
tip |
Port mapping | Create a port mapping:
tip In clusters using the VPC-CNI network model, duplicate ports are not allowed for services even across different protocols. That is, no services can share the same port number regardless of whether they use TCP or UDP.
|
Label selector | Services are bound to back-end pods through label selectors.
|
Session persistence | Whether to enable session persistence.
tip Headless services do not support session persistence and the timeout setting will not take effect. |