I have created a k8s service (type=loadbalancer) with a numbers of pods behind. To my understanding, all packets initiazed from the pods will have the source ip as PodIP, wheareas those responding the inbound traffic will have the source ip as LoadBalancer IP. So my questions are:
- Is my claim true, or there are times the source IP will be the node IP instead?
- Are there any tricks in k8s, which I can change the source IP in the first scenario from PodIP to LB IP??
- Any way to specify a designated pod IP??