we are using AWS and have several deployment in 3 zones. As traffic between zones we pay extra, we would like to make requests stays in the same zone as much as possible.
So the idea was create services per zone, filtering the app label AND the node availability zone where the pod is located. In 1.17 i can see that “Cloud Provider Labels” are official, is there any oficial way to push the node label to the pod? that looks like the easiest way… but i recall reading something about 1.18 and zoned services, but can’t find it… but i’m not totally sure.
So what is the best way to keep traffic in the same zone in kubernetees. 1.15 is what we have, but we do plan to upgrade to 1.18 when possible, so not limited to use more recent and correct ways.
Kubernetes version: 1.15
Cloud being used: aws
Installation method: kops
Host OS: debian