DEV Community

Cover image for #045 Kubernetes - Services 5

Posted on

#045 Kubernetes - Services 5



this is part 45 from the journey it's a long journey(360 day) so go please check previous parts , and if you need to walk in the journey with me please make sure to follow because I may post more than once in 1 Day but surely I will post daily at least one 😍.

And I will cover lot of tools as we move on.

Load balancer

In NodePort every Node get an ip (minikube is a single local Node) .
I can access every node by it's IP even if it's an duplicate (replica) of another one , if we assume we have an big software , it's illogical to use many ips for our software.
The solution is to use a LoadBalancer.
LoadBalancer create an external ip can drive us to any pod what ever the node it's inside of it.
LoadBalancer is good for big softwares , but not very very big software with many services every external IP address we pay for it so we can use Ingress , the Ingress do LoadBalaning for all the services.
This is an look at LoadBalancer , we just put the type to LoadBalancer.

Top comments (0)