From 5ef98ae78cc5485388c67f59fd11c19b5f8a2b53 Mon Sep 17 00:00:00 2001 From: davidmirror-ops Date: Fri, 10 Nov 2023 15:25:30 -0500 Subject: [PATCH] Add ClusterRole config for Ray Signed-off-by: davidmirror-ops --- rsts/deployment/plugins/k8s/index.rst | 66 ++++++++++++++++++++------- 1 file changed, 50 insertions(+), 16 deletions(-) diff --git a/rsts/deployment/plugins/k8s/index.rst b/rsts/deployment/plugins/k8s/index.rst index 7a0bd22eab..9e81351043 100644 --- a/rsts/deployment/plugins/k8s/index.rst +++ b/rsts/deployment/plugins/k8s/index.rst @@ -241,11 +241,29 @@ Spin up a cluster .. group-tab:: Helm chart - Install Flyte using the :ref:`flyte-binary helm chart `. + 1. Add the following to your values file under `configmap.inline`: + + .. code-block:: yaml + + tasks: + task-plugins: + enabled-plugins: + - container + - sidecar + - K8S-ARRAY + - spark + - ray + default-for-task-types: + - container: container + - container_array: K8S-ARRAY + - spark: spark + - ray: ray + + 2. Install the :ref:`flyte-binary Helm chart `. .. group-tab:: Flyte core - If you hae installed Flyte using the `flyte-core helm chart + If you have installed Flyte using the `flyte-core Helm chart `__, please ensure: * You have the correct kubeconfig and have selected the correct Kubernetes context. @@ -534,22 +552,38 @@ Specify plugin configuration .. group-tab:: Flyte binary - To specify the plugin when using the Helm chart, edit the relevant YAML file. + 1. Make sure that your Helm values file includes the following configuration: .. code-block:: yaml - :emphasize-lines: 7,11 - - tasks: - task-plugins: - enabled-plugins: - - container - - sidecar - - k8s-array - - ray - default-for-task-types: - - container: container - - container_array: k8s-array - - ray: ray + + configuration: + inline: + tasks: + task-plugins: + enabled-plugins: + - container + - sidecar + - k8s-array + - ray + default-for-task-types: + - container: container + - container_array: k8s-array + - ray: ray + + rbac: + extraRules: + - apiGroups: + - "ray.io" + resources: + - rayjob + verbs: + - create + - get + - list + - patch + - update + + 2. Run a ``helm upgrade`` operation .. group-tab:: Flyte core