Kubectl direct access to rancher launched k8s

In case of emergent issues, e.g. network connectivity is lost between rancher and k8s cluster (rancher lauched), we hope to check k8s status using kubectl cmd. The config file provided on UI actually connects to rancher server. But we need one to connect the rancher launched apiserver container. How can we achive this?

There is an issue for this (and workarounds): https://github.com/rancher/rancher/issues/13698

1 Like