change kubernetes examples to use Deployment#3909
Conversation
|
@rongou thanks a lot for the fixes! I'll try it out. |
|
Test PASSed. |
|
Thanks a lot @rongou! This seems to work for me. Note that I had to make a small change to the example. We start a redis server on the head node. Then we try to connect to it by doing import redis
import socket
redis.StrictRedis(host=socket.gethostbyname("ray-head"), port=6379)
The attempt to connect to Redis succeeds when done from a node other than the one that Redis is on, but it fails when done from the same node that Redis is on. That's why I switched to using Later on it may make sense to simply start all of the Redis servers on a different collection of nodes. |
|
Test FAILed. |
What do these changes do?
Change the kubernetes examples to use
Deploymentas this is now recommended overReplicationControllers.Also reduce the CPU requirements to make it easier to try this out on a development environment (
kubeadm,MicroK8setc.).