Hi,
I am facing an issue while setting up the Redis Cluster on the Kubernetes cluster (ipv6 based). In spite of passing "::" for bind-address, the Redis server binds to 0.0.0.0
I am looking for a solution, to bind the Redis server in Redis-cluster to "::", so pods outside the Redis cluster can connect.
How I am doing?
- To pass bind-address, the values.yaml passed to helm charts have following settings.
configmap: |-
bind ::
protected-mode no
port 6379
But once pods are up, I found the Redis server is bound to 0.0.0.0, though the vaules in redis.conf are set properly through helm charts.
$ k exec -it xxxxxxx-redis-cluster-0 -- bash
I have no name! @ xxxx-redis-cluster-0:/$ ps -ax
PID TTY STAT TIME COMMAND
10902 pts/0 Ss+ 0:00 bash
24157 pts/1 Ss 0:00 bash
24170 pts/1 R+ 0:00 ps -ax
$ k describe cm xxxxxx-redis-cluster-default | grep bind
# By default, if no "bind" configuration directive is specified, Redis listens
# the "bind" configuration directive, followed by one or more IP addresses.
# bind 192.168.1.100 10.0.0.1
# bind 127.0.0.1 ::1
# internet, binding to all the interfaces is dangerous and will expose the
# following bind directive, that will force Redis to listen only into
# bind :: 0.0.0.0
# 1) The server is not binding explicitly to a set of addresses using the
# "bind" directive.
# are explicitly listed using the "bind" directive.
bind ::
Any solution/help is appreciable.
Best Regards,
Kunal