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!
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.
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.docs.digitalocean.com
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!