KubeRay operator
Deploy the KubeRay operator with the Helm chart repository in ray
namespace. If you don't have helm
on your local computer, install helm first.
values.yaml
to overwrite default settings, for example, update the requests
section:
If it's the initial installation, install both CRDs and KubeRay operator.
If it's an upgrade to the existing installation, run the following command to upgrade:
Confirm that the operator is running:
A kuberay-operator-
pod should be listed like shown below:
To allow other namespaces to create Ray resources, run kubectl edit clusterrole kubeless-user
and add the below section:
- apiGroups:
- ray.io
resources:
- rayjobs
- rayservices
- rayclusters
verbs:
- list
- watch
- get
- update
- delete
To clean up KubeRay Operator, uninstall the helm chart:
It might take several seconds for the KubeRay Operator pod to terminate. Confirm that the pods are gone by running: