content/operate/kubernetes/networking/routes.md
OpenShift routes allow requests to be routed to the database or cluster API from outside the cluster. For more information about routes, see OpenShift documentation.
Before you can connect to your database from outside the cluster, you'll need the root CA certificate of the DMC Proxy server to validate the server certificate.
By default, the DMC Proxy uses a self-signed certificate. You can retrieve it from the Redis Enterprise admin console, or from the machine at /etc/opt/redislabs/proxy_cert.pem (default location), and save it as a file (for example, named "ca.pem") on the client machine.
Your database also needs TLS encryption enabled.
Select the Networking/Routes section of the OpenShift web console.
Select Create route and fill out the following fields:
Select Create.
Find the hostname for your new route. After route creation, it appears in the "Host" field.
Verify you have a DNS entry to resolve the hostname for your new route to the cluster's load balancer.
Access the database from outside the cluster using redis-cli or openssl.
To connect with redis-cli:
redis-cli -h <hostname> -p 443 --tls --cacert ./ca.pem --sni <hostname>
Replace the <hostname> value with the hostname for your new route.
To connect with openssl:
openssl s_client -connect <hostname>:443 -crlf -CAfile ./ca.pem -servername <hostname>