Report this

What is the reason for this report?

Hi all!,

There is any way to add a new read only node in a MySql managed database with the kubernetes autoscaler?

Seems very easy to setup an autoscaler with DigitalOcean web UI for k8, but I didn’t find any option for databases.

Is there any way for that in “kubernetes dashboard”?

If not… Should I implement a custom solution with a node that monitors the cluster, so it adds/removes read only replicas using DigitalOcean API?

By the way, I’ve tested my application and it works with several read only nodes, and multiple php nodes as well… It works even adding & remove read ddbb replicas & php nodes.

Many thanks!



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 @MassiveGreenBlueStarfish,

This sounds like a really solid setup!

Regarding your question, I don’t believe that this is available from the Kubernetes dashboard directly.

But indeed you could use doctl or the API to automate this.

Here is how you could add new replicas with doctl:

https://www.digitalocean.com/docs/apis-clis/doctl/reference/databases/replica/

And here’s how to do that via the API:

https://developers.digitalocean.com/documentation/v2/#create-a-read-only-replica

Hope that this helps! Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.