title: Unable to connect to redis cluster on kubernetes from my golang application deployed within the same cluster
body: <p>I deployed a redis cluster on Kubernetes with bitnami helm charts (<a href="https://github.com/bitnami/charts/tree/master/bitnami/redis-cluster" rel="nofollow noreferrer">https://github.com/bitnami/charts/tree/master/bitnami/redis-cluster</a>).</p>
  <p>I can successfully connect to the Redis cluster from within the Kubernetes cluster by running the below commands:</p>
  <ol>
  <li><p><code>kubectl run my-redis-release-client --rm -it --image docker.io/bitnami/redis:4.0.11-debian-9 -- bash</code></p>
  </li>
  <li><p><code>redis-cli -h redis-cluster-0.redis-cluster-headless.redis</code></p>
  </li>
  </ol>
  <p>But I am unable to connect to redis cluster from my golang application deployed within the same cluster.</p>
  <p>The redis connection string uri I used on my golang application is &quot;redis://redis-cluster-0.redis-cluster-headless.redis:6379&quot;. This is following the &quot;redis-pod-name.redis-service-name.namespace&quot; convention.</p>
  <p>NOTE: I want to be able to access the redis cluster from only within the Kubernetes cluster. I don’t want to grant external access. Please help...</p>