<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>

<p>I eventually settled on using helm (<a href="https://helm.sh/" rel="nofollow">https://helm.sh/</a>) and installed redis-cluster using <code>helm install redis-cluster</code>.</p>

<p>I can connect to the redis cluster using the cluster_ip (not external ip) in kubernetes and this satisfies my security requirement. redis sentinel works out of the box with this approach.</p>
