<p>I have a SpringBoot application, dockerized, and deployed in a kubernetes cluster.
There is any way to log the pod name and pod ip from the springboot application inside the container?</p>

<p>Thanks in advance.</p>

rocky
<p>One approach is to run a Fluentd agent on each cluster node.  The agent collects all pod sysouts, decorates the logs with pod attributes and pipes them into ElasticSearch or some other searchable store.  ala <a href="https://docs.fluentd.org/v0.12/articles/kubernetes-fluentd" rel="nofollow noreferrer">kubernetes-fluentd</a></p>
