Connecting to redis cluster with sentinel on kubernetes
<p>I've successfully set up a password-protected redis cluster using the guide here: </p>

<p><a href="http://kubernetes.io/v1.1/examples/redis/" rel="nofollow">http://kubernetes.io/v1.1/examples/redis/</a></p>

<p>I can connect to the sentinel just fine using <code>redis-cli</code>, but I cannot connect to the redis master/slave even though I have exposed the sentinels.</p>

<p>I'm using ruby and the following connection string.. Am I doing this wrong?</p>

<pre><code>SENTINELS = [{host: "104.122.24.897", port: 26379}]

redis = Redis.new(url: "redis://mymaster", sentinels: SENTINELS, :role =&gt; :master, password: "longasspassword", timeout: 16)
</code></pre>

<p>The error I get is:</p>

<pre><code>Error connecting to Redis on 10.64.7.33:6379 (Redis::TimeoutError) (Redis::CannotConnectError)`
</code></pre>