K8s Service
- We have create a replica set with n pods. How do we access the application running inside the pods.
- In normal scenarios for these kind of problems, we use a load balancer.
- In K8s we use Service Object. A Service is a way to create a named label selector. This Service Object will recieve an IP Address and also DNS Name
- So now lets create two replica-sets and two service.
- Lets understand service types
- Cluster IP
- Node Port
- loadbalancer
- external name
- Lets create the replicasets from the changeset Refer Here
