Explore how developers can access Kubernetes data without privileged access using a custom application and the k8s API Server.
There is useful data in Kubernetes that is not readily exposed to developers. Our developers frequently need access to the following, and we encountered challenges providing them with that information:
Our solution? Write a custom application that quickly exposes this information! We already have a plethora of applications running in our Kubernetes cluster, so the logical approach would be to host our custom application there as well. Luckily for us, this was also most conducive to accessing the very data we were looking to expose.
This approach allows our developers to focus on writing applications rather than learning complex cloud architecture or reaching out to our cloud architects for information that should be readily accessible. It also simplifies permissions and provides a one-stop shop for anything related to Kubernetes our developers may need access to.
Setting up a Service Account: https://www.teamim.com/insights/kubernetes-developer-tools-service-account
Retrieving Pod data: https://www.teamim.com/insights/kubernetes-developer-tools-displaying-application-version
Retrieving Logs: https://www.teamim.com/insights/kubernetes-developer-tools-retrieving-application-logs