My app is deployed with a yaml file and doctl, and it contains a managed database. In managed database I should be able to choose the size and the tier as said here However, I did not see any option to specify the database tier in the doc page. My app is small and basic tier is enough. How should I specify the database tier in the yaml file?
databases: -name engine version production cluster_name db_name db_user
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!
Heya, @matthewhuang
I believe there isn’t a direct field to specify the database tier (e.g., Basic, Pro) within the YAML file.
To utilize a managed database with a specific tier, you should first create the database separately via the DigitalOcean Control Panel, where you can select the desired size and tier. Once the database is created, you can reference it in your app’s YAML spec using the cluster_name
field to associate your app with the existing managed database.
For small applications, if the Basic tier suffices, you can create a development (dev) database directly within the app spec. However, dev databases are limited in scalability and are not intended for production use. They also lack options to specify size or tier.
Hope that this helps!
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.