
What is a ClusterIP service?
The ClusterIP provides a load-balanced IP address. One or more pods that match a label selector can forward traffic to the IP address. The ClusterIP service must define one or more ports to listen on with target ports to forward TCP/UDP traffic to containers.
What is the difference between headless service and ClusterIP service?
Custom Load-Balancing Logic A ClusterIP Service does very simple load balancing. For every request it gets, it usually redirects it to a Pod it picks randomly. With a headless Service, however, a client app can actually "see" all the Pods that are available.
What are the three types of services in Kubernetes?
Types of Kubernetes Services LoadBalancer: Clients send requests to the IP address of a network load balancer. ExternalName: Internal clients use the DNS name of a Service as an alias for an external DNS name. Headless: You can use a headless service when you want a Pod grouping, but don't need a stable IP address.
What is the default service ClusterIP range?
10.43.0.0/16 Service Cluster IP Range ( service_cluster_ip_range ) – This is the virtual IP address that will be assigned to services created on Kubernetes. By default, the service cluster IP range is 10.43. 0.0/16 . If you change this value, then it must also be set with the same value on the Kubernetes API server ( kube-api ).
type: ClusterIP This default Service type assigns an IP address from a pool of IP addresses that your cluster has reserved for that purpose. …
Services can have a cluster-scoped virtual IP address (using a Service of type: ClusterIP). Clients can connect using that virtual IP address.
ClusterIP service just creates a connector for in-node communication. Use it only in case you have a specific application that needs to connect …