# \[Clusters\] Add kubernetes library install step to documentation

**URL:** <https://discuss.ray.io/t/clusters-add-kubernetes-library-install-step-to-documentation/1852>\
**Category:** Kubernetes\
**Created:** [April 22, 2021, 10:05pm UTC](https://discuss.ray.io/t/clusters-add-kubernetes-library-install-step-to-documentation/1852 "2021-04-22T22:05:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![asm582](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/asm582/32/669_2.png) [@asm582](https://discuss.ray.io/u/asm582)\
**Post date:** [April 22, 2021, 10:05pm UTC](https://discuss.ray.io/t/clusters-add-kubernetes-library-install-step-to-documentation/1852/1 "2021-04-22T22:05:03Z")

</div>

Hello,

I am using ray up command by following documentation ([https://docs.ray.io/en/master/cluster/cloud.html](https://docs.ray.io/en/master/cluster/cloud.html)), I know the documentation says kubectl should be configured but it would be helpful if you can add instruction of “pip install kubernetes” in the documentation:

I get the below error

$ ray up ray/python/ray/autoscaler/kubernetes/example-full.yaml  
Cluster: example-cluster

Traceback (most recent call last):  
ModuleNotFoundError: No module named ‘kubernetes’

The cluster launches after - pip install kubernetes

---

<div class="post-metadata">

**Author:** ![sven1977](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/sven1977/32/53_2.png) [@sven1977](https://discuss.ray.io/u/sven1977)\
**Post date:** [June 3, 2021, 2:36pm UTC](https://discuss.ray.io/t/clusters-add-kubernetes-library-install-step-to-documentation/1852/2 "2021-06-03T14:36:33Z")

</div>

Hey @asm582 , sorry for the long wait. This is due to your question not being categorized. Could you make sure that for any new posts you add a category (e.g. “Ray Clusters") to your question? This helps us assign the right person to respond more quickly.

So the solution was to simply run `pip install kubernetes`?

---

<div class="post-metadata">

**Author:** ![sven1977](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/sven1977/32/53_2.png) [@sven1977](https://discuss.ray.io/u/sven1977)\
**Post date:** [June 3, 2021, 2:37pm UTC](https://discuss.ray.io/t/clusters-add-kubernetes-library-install-step-to-documentation/1852/3 "2021-06-03T14:37:55Z")

</div>

Hey @grechaw , could we check, whether this step is missing from our documentation and if yes, add it?  
Thanks 🙂

---

<div class="post-metadata">

**Author:** ![grechaw](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/grechaw/32/711_2.png) [@grechaw](https://discuss.ray.io/u/grechaw)\
**Post date:** [June 3, 2021, 3:48pm UTC](https://discuss.ray.io/t/clusters-add-kubernetes-library-install-step-to-documentation/1852/4 "2021-06-03T15:48:49Z")

</div>

Yes, I can do that @sven1977 .

---

<div class="post-metadata">

**Author:** ![Dmitri](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/dmitri/32/657_2.png) [@Dmitri](https://discuss.ray.io/u/Dmitri)\
**Post date:** [June 8, 2021, 6:29pm UTC](https://discuss.ray.io/t/clusters-add-kubernetes-library-install-step-to-documentation/1852/5 "2021-06-08T18:29:47Z")

</div>

The preferred way to launch on Kubernetes is using the Ray Operator, via the Helm chart:  
[https://docs.ray.io/en/master/cluster/kubernetes.html#](https://docs.ray.io/en/master/cluster/kubernetes.html#)  
This method does not impose any requirements on the local Python environment to launch a Ray cluster.

---

<div class="post-metadata">

**Author:** ![Dmitri](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/dmitri/32/657_2.png) [@Dmitri](https://discuss.ray.io/u/Dmitri)\
**Post date:** [June 8, 2021, 6:31pm UTC](https://discuss.ray.io/t/clusters-add-kubernetes-library-install-step-to-documentation/1852/6 "2021-06-08T18:31:24Z")

</div>

The documentation for `ray up` with k8s configs has been intentionally removed.
