Rancher and Kubernetes


I am a newbie to rancherised kubernetes. Please help me in understanding how I can connect to K8S cluster from rancher cli which is installed on a completely different host


Are you trying to use Kubectl from the comand line to connect to the Kubernetes cluster?

If so, in the Kubernetes environment, click the “CLI” link in the “Kubernetes” menu at the top of the page.
Click the “Generate Config” button. Take the output of that and put it onto your kubectl config file. If all goes well, when you run kubectl, you should see the response from the Kubernetes cluster.


Thanks for the response. This has now worked