services(kubernet)
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?
- An abstract way to expose an application running on a set of Pods as a network service.
- With Kubernetes you don’t need to modify your application to use an unfamiliar service discovery mechanism. Kubernetes gives Pods their own IP addresses and a single DNS name for a set of Pods, and can load-balance across them.
What is the types Services?
- ClusterIP: Exposes the service on a cluster-internal IP. Choosing this value makes the service only reachable from within the cluster. This is the default Service Type
- NodePort: Exposes the service on each Node’s IP at a static port (the NodePort)
- LoadBalancer : Exposes the service externally using a cloud provider’s load balance
- EternalName :which will redirect a request to a domain specified in its
external Name
parameter:
What is the use of service named with “kubernetes” in default namespace?
- it is a service which forwards requests to the Kubernetes master .
- So all the requests to the kubernetes.default service from the cluster will be routed to the configured Endpoint IP.