<p>Update:</p>
<p>What I am trying to achieve: I have the IP address of a cluster resource (10.1.239.128 in the examples below) and want to figure out to which POD/service/... it belongs.</p>
<hr />
<p>I set up a Kuebernetes cluster using Microk8s running, among others, vault and cert-manager via Helm charts. In two of the PODs created for vault and cert-manager, I get multiple the following log entry:</p>
<pre><code>&gt; kubectl logs pod/cert-manager-webhook-6787f645b9-s5fxl

http: TLS handshake error from 10.1.239.128:37763: EOF

</code></pre>
<pre><code>&gt; kubectl logs pod/release-name-vault-0

http: TLS handshake error from 10.1.239.128:48609: remote error: tls: unknown certificate authority
</code></pre>
<p>I am struggling with finding out where these requests come from.</p>
<p>I tried:</p>
<ul>
<li><code>kubectl get svc --all-namespaces</code></li>
<li><code>kubectl get endpoints  --all-namespaces</code></li>
<li><code>kubectl get endpointslices  --all-namespaces</code></li>
<li><code>ping -a 10.1.239.128</code> using from a POD created using <a href="https://github.com/nicolaka/netshoot" rel="nofollow noreferrer">netshoot</a></li>
</ul>
<p>to figure out from where the requests are coming from, but to no luck. The ip address is not listed or resolved to a DNS name to further investigate.</p>
<p>Any further ideas of how to get the resource issuing the request or further debug this? Thanks in advance.</p>

marcel h
<p>Here is a workaround, not the finest way of doing it, but it may help to get in the right direction:</p>
<pre><code>kubectl api-resources  -oname |while read r;
do 
     echo -n &quot;$r ----&gt; &quot;;
     kubectl get $r -A -o yaml |grep -oPz '\d+\.\d+\.\d+\.\d+';
     echo &quot;&quot; ;
done
</code></pre>
<p>Assuming the IP, you are searching for is a cluster resource.</p>
