Kubernetes Services
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
What is a Service ?
A service is responsible for enabling network access to a set of pods. The set of Pods targeted by a Service is usually determined by a selector.
What are the types of Services?
1.Cluster Ip : A service which is only accessible within the cluster.
2.NodePort : A service which is accessible outside the cluster via node ip.
3.NodePort : A service which is accessible via the cloud provider’s load balancer.
4.ExternalName : External names are ones that are visible to other compilation units.
How service works?
The most basic type of load balancing in Kubernetes is actually load distribution, which is easy to implement at the dispatch level. Kubernetes uses two methods of load distribution, both of them operating through a feature called kube-proxy, which manages the virtual IPs used by services.
What is the use of service named with “kubernetes” in default namespace?
The kubernetes service in the default namespace is a service which forwards requests to the Kubernete API server. All the requests to the kubernetes default service from the cluster will be routed to the configured Endpoint IP