Created
November 6, 2023 16:07
-
-
Save kevin85421/3d676abae29ebd5677428ddbbd4c8d74 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
apiVersion: ray.io/v1 | |
kind: RayCluster | |
metadata: | |
name: raycluster-mini | |
spec: | |
rayVersion: '2.7.0' # should match the Ray version in the image of the containers | |
# Ray head pod template | |
headGroupSpec: | |
rayStartParams: {} | |
#pod template | |
template: | |
spec: | |
containers: | |
- name: ray-head | |
image: rayproject/ray:2.7.0 | |
resources: | |
limits: | |
cpu: 1 | |
memory: 2Gi | |
requests: | |
cpu: 1 | |
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: 1 | |
minReplicas: 1 | |
maxReplicas: 10 | |
groupName: small-group | |
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.7.0 | |
resources: | |
limits: | |
cpu: 1 | |
memory: 2Gi | |
requests: | |
cpu: 1 | |
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