[Clusters] Add kubernetes library install step to documentation

Hello,

I am using ray up command by following documentation (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

1 Like

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?

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

Yes, I can do that @sven1977 .

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#
This method does not impose any requirements on the local Python environment to launch a Ray cluster.

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

1 Like