change kubernetes examples to use Deployment (#3909)

This commit is contained in:
Rong Ou
2019-01-30 17:50:37 -08:00
committed by Robert Nishihara
parent d06d9fc5d7
commit 8f6bd6cece
5 changed files with 54 additions and 44 deletions
+3 -1
View File
@@ -9,7 +9,9 @@ import time
import ray
if __name__ == "__main__":
ray.init(redis_address="{}:6379".format(socket.gethostbyname("ray-head")))
# Note that if you run this script on a non-head node, then you must
# replace "localhost" with socket.gethostbyname("ray-head").
ray.init(redis_address="localhost:6379")
# Wait for all 4 nodes to join the cluster.
while True: