I have a Postgres database on digitalocean. I am able to connect to it from my pod in Kubernetes. However, when I try to connect to it using pgadmin, or sqlectron, I get connection timeouts.
Error invoking remote method 'DB_CONNECT': Error: connect ETIMEDOUT
The logs show that it connects, then times out. Please what am I missing?
I have added my ip address to the trusted sources for the database.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
It sounds like you might have a dynamic IP address, I could suggest verifying that your IP has not changed by visiting a website like https://ifconfig.io/ for example.
If your IP has changed, I could suggest adding the new one to the trusted sources and then trying again.
If your IP is still the same I could suggest a few more things:
telnet for example:telnet your_database_url 25061
telnet works, try connecting with psql to verify that it is not a problem with the SQL client that you are usinghttps://marketplace.digitalocean.com/apps/openvpn-access-server
Let me know how it goes!
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.