Let's assume I have three node named n1
, n2
, n3
. created four pods named p1
, p2
, p3
, p4
, k8s
scheduler placed pods in nodes as follows
n1 -> p1
n2 -> p2
n3 -> p3, p4
Now, to access these pods I have created a nodeport
service. Nodeport
service will open same numbered ports in each nodes. Nodes will have iptables
configured to forward traffics from service to pods.
Let's also assume that I will have a NLB configured top of it. how traffic will be distributed? is it like below?
p1 -> 33.3330%
p2 -> 33.3330%
p3 -> 16.6665%
p4 -> 16.6665%