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
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!
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.
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