Kubernetes – Export/Backup the deployment.yaml when connection is refused

  docker, kubeadm, kubernetes

there is only one master node left in my old configuration and I want to know which Deployments.yaml I deployed there.

But when I use kubectl get pods for example I get only

The connection to the server *** was refused.

Did someone know how I can backup my old deployments

Source: Docker Questions