Lost Rancher database with Kubernetes

We had a rancher server hosting kubernetes environment. Unfortunately we lost the rancher database. Application on Kubernetes seems to be still working. Whats the best way to make new rancher work with existing kubernetes setup?

There is no support for importing an existing k8s cluster in Rancher 1.x. Your best bet is going to be to export the yaml for all the deployments and whatever else is important and then create a new server+cluster while it’s still running, because nothing is managing the cluster now and keeping it up if something goes wrong like hosts failing.