How to connect to a Redis Server with mTLS from a pod in ServiceMesh?
Issue
- Redis client inside of the mesh which is trying to connect to Redis server outside of the OpenShift cluster.
- The connection must be mTLS.
- The following
DestinationRule
is used, but the Redis server does not receive the client's certificate:
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: dr-redis-mtls
spec:
host: redis.home.lan
trafficPolicy:
tls:
mode: MUTUAL
credentialName: secret-redis-client-certs
Environment
- Red Hat OpenShift Container Platform
- 4.8
- OpenShift ServiceMesh
- 2.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.