[docs][kubernetes][minor] Update K8s examples in doce (#13129)

This commit is contained in:
Dmitri Gekhtman
2020-12-31 14:25:38 -08:00
committed by GitHub
parent fece8db70d
commit 4ca64549e2
2 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -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"
+3 -3
View File
@@ -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: