From a734312dae929e97010e04c30d0edd57da1686fb Mon Sep 17 00:00:00 2001 From: Aazam Thakur Date: Thu, 10 Oct 2024 16:03:36 +0530 Subject: [PATCH] initial commit Signed-off-by: Aazam Thakur --- docs/deployment/plugins/k8s/index.rst | 59 +++++++++++++++++++++++++-- 1 file changed, 56 insertions(+), 3 deletions(-) diff --git a/docs/deployment/plugins/k8s/index.rst b/docs/deployment/plugins/k8s/index.rst index 64fbb41136..a2d9facfa0 100644 --- a/docs/deployment/plugins/k8s/index.rst +++ b/docs/deployment/plugins/k8s/index.rst @@ -431,7 +431,20 @@ Specify plugin configuration - kind: ServiceAccount name: spark namespace: "{{ namespace }}" - + rbac: + create: true + extraRules: + - apiGroups: + - "ray.io" + resources: + - rayjobs + verbs: + - create + - get + - list + - patch + - update + - delete 2. (Optional) The Spark operator supports Kubernetes ResourceQuota enforcement. If you plan to use it, set `per-Task resource requests `__ that fit into the quota for each project-namespace. A Task without resource requests or limits will be rejected by the K8s scheduler as described `in the Kubernetes docs `__. @@ -595,7 +608,20 @@ Specify plugin configuration - kind: ServiceAccount name: spark namespace: "{{ namespace }}" - + rbac: + create: true + extraRules: + - apiGroups: + - "ray.io" + resources: + - rayjobs + verbs: + - create + - get + - list + - patch + - update + - delete .. group-tab:: flyte-core .. tabs:: @@ -687,7 +713,20 @@ Specify plugin configuration - kind: ServiceAccount name: spark namespace: {{ namespace }} - + rbac: + create: true + extraRules: + - apiGroups: + - "ray.io" + resources: + - rayjobs + verbs: + - create + - get + - list + - patch + - update + - delete sparkoperator: enabled: true plugin_config: @@ -748,6 +787,20 @@ Specify plugin configuration - development: - gsa: value: "" + rbac: + create: true + extraRules: + - apiGroups: + - "ray.io" + resources: + - rayjobs + verbs: + - create + - get + - list + - patch + - update + - delete templates: # -- Template for namespaces resources - key: aa_namespace