mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 19:32:11 +08:00
[docs][kubernetes][minor] Update K8s examples in doce (#13129)
This commit is contained in:
@@ -59,8 +59,8 @@ spec:
|
||||
medium: Memory
|
||||
containers:
|
||||
- name: ray-head
|
||||
image: rayproject/autoscaler
|
||||
imagePullPolicy: Always
|
||||
image: rayproject/ray:nightly
|
||||
imagePullPolicy: IfNotPresent
|
||||
command: [ "/bin/bash", "-c", "--" ]
|
||||
args:
|
||||
- "ray start --head --node-ip-address=$MY_POD_IP --port=6379 --redis-shard-ports=6380,6381 --num-cpus=$MY_CPU_REQUEST --object-manager-port=12345 --node-manager-port=12346 --block"
|
||||
@@ -120,8 +120,8 @@ spec:
|
||||
medium: Memory
|
||||
containers:
|
||||
- name: ray-worker
|
||||
image: rayproject/autoscaler
|
||||
imagePullPolicy: Always
|
||||
image: rayproject/ray:nightly
|
||||
imagePullPolicy: IfNotPresent
|
||||
command: ["/bin/bash", "-c", "--"]
|
||||
args:
|
||||
- "ray start --node-ip-address=$MY_POD_IP --num-cpus=$MY_CPU_REQUEST --address=$RAY_HEAD_SERVICE_HOST:$RAY_HEAD_SERVICE_PORT_REDIS_PRIMARY --object-manager-port=12345 --node-manager-port=12346 --block"
|
||||
|
||||
@@ -11,11 +11,11 @@ spec:
|
||||
restartPolicy: Never
|
||||
containers:
|
||||
- name: ray-head
|
||||
image: rayproject/autoscaler
|
||||
imagePullPolicy: Always
|
||||
image: rayproject/ray:nightly
|
||||
imagePullPolicy: IfNotPresent
|
||||
command: [ "/bin/bash", "-c", "--" ]
|
||||
args:
|
||||
- "wget https://raw.githubusercontent.com/ray-project/ray/master/doc/kubernetes/example.py &&
|
||||
- "cd ~ && wget https://raw.githubusercontent.com/ray-project/ray/master/doc/kubernetes/example.py &&
|
||||
ray start --node-ip-address=$MY_POD_IP --num-cpus=0 --address=$RAY_HEAD_SERVICE_HOST:$RAY_HEAD_SERVICE_PORT_REDIS_PRIMARY --object-manager-port=12345 --node-manager-port=12346 &&
|
||||
python example.py"
|
||||
ports:
|
||||
|
||||
Reference in New Issue
Block a user