title: Bitnami Redis on Kubernetes Authentication Failure with Existing Secret
body: <p>I'm trying to install Redis on Kubernetes environment with <a href="https://github.com/bitnami/charts/tree/master/bitnami/redis" rel="nofollow noreferrer">Bitnami Redis HELM Chart</a>. I want to use a defined password rather than randomly generated one. But i'm getting error below when i want to connect to redis master or replicas with redis-cli.</p>
  <pre><code>I have no name!@redis-client:/$ redis-cli -h redis-master -a $REDIS_PASSWORD 
  Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
  Warning: AUTH failed
  </code></pre>
  <p>I created a Kubernetes secret like this.</p>
  <pre><code>---
  apiVersion: v1
  kind: Secret
  metadata:
    name: redis-secret
    namespace: redis
  type: Opaque
  data:
    redis-password: YWRtaW4xMjM0Cg==
  </code></pre>
  <p>And in values.yaml file i updated auth spec like below.</p>
  <pre><code>auth:
    enabled: true
    sentinel: false
    existingSecret: &quot;redis-secret&quot;
    existingSecretPasswordKey: &quot;redis-password&quot;
    usePasswordFiles: false
  </code></pre>
  <p>If i don't define <code>existingSecret</code> field and use randomly generated password then i can connect without an issue. I also tried <code>AUTH admin1234</code> after <code>Warning: AUTH failed</code> error but it didn't work either.</p>