Created
June 2, 2023 22:34
-
-
Save scottsun94/da4afda045d6e1cc32f9ccd6c33281c2 to your computer and use it in GitHub Desktop.
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 example config does not specify resource requests or limits. | |
# For examples with more realistic resource configuration, see | |
# ray-cluster.complete.large.yaml and | |
# ray-cluster.autoscaler.large.yaml. | |
apiVersion: ray.io/v1alpha1 | |
kind: RayCluster | |
metadata: | |
labels: | |
controller-tools.k8s.io: "1.0" | |
# An unique identifier for the head node and workers of this cluster. | |
name: raycluster-mini | |
spec: | |
rayVersion: '2.4.0' # should match the Ray version in the image of the containers | |
# Ray head pod template | |
headGroupSpec: | |
# The `rayStartParams` are used to configure the `ray start` command. | |
# See https://github.com/ray-project/kuberay/blob/master/docs/guidance/rayStartParams.md for the default settings of `rayStartParams` in KubeRay. | |
# See https://docs.ray.io/en/latest/cluster/cli.html#ray-start for all available options in `rayStartParams`. | |
rayStartParams: | |
include-dashboard: "False" | |
dashboard-host: '0.0.0.0' | |
#pod template | |
template: | |
spec: | |
containers: | |
- name: ray-head | |
image: rayproject/ray:2.4.0 | |
resources: | |
limits: | |
cpu: 1 | |
memory: 2Gi | |
requests: | |
cpu: 500m | |
memory: 2Gi | |
env: | |
# RAY_LOG_TO_STDERR controls whether to redirect logs to stderr of the pods | |
- name: RAY_LOG_TO_STDERR | |
value: 1 | |
ports: | |
- containerPort: 6379 | |
name: gcs-server | |
- containerPort: 8265 # Ray dashboard | |
name: dashboard | |
- containerPort: 10001 | |
name: client | |
# Ray worker pod template | |
workerGroupSpecs: | |
# the pod replicas in this group typed worker | |
- replicas: 3 | |
minReplicas: 1 | |
maxReplicas: 10 | |
# logical group name, for this called small-group, also can be functional | |
groupName: small-group | |
# The `rayStartParams` are used to configure the `ray start` command. | |
# See https://github.com/ray-project/kuberay/blob/master/docs/guidance/rayStartParams.md for the default settings of `rayStartParams` in KubeRay. | |
# See https://docs.ray.io/en/latest/cluster/cli.html#ray-start for all available options in `rayStartParams`. | |
rayStartParams: {} | |
#pod template | |
template: | |
spec: | |
containers: | |
- name: ray-worker # must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc' | |
image: rayproject/ray:2.4.0 | |
resources: | |
limits: | |
cpu: 1 | |
memory: 2Gi | |
requests: | |
cpu: 500m | |
memory: 2Gi | |
env: | |
# RAY_LOG_TO_STDERR controls whether to redirect logs to stderr of the pods | |
- name: RAY_LOG_TO_STDERR | |
value: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment