Connecting Redis from same name space

I am using rancher and deploying my docker 3 helm charts to the container

  1. API
  2. Redis
  3. Redis commander
    All 3 are up and running, however I am unable to connect to redis in the commander as well as API.
    I tried with ingress host as well as container name all the time I am getting below error.

setUpConnection (R:redis:6379:0) Redis error Error: getaddrinfo ENOTFOUND redis

I have Environment variable exposed in redis commander as

- env:
value: local:redis:6379
- name: REDIS_PORT
value: “”
image: rediscommander/redis-commander:latest

Any inputs are highly appreciated.

Resolved the issue while using service name instead of the container name