<p>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.</p>
<p>how can i perform simple test on each node / pod to see the outgoing IP address that will do the requests?</p>
<p>Thank you</p>

explorer
<p>If you are on GKE and your cluster is public</p>
<p>Your Outing going IP will be always <strong>Node's IP</strong> on which your POD is running.</p>
<p>This will list all the external <strong>IPs</strong> to Node, and check all the External ones that will be outgoing IPs based on PODs running on which node.</p>
<pre><code>kubectl get nodes -o wide 
</code></pre>
<p>If you want to quickly verify outgoing IP</p>
<p>Go inside any POD using the <strong>exec</strong></p>
<pre><code>kubectl exec -it &lt;POD name&gt; -n &lt;namespace name&gt; -- /bin/sh
</code></pre>
<p>and run the command</p>
<pre><code>curl https://ifconfig.me/
</code></pre>
<p>it will response your out going IP which will be in your case Node's IP on which POD is running.</p>
