Is there a way to retrieve all the dependencies for an app hosted at Kubernetes

I want to create a dashboard which have list of applications, the services which is being used by each applications and the database and table being used by each services.
Is there any way to retrieve such info directly from Kubernetes or somewhere else.