Question

Recycling pods -> changed IP addresses

Digital ocean occasionally recycles kubernetes pods without much warning thus changing the pods ip address. This causes issues for HelloFresh Canada as we have to manually update the list of whitelisted ip addresses within MongoDb everytime these ip’s changes


Submit an answer


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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
January 6, 2023

Hi there,

What I personally do is to use a managed MongoDB cluster:

https://docs.digitalocean.com/products/databases/mongodb/how-to/secure/

That way I can lock down the cluster using the trusted sources option and then add my Kubernetes cluster tag to the list. That way the Kubernetes cluster would be able to connect to the MongoDB cluster, and the cluster would be locked down for everyone else.

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up