# Rancher and Kubernetes

**URL:** <https://forums.suse.com/t/rancher-and-kubernetes/7628>\
**Category:** Rancher 1.x\
**Created:** [October 20, 2017, 6:09am UTC](https://forums.suse.com/t/rancher-and-kubernetes/7628 "2017-10-20T06:09:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sibh8](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@sibh8](https://forums.suse.com/u/sibh8)\
**Post date:** [October 20, 2017, 6:09am UTC](https://forums.suse.com/t/rancher-and-kubernetes/7628/1 "2017-10-20T06:09:24Z")

</div>

Hello,

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

Thanks

---

<div class="post-metadata">

**Author:** ![shubbard343](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@shubbard343](https://forums.suse.com/u/shubbard343)\
**Post date:** [October 20, 2017, 10:12pm UTC](https://forums.suse.com/t/rancher-and-kubernetes/7628/2 "2017-10-20T22:12:36Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![sibh8](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@sibh8](https://forums.suse.com/u/sibh8)\
**Post date:** [October 22, 2017, 12:10pm UTC](https://forums.suse.com/t/rancher-and-kubernetes/7628/4 "2017-10-22T12:10:23Z")

</div>

Hello,

Thanks for the response. This has now worked
