Hello everyone! Currently, I have a Kubernetes Cluster with a pool containing 3 nodes. (The default option when creating a cluster). A total cluster capacity of 150GB of disk and 6GB of memory.
I’ve installed kubectl on my machine and pushed an image to it… (A .net Core API with a mySql database)… The .NET Api is working, but right now it can’t connect to a mysql database yet, because I need to make it works… And here comes my questions:
1- I can replicate this .net API, but I obviously can’t create “copies” of the database, it must be one, being accessed by all .net copies. How can I achieve that? Do I need to create a “Volume” to this .mysql database?
2- I will need to store the uploaded files of my .net project (are basically images and .pdf, nothing else). Can I store them on this 150GB of disk in my pool, or do I need to create a separate volume to store these uploaded images and PDF?
Thank you in advance!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
The problem with volumes is that you can only attach a volume to one pod at a time. So if you have two or three instances of your .net app, they’ll have to have separate copies of your data.
Object store can be Digital ocean spaces, but it could also be S3 or Azure Blob Storage.
I spent a good 45 minutes answering this question yesterday, but the system marked it as spam :-(
But to summarise:
Hello,
you need:
some ideas:
Secrets
MySQL volume
My App Volume
MySQL Deployment
MySQL ClusterIP Service
My App Service
This manifest could give you an idea. I hope you find this information useful.