# Kubectl: command not found - when run directly on host

**URL:** <https://forums.suse.com/t/kubectl-command-not-found-when-run-directly-on-host/17260>\
**Category:** SUSE Rancher Prime\
**Created:** [April 24, 2020, 1:32pm UTC](https://forums.suse.com/t/kubectl-command-not-found-when-run-directly-on-host/17260 "2020-04-24T13:32:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeterT](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@PeterT](https://forums.suse.com/u/PeterT)\
**Post date:** [April 24, 2020, 1:32pm UTC](https://forums.suse.com/t/kubectl-command-not-found-when-run-directly-on-host/17260/1 "2020-04-24T13:32:31Z")

</div>

Hi, i am very new to Rancher and Kubernetes.

I would like to look at the running pods when I am connected directly to the cluster nodes. When I try to run kubectl I get the error “kubectl: command not found”

I can run through the Rancher UI, but not on the local host.

Is this possible?

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [April 24, 2020, 2:25pm UTC](https://forums.suse.com/t/kubectl-command-not-found-when-run-directly-on-host/17260/2 "2020-04-24T14:25:19Z")

</div>

You can install it on the host yourself if you want, but neither it nor the kubeconfig file for it know where to point are put on to the node by default.

When you use the shell in the UI you’re running it on a container which has kubectl in it and the kubeconfig passed in.

---

<div class="post-metadata">

**Author:** ![PeterT](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@PeterT](https://forums.suse.com/u/PeterT)\
**Post date:** [April 27, 2020, 8:03am UTC](https://forums.suse.com/t/kubectl-command-not-found-when-run-directly-on-host/17260/3 "2020-04-27T08:03:46Z")

</div>

Ah, that make much more sense. Thank you.
