2021-05-17 19:55:10 -04:00
|
|
|
# Job to submit a Ray program from a pod outside a running Ray cluster.
|
2021-02-08 18:00:34 -08:00
|
|
|
apiVersion: batch/v1
|
|
|
|
kind: Job
|
|
|
|
metadata:
|
2021-05-17 19:55:10 -04:00
|
|
|
name: ray-test-job
|
2021-02-08 18:00:34 -08:00
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
spec:
|
|
|
|
restartPolicy: Never
|
|
|
|
containers:
|
|
|
|
- name: ray
|
2021-06-01 12:12:35 -04:00
|
|
|
image: rayproject/ray:latest
|
2021-02-08 18:00:34 -08:00
|
|
|
imagePullPolicy: Always
|
2021-03-01 20:17:16 -08:00
|
|
|
command: [ "/bin/bash", "-c", "--" ]
|
2021-02-08 18:00:34 -08:00
|
|
|
args:
|
2021-03-01 20:17:16 -08:00
|
|
|
- "wget https://raw.githubusercontent.com/ray-project/ray/master/doc/kubernetes/example_scripts/job_example.py &&
|
|
|
|
python job_example.py"
|
2021-02-08 18:00:34 -08:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 100m
|
|
|
|
memory: 512Mi
|