mirror of
https://github.com/vale981/ray
synced 2025-03-09 21:06:39 -04:00
74 lines
2.4 KiB
YAML
74 lines
2.4 KiB
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-sample
|
|
spec:
|
|
# An unique identifier for the head node and workers of this cluster.
|
|
clusterName: raycluster-sample
|
|
images:
|
|
defaultImage: rayproject/autoscaler
|
|
imagePullPolicy: "Always"
|
|
|
|
extensions:
|
|
# the pod replicas in this group typed worker
|
|
- replicas: 1
|
|
# logical group name, for this called small-group, also can be functional like hello-group
|
|
groupName: small-group
|
|
# pod type
|
|
type: worker
|
|
|
|
# custom labels. NOTE: do not define custom labels start with `raycluster.`, they may be used in controller.
|
|
# Refer to https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
|
|
labels:
|
|
raycluster.group.name: small-group
|
|
|
|
# Command to start ray
|
|
command: ray stop; ulimit -n 65536; ray start --object-manager-port=8076
|
|
|
|
# resource requirements
|
|
# Refer to https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
|
|
resources:
|
|
limits:
|
|
cpu: 1000m
|
|
memory: 2Gi
|
|
ephemeral-storage: 2Gi
|
|
requests:
|
|
cpu: 1000m
|
|
memory: 2Gi
|
|
ephemeral-storage: 2Gi
|
|
|
|
# head service suffix: {namespace}.svc , follows Kubernetes standard
|
|
headServiceSuffix: "ray-operator.svc"
|
|
|
|
# the pod replicas in this group typed head
|
|
- replicas: 1
|
|
# logical group name, also can be functional
|
|
groupName: head-group
|
|
# pod type
|
|
type: head
|
|
|
|
# custom labels. NOTE: do not define custom labels start with `raycluster.`, they may be used in controller.
|
|
# Refer to https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
|
|
labels:
|
|
raycluster.group.name: head-group
|
|
|
|
# Command to start ray
|
|
command: ray stop; ulimit -n 65536; ray start --object-manager-port=8076
|
|
|
|
# resource requirements
|
|
# Refer to https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
|
|
resources:
|
|
limits:
|
|
cpu: 2000m
|
|
memory: 4Gi
|
|
ephemeral-storage: 4Gi
|
|
requests:
|
|
cpu: 2000m
|
|
memory: 4Gi
|
|
ephemeral-storage: 4Gi
|
|
|
|
# head service suffix: {namespace}.svc , follows Kubernetes standard
|
|
headServiceSuffix: "ray-operator.svc"
|