Gateway connection to Redis in Kubernetes

Hello, I’m having persistence issues with Tyk Headless Gateway v4.3.0 and v5.0.0

Tyk Headless using tyk-headless 0.14.0 · tyk/tyk-helm
Redis Cluster redis-cluster 8.6.2 · bitnami/bitnami

On startup I get the error level=error msg="Could not set version in versionStore" error="storage: Redis is either down or was not configured" prefix=main

Previously I was seeing the error Connection to Redis failed, reconnect in 10s that about continuously but after switching from bitnami/redis to `bitnami/redis-cluster, I only see the error above on startup. Unfortunately, persistence doesn’t seem to be working. On restart of the headless gateway deployment, all configurations are lost.

Below are the logs from the gateway on from startup. I have confirmed and tested all the redis cluster endpoints.

time="May 30 14:58:07" level=info msg="Tyk API Gateway 5.0.0" prefix=main
time="May 30 14:58:07" level=warning msg="Insecure configuration allowed" config.allow_insecure_configs=true prefix=checkup
time="May 30 14:58:07" level=error msg="Could not set version in versionStore" error="storage: Redis is either down or was not configured" prefix=main
time="May 30 14:58:07" level=error msg="cannot set key in pollerCacheKey" error="storage: Redis is either down or was not configured"
time="May 30 14:58:07" level=info msg="Starting Poller" prefix=host-check-mgr
time="May 30 14:58:07" level=info msg="PIDFile location set to: /mnt/tyk-gateway/tyk.pid" prefix=main
time="May 30 14:58:07" level=warning msg="The control_api_port should be changed for production" prefix=main
time="May 30 14:58:07" level=info msg="Initialising Tyk REST API Endpoints" prefix=main
time="May 30 14:58:07" level=error msg="Connection to Redis failed, reconnect in 10s" error="storage: Redis is either down or was not configured" prefix=pub-sub
time="May 30 14:58:07" level=info msg="--> [REDIS] Creating cluster client"
time="May 30 14:58:07" level=info msg="--> Standard listener (http)" port=":8080" prefix=main
time="May 30 14:58:07" level=warning msg="Starting HTTP server on:[::]:8080" prefix=main
time="May 30 14:58:07" level=info msg="Initialising distributed rate limiter" prefix=main
time="May 30 14:58:07" level=info msg="Tyk Gateway started (5.0.0)" prefix=main
time="May 30 14:58:07" level=info msg="--> Listening on address: (open interface)" prefix=main
time="May 30 14:58:07" level=info msg="--> Listening on port: 8080" prefix=main
time="May 30 14:58:07" level=info msg="--> PID: 1" prefix=main
time="May 30 14:58:07" level=info msg="Loading policies" prefix=main
time="May 30 14:58:07" level=error msg="Couldn't unmarshal policies: EOF" prefix=policy
time="May 30 14:58:07" level=info msg="Policies found (0 total):" prefix=main
time="May 30 14:58:07" level=info msg="Detected 0 APIs" prefix=main
time="May 30 14:58:07" level=warning msg="No API Definitions found, not reloading" prefix=main
time="May 30 14:58:07" level=info msg="Starting gateway rate limiter notifications..."
time="May 30 14:58:07" level=info msg="--> [REDIS] Creating cluster client"
time="May 30 14:58:07" level=info msg="--> [REDIS] Creating cluster client"