0

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
  • 1
    I would say start by reading this docs.docker.com/samples/library/php .. once the image is ready then deploying it on the kube cluster is another story.. not difficult though Commented Dec 25, 2018 at 16:40

1 Answer 1

1

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)

Sign up to request clarification or add additional context in comments.

1 Comment

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?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.