How to make Redis work with mTLS enabled Istio cluster? How to make Redis work with mTLS enabled Istio cluster? kubernetes kubernetes

How to make Redis work with mTLS enabled Istio cluster?


According to istio documentation you have to configure redis to make it work with istio.

Similar to other services deployed in an Istio service mesh, Redis instances need to listen on 0.0.0.0. However, each Redis slave instance should announce an address that can be used by master to reach it, which cannot also be 0.0.0.0.

Use the Redis configuration parameter replica-announce-ip to announce the correct address. For example, set replica-announce-ip to the IP address of each Redis slave instance using these steps:

Pass the pod IP address through an environment variable in the env subsection of the slave StatefulSet definition:

- name: "POD_IP"  valueFrom:    fieldRef:      fieldPath: status.podIP

Also, add the following under the command subsection:

echo "" >> /opt/bitnami/redis/etc/replica.confecho "replica-announce-ip $POD_IP" >> /opt/bitnami/redis/etc/replica.conf