-
-
Save kevin85421/0e6a8dd02c056704327d949b9ec96ef9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
ports: | |
- containerPort: 6379 | |
name: gcs-server | |
- containerPort: 8265 # Ray dashboard | |
name: dashboard | |
- containerPort: 10001 | |
name: client |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment