Kubernetes, mySQL and files
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!
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.