<p>We are trying to get live configuration data from our kubernetes cluster. Therefore we would like to read the configmaps from each of our services.</p>

<p>Is there a way to exctract this data with a spring microservice which runs alongside the rest of the services?</p>

<p>Or are there other (better?) ways / tools to get this information?</p>

famabenda
<p>Using Kubernetes APIs you can get the configmaps you need. I am not familiar with the Java client, but here it is:</p>

<p><a href="https://github.com/kubernetes-client/java" rel="nofollow noreferrer">https://github.com/kubernetes-client/java</a></p>

<p>You can retrieve a list of configmaps and their contents using these APIs. Your application will need a cluster role and a cluster role binding to allow it reading from configmap resources if you're using RBAC.</p>
