We have a rancher cluster composed by 8 machines :
Recently, we lost our rancher server. In the .kube/config
generated by rancher, the server referenced is the rancher server :
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: XXX
server: https://1.2.3.4/k8s/clusters/c-qz7pq
name: k8s
However, even without the rancher server up, the kubernetes cluster is still up and running but it's not possible to connect to it with kubectl command line because the rancher server referenced in the .kube/config
is down. I tried to add the control plane ip in place of rancher server ip in the .kube/config
but it doesn't work.
Is there a way to adress directly the kubernetes API working with rancher ?
Rancher version : 2.1.3
Kubernetes version : 1.11.5
There currently is not a way to do this, but we are working on it and you can track its progress here: https://github.com/rancher/rancher/issues/13698
If the cluster is provided by GKE, AKS, or EKS, you have the direct access provided by the cloud providers. Meaning, you can log into their UIs and basically obtain a super admin level kubeconfig
For RKE based clusters, a direct-to-k8s, super-admin kubeconfig is not easily exposed, but this would be addressed by the above feature I mentioned