mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
21 lines
621 B
YAML
21 lines
621 B
YAML
# Job to submit a Ray program from a pod outside a running Ray cluster.
|
|
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: ray-test-job
|
|
spec:
|
|
template:
|
|
spec:
|
|
restartPolicy: Never
|
|
containers:
|
|
- name: ray
|
|
image: rayproject/ray:latest
|
|
imagePullPolicy: Always
|
|
command: [ "/bin/bash", "-c", "--" ]
|
|
args:
|
|
- "wget https://raw.githubusercontent.com/ray-project/ray/master/doc/kubernetes/example_scripts/job_example.py &&
|
|
python job_example.py"
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 512Mi
|