# Can'tconnect external Redis server in k8s

**URL:** <https://forum.gitea.com/t/cantconnect-external-redis-server-in-k8s/8106>\
**Category:** Install/Maintain/Configure\
**Created:** [November 12, 2023, 10:20am UTC](https://forum.gitea.com/t/cantconnect-external-redis-server-in-k8s/8106 "2023-11-12T10:20:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Artichoke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/artichoke/32/4192_2.png) [@Artichoke](https://forum.gitea.com/u/Artichoke)\
**Post date:** [November 12, 2023, 10:20am UTC](https://forum.gitea.com/t/cantconnect-external-redis-server-in-k8s/8106/1 "2023-11-12T10:20:48Z")

</div>

I’m trying to connect an external passwordless redis cluster to my gitea helm installation in k8s. I have set the following config in my values.yml file:

```yaml
redis-cluster:
  enabled: false
  usePassword: false
gitea:
  redis:
    ADAPTER: redis
    HOST: redis://rfrm-gitea-redis:6379/0?pool_size=100&idle_timeout=180s

```

However, the pod just fails with the following error even though I didn’t set the redis url to be a loopback address, neither does the hostname resolve to such:

```auto
PANIC: dial tcp 127.0.0.1:6379: connect: connection refused

```

Not sure what is going on here since that’s not what I set in the config.
