Home > Software design >  I want to find all the IP's to which outgoing traffic is going from the nodes/pods
I want to find all the IP's to which outgoing traffic is going from the nodes/pods

Time:08-02

in Kubernetes I want to find all the IP's to which outgoing traffic is going from the nodes/pods. Does anyone know how to find out? because once we establish those IP's we need to give it to users so that they need to whitelist from their side.

how can i perform simple test on each node / pod to see the outgoing IP address that will do the requests?

Thank you

CodePudding user response:

If you are on GKE and your cluster is public

Your Outing going IP will be always Node's IP on which your POD is running.

If you want to quickly verify outgoing IP

Go inside any POD using the exec

kubectl exec -it <POD name> -n <namespace name> -- /bin/sh

and run the command

curl https://ifconfig.me/

it will response your out going IP which will be in your case Node's IP on which POD is running.

  • Related