Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!
We spend hours on Instagram and YouTube and waste money on coffee and fast food, but wonβt spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!
Learn from Guru Rajesh Kumar and double your salary in just one year.
what is service:
*normally service is used to balance traffic among pods in a cluster .this can be done with the help of load balancer
*enables network access from either within the cluster or between external processes and the service.
TYPES OF SERVICE:
ClusterIP :only accessible from within the cluster
NodePort:expose via a port on each node IPβs and can be accessed from outside
LoadBalancer:via cloud
ExternalName:map to predefined namefield
Use Of Service named Kubernetes in default Namespace:
*Used to forward the request to the master(APIServer) So all the requests to the Kubernetes default service from the cluster will be routed to the configured Endpoint IP.
service work process:
That has proxy to be configured to forward to the resources
create a service
describe the service and you can see there is no endpoint
Inorder to enable endpoint: edit in a way that label selector at the load balancer should match the label selector of the pod
then you can see endpoints.