K8s pod count in Java

5/27/2020

I am trying to find out if there is a possibility for a java application, running in a Kubernetes Pod, to know how many of the same pods are running in the cluster. I looked at the downward API, but there is no option to see the number of pods. I understand that this information normally shouldn't matter, but I need to get it to adjust some parameters of the application.

-- Sven
java
kubernetes

0 Answers