I am using kubernetes java client libraries in order to communicate with my kubernetes server.
My question is there any way programmatically get namespace of running pod from inside of which sent call to kubernetes?
I heard that there is file located here - /var/run/secrets/kubernetes.io/serviceaccount/namespace
However I wanted to know is there any way ro get it using java client without reading this file.
I have searched in documentation, however found nothing related to this.