I am trying to understand about egress traffic controlling in Kubernetes-Operator. If I implement Kubernetes operator in my k3s setup, how the egress traffic flow happens in the operator?
I want to understand that what pathway/gateway and routing happens with egress traffic flow happens in the Kubernetes operator (journey of egress traffic)?
As a general rule, egress traffic leaves your SDN from the Node hosting your Pod. The Node would NAT it, using its own IP on your underlay network.
Now, if by Egress you mean "anything that leaves my Pod" / regarding communications that stay within the SDN. Bearing in mind that:
Connecting a Service, the Node firewall (usually ipvs or iptables, as configured per kube-proxy) would redirect your connection one of the addresses listed in the corresponding Endpoint object. At which point, your Node routing table takes over: