In short, is it possible to recreate/restore a kubeconfig file for an imported cluster from rancher?
I have a kubernetes cluster running on AWS. This kubernetes cluster was installed with
rke up. I also have rancher installed on this kubernetes cluster and this kubernetes cluster was also imported into rancher. All these setup was done by someone who have already left and I don’t have either the original cluster.yaml file or the original kubeconfig. I only have a kubeconfig file downloaded from rancher UI.
Now I am trying to upgrade rancher. As the documentation suggested I have to reinstall rancher since I am running very old version of cert-manager.
But I lost connection to the kubernetes cluster as soon as I run
helm delete because the kubeconfig file I used was download from the UI and inside it’s pointing the server address to rancher.
I finally managed to restore the cluster from VM snapshots.
Any ideas I can do the upgrade smoothly?