Question

How to connect to Managed Redis from Python app inside DO Kubernetes

Posted August 21, 2021 104 views
NetworkingKubernetesDigitalOcean Managed Redis

Anyone know how to connect to the Managed Redis Database from a Python app running inside DigitalOcean Kubernetes? The error I keep getting is Name or service not known.

Using:

import redis

redis.StrictRedis(host=redis_host, port=int(redis_port), password=redis_password, ssl=True)
Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!