sigs.k8s.io/kueue@v0.6.2/site/static/examples/jobs/ray-cluster-sample.yaml (about)

     1  apiVersion: ray.io/v1
     2  kind: RayCluster
     3  metadata:
     4    name: raycluster-sample
     5    namespace: default
     6    labels:
     7      kueue.x-k8s.io/queue-name: local-queue
     8  spec:
     9    headGroupSpec:
    10      rayStartParams:
    11        dashboard-host: 0.0.0.0
    12      serviceType: ClusterIP
    13      template:
    14        metadata:
    15          annotations: {}
    16        spec:
    17          affinity: {}
    18          containers:
    19          - env: []
    20            image: rayproject/ray:2.7.0
    21            imagePullPolicy: IfNotPresent
    22            name: ray-head
    23            resources:
    24              limits:
    25                cpu: "1"
    26                memory: 2G
    27              requests:
    28                cpu: "1"
    29                memory: 2G
    30            securityContext: {}
    31            volumeMounts:
    32            - mountPath: /tmp/ray
    33              name: log-volume
    34          imagePullSecrets: []
    35          nodeSelector: {}
    36          tolerations: []
    37          volumes:
    38          - emptyDir: {}
    39            name: log-volume
    40    workerGroupSpecs:
    41    - groupName: workergroup
    42      maxReplicas: 10
    43      minReplicas: 1
    44      rayStartParams: {}
    45      replicas: 4
    46      template:
    47        metadata:
    48          annotations: {}
    49        spec:
    50          affinity: {}
    51          containers:
    52          - env: []
    53            image: rayproject/ray:2.7.0
    54            imagePullPolicy: IfNotPresent
    55            name: ray-worker
    56            resources:
    57              limits:
    58                cpu: "1"
    59                memory: 1G
    60              requests:
    61                cpu: "1"
    62                memory: 1G
    63            securityContext: {}
    64            volumeMounts:
    65            - mountPath: /tmp/ray
    66              name: log-volume
    67          imagePullSecrets: []
    68          nodeSelector: {}
    69          tolerations: []
    70          volumes:
    71          - emptyDir: {}
    72            name: log-volume