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