Question

How to get your kubernetes cluster to persist data to your standalone digital ocean droplet?

Posted November 14, 2020 349 views
KubernetesDigitalOcean Managed Kubernetes

I would have thought this was a rather standard configuration. We have a database on our DO droplet and would like our DO KB cluster to be able to read and persist to that.

The DO docs talk about block storage and declaring a PVC to utilise the CSI plugin, however is this storage actually being mapped back to our droplet, or how can I do that?

Any help from the community most appreciated.

James

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.

×
Submit an Answer
1 answer

If I understood correctly: Your database is running on an independent droplet, and you want to access that database from your kubernetes cluster?

If this is correct, then you just need to provide the service that’s running in K8s the credentials to access your droplet (ip address, port, username, password). I don’t think persistent volumes would make sense in this scenario.