I have a service with an externalIP with cilium CNI deployed. The client request is from outside cluster or from cluster pod internal. When the request is from outside, my service can correctly retrieve the sourceIP which usually publicIP, but if the request from the other pod inside cluster, the srcIP is always privateIP, even the client pod’s request visited externalIP. I’m pretty sure there’s some optimize in the CNI plugin, but it’s not what I need. Is there some way that I can make all these request sent to externalIP shows an public sourceIP?
I’ve tried a lot of Cilium and k8s configure, like internalTrafficPolicy
and externalTrafficPolicy
but they can’t meet my requirement
张世申 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.