Relative Content

Tag Archive for kubernetescilium

how to use ExternalIP in k8s intra-cluster egress traffic?

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?