From 1060332ce720a0a1601f18254645fd1381215dd0 Mon Sep 17 00:00:00 2001 From: Robert Nishihara Date: Sun, 27 Jan 2019 17:15:04 -0800 Subject: [PATCH] Small improvement to kubernetes config files. --- kubernetes/head.yaml | 2 +- kubernetes/submit.yaml | 2 +- kubernetes/worker.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kubernetes/head.yaml b/kubernetes/head.yaml index 7274f01b7b5b..f347ec0e841c 100644 --- a/kubernetes/head.yaml +++ b/kubernetes/head.yaml @@ -40,7 +40,7 @@ spec: - name: ray-head image: rayproject/examples command: [ "/bin/bash", "-c", "--" ] - args: ["ray start --head --redis-port=6379 --redis-shard-ports=6380,6381 --object-manager-port=12345 --node-manager-port=12346 --node-ip-address=$MY_POD_IP && while true; do sleep 30; done;"] + args: ["ray start --head --redis-port=6379 --redis-shard-ports=6380,6381 --object-manager-port=12345 --node-manager-port=12346 --node-ip-address=$MY_POD_IP --block"] ports: - containerPort: 6379 - containerPort: 6380 diff --git a/kubernetes/submit.yaml b/kubernetes/submit.yaml index 76e5718c3bdf..e0ed3446b761 100644 --- a/kubernetes/submit.yaml +++ b/kubernetes/submit.yaml @@ -77,7 +77,7 @@ spec: - name: ray-worker image: rayproject/examples command: ["/bin/bash", "-c", "--"] - args: ["ray start --node-ip-address=$MY_POD_IP --redis-address=$(python -c 'import socket;import sys; sys.stdout.write(socket.gethostbyname(\"ray-head\"));sys.stdout.flush()'):6379 --object-manager-port=12345 --node-manager-port=12346 && while true; do sleep 30; done;"] + args: ["ray start --node-ip-address=$MY_POD_IP --redis-address=$(python -c 'import socket;import sys; sys.stdout.write(socket.gethostbyname(\"ray-head\"));sys.stdout.flush()'):6379 --object-manager-port=12345 --node-manager-port=12346 --block"] ports: - containerPort: 12345 - containerPort: 12346 diff --git a/kubernetes/worker.yaml b/kubernetes/worker.yaml index cebf6d9b9742..09035a9e36e5 100644 --- a/kubernetes/worker.yaml +++ b/kubernetes/worker.yaml @@ -16,7 +16,7 @@ spec: - name: ray-worker image: rayproject/examples command: ["/bin/bash", "-c", "--"] - args: ["ray start --node-ip-address=$MY_POD_IP --redis-address=$(python -c 'import socket;import sys; sys.stdout.write(socket.gethostbyname(\"ray-head\"));sys.stdout.flush()'):6379 --object-manager-port=12345 --node-manager-port=12346 && while true; do sleep 30; done;"] + args: ["ray start --node-ip-address=$MY_POD_IP --redis-address=$(python -c 'import socket;import sys; sys.stdout.write(socket.gethostbyname(\"ray-head\"));sys.stdout.flush()'):6379 --object-manager-port=12345 --node-manager-port=12346 --block"] ports: - containerPort: 12345 - containerPort: 12346