redis-enterprise-k8s-docs icon indicating copy to clipboard operation
redis-enterprise-k8s-docs copied to clipboard

[TLS Enabled] Failed to create redis client with endpoint of database if tls enabled

Open xwgao opened this issue 5 years ago • 4 comments

After enabling TLS and select “Require TLS for All communications” when creating database, failed to create Redis client with the endpoint shown on UI (e.g. redis-19137.redis.redis-project.svc.cluster.local:19137) and specify the proxy certificate as tls.ca in config.

xwgao avatar Aug 28 '20 14:08 xwgao

Hi @xwgao there is a known issue around FQDN in the GUI vs. K8s FQDN. Please use the following FQDN format: DB_NAME.redis-enterprise.svc.cluster.local (DB_NAME.NAMESPACE.svc.cluster.local) If you need further support, please contact [email protected]

amiramm avatar Aug 31 '20 18:08 amiramm

But the DN name specified in the proxy ca certificate is redis-enterprise-0.redis-enterprise.{NAMESPACE}.svc.cluster.local. If DNS enabled, and using the address DB_NAME.NAMESPACE.svc.cluster.local, would get the following error message:

 Host: redis-enterprise-0.redis.svc.cluster.local. is not in the cert's altnames: DNS:redis-enterprise.redis.svc.cluster.local, DNS:*.redis-enterprise.redis.svc.cluster.local

xwgao avatar Sep 01 '20 03:09 xwgao

Also, after cluster recovery, data base's endpoint may bind to another cluster node, and we need to go into the cluster to see which node is binding. So is there any guideline to specify node for db endpoint to make it not changed and bind to a specific cluster node (replicas > 1)? Thanks.

glilililili avatar Sep 02 '20 09:09 glilililili

The best way to connect is through K8s services created by the operator.

yuvallevy2 avatar Feb 20 '21 05:02 yuvallevy2