I have an app deployment called 'backend-app' running in pods that are on several different nodes. I also have a service that exposes the 'backend-app' to be accessed by other cluster internal pods as my 'frontend-app' pods.
If I use DNS to connect to the 'backend-app' from my different app deployment called 'frontend-app' will the requests be load balanced to each 'backend-app' pod on each node?
It sounds like a NodePort service will only connect to one node and not load balance my requests to others.
NodePortis a service type, but if you want load balancing behavior choose the type asLoadBalancer. There is also a question on SO on NodePort and LoadBalancer. After all, for official reference, see: kubernetes.io/docs/concepts/services-networking/service/… - vahdetLoadBalancercan delegate the balancing to your cloud provider's LB. If you are to configure your LB more explicitly, however, nothing stops you from exposing your deployments by aNodePortservice: An external LB can access theNodePorts in a round-robin fashion (or whatever way you configure it) - vahdet