-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
36,610 additions
and
17,283 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,117 +1,5 @@ | ||
# KubeRay Operator | ||
# Ray Helm chart and CRDs | ||
|
||
This document provides instructions to install both CRDs (RayCluster, RayJob, RayService) and KubeRay operator with a Helm chart. | ||
This folder contains the Ray Helm chart necessary for the deployment of the Syntho application, under `chart/` and a separate folder for the necessary CRDs, under `crds/`. | ||
|
||
## Helm | ||
|
||
Make sure the version of Helm is v3+. Currently, [existing CI tests](https://github.com/ray-project/kuberay/blob/master/.github/workflows/helm-lint.yaml) are based on Helm v3.4.1 and v3.9.4. | ||
|
||
```sh | ||
helm version | ||
``` | ||
|
||
## Install CRDs and KubeRay operator | ||
|
||
* Install a stable version via Helm repository (only supports KubeRay v0.4.0+) | ||
```sh | ||
helm repo add kuberay https://ray-project.github.io/kuberay-helm/ | ||
|
||
# Install both CRDs and KubeRay operator v0.4.0. | ||
helm install kuberay-operator kuberay/kuberay-operator --version 0.4.0 | ||
|
||
# Check the KubeRay operator Pod in `default` namespace | ||
kubectl get pods | ||
# NAME READY STATUS RESTARTS AGE | ||
# kuberay-operator-6fcbb94f64-mbfnr 1/1 Running 0 17s | ||
``` | ||
|
||
* Install the nightly version | ||
```sh | ||
# Step1: Clone KubeRay repository | ||
|
||
# Step2: Move to `helm-chart/kuberay-operator` | ||
|
||
# Step3: Install KubeRay operator | ||
helm install kuberay-operator . | ||
``` | ||
|
||
* Install KubeRay operator without installing CRDs | ||
* In some cases, the installation of the CRDs and the installation of the operator may require different levels of admin permissions, so these two installations could be handled as different steps by different roles. | ||
* Use Helm's built-in `--skip-crds` flag to install the operator only. See [this document](https://helm.sh/docs/chart_best_practices/custom_resource_definitions/) for more details. | ||
```sh | ||
# Step 1: Install CRDs only (for cluster admin) | ||
kubectl create -k "github.com/ray-project/kuberay/manifests/cluster-scope-resources?ref=v0.4.0&timeout=90s" | ||
|
||
# Step 2: Install KubeRay operator only. (for developer) | ||
helm install kuberay-operator kuberay/kuberay-operator --version 0.4.0 --skip-crds | ||
``` | ||
|
||
## List the chart | ||
|
||
To list the `my-release` deployment: | ||
|
||
```sh | ||
helm ls | ||
# NAME NAMESPACE REVISION UPDATED STATUS CHART # APP VERSION | ||
# kuberay-operator default 1 2022-12-02 02:13:37.514445313 +0000 UTC deployed kuberay-operator-0.4.0 1.0 | ||
``` | ||
|
||
## Uninstall the Chart | ||
|
||
```sh | ||
# Uninstall the `kuberay-operator` release | ||
helm uninstall kuberay-operator | ||
|
||
# The operator Pod should be removed. | ||
kubectl get pods | ||
# No resources found in default namespace. | ||
``` | ||
|
||
## Working with Argo CD | ||
|
||
If you are using [Argo CD](https://argoproj.github.io) to manage the operator, you will encounter the issue which complains the CRDs too long. Same with [this issue](https://github.com/prometheus-operator/prometheus-operator/issues/4439). | ||
The recommended solution is to split the operator into two Argo apps, such as: | ||
|
||
* The first app just for installing the CRDs with `Replace=true` directly, snippet: | ||
|
||
```yaml | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: ray-operator-crds | ||
spec: | ||
project: default | ||
source: | ||
repoURL: https://github.com/ray-project/kuberay | ||
targetRevision: v0.4.0 | ||
path: helm-chart/kuberay-operator/crds | ||
destination: | ||
server: https://kubernetes.default.svc | ||
syncPolicy: | ||
syncOptions: | ||
- Replace=true | ||
... | ||
``` | ||
|
||
* The second app that installs the Helm chart with `skipCrds=true` (new feature in Argo CD 2.3.0), snippet: | ||
|
||
```yaml | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: ray-operator | ||
spec: | ||
source: | ||
repoURL: https://github.com/ray-project/kuberay | ||
targetRevision: v0.4.0 | ||
path: helm-chart/kuberay-operator | ||
helm: | ||
skipCrds: true | ||
destination: | ||
server: https://kubernetes.default.svc | ||
namespace: ray-operator | ||
syncPolicy: | ||
syncOptions: | ||
- CreateNamespace=true | ||
... | ||
``` | ||
Check the README in the `charts/` folder for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
dependencies: | ||
- name: kuberay-operator | ||
repository: https://ray-project.github.io/kuberay-helm/ | ||
version: 1.2.2 | ||
- name: ray-cluster | ||
repository: https://ray-project.github.io/kuberay-helm/ | ||
version: 1.2.2 | ||
digest: sha256:c5873ef78fcfdcbba500c18b01e270caff261783e6ee61e7f4be9181db0a42ce | ||
generated: "2024-12-05T15:56:36.670714398+01:00" |
16 changes: 9 additions & 7 deletions
16
helm/ray/Chart.yaml → helm/ray/chart/Chart.yaml
100755 → 100644
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
apiVersion: v2 | ||
description: A Helm chart for Kubernetes ray operator and cluster | ||
name: ray-cluster | ||
version: 1.13.0 | ||
name: ray | ||
version: 1.14.0 | ||
icon: https://github.com/ray-project/ray/raw/master/doc/source/images/ray_header_logo.png | ||
type: application | ||
maintainers: | ||
- name: Syntho B.V. | ||
email: [email protected] | ||
- name: Younes Moustaghfir | ||
email: [email protected] | ||
dependencies: | ||
- name: kuberay-operator | ||
version: "1.2.2" | ||
repository: "@kuberay" | ||
- name: ray-cluster | ||
version: "1.2.2" | ||
repository: "@kuberay" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Ray Helm chart | ||
|
||
A Helm chart containing dependency charts of [Kuberay Operator](https://github.com/ray-project/kuberay/blob/master/helm-chart/kuberay-operator/README.md) and [RayCluster](https://github.com/ray-project/kuberay/blob/master/helm-chart/ray-cluster/README.md). | ||
|
||
## Requirements | ||
|
||
- Helm v3+ | ||
|
||
## Getting started | ||
|
||
Please see the [Syntho Deployment Documentation](https://docs.syntho.ai/deploy-syntho/deploy-syntho-using-kubernetes/deploy-ray-using-helm) on how to deploy the application using this Helm chart. |
Binary file not shown.
Binary file not shown.
File renamed without changes.
Oops, something went wrong.