I have an application prepared in PHP/JS using a MySQL database. Can I convert my application and database into images executable in a Kubernetes cluster?
1 Answer
Yes. You should be able to convert your application into one docker image and your database into another docker image. Then create a Kubernetes deployment file (YAML) with two services...one being DB and the other being App with the App depending on the DB service.
See this link for a sample (though not in php)
1 Comment
Muhammad Khan
Suppose I place both the images at docker, where would the data added by users be stored / updated? Suppose I use my private server to store the data, would it automatically be configured to work with the image?