0

Is it possible to use docker-compose MySQL + spring boot container on Kubernetes instead of creating two pods for MySQL and spring application? If so how?

1
  • on Kuberneter pod is the minimal unit that can exists. So no container or docker-compose directly on Kubernates. Commented Dec 3, 2020 at 12:09

1 Answer 1

2

Yes, Its possible. You can create a tightly coupled pod with one container which contains MySQL and spring boot application in it, Or you can run two separate containers in single pod as Sidecar.

If you have docker-compose file, just convert it into kubernetes manifest file using Kompose

Once your docker-compose file is converted into k8 yaml manifest. you can deploy it easily.

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

1 Comment

Thank you very much @Rezwan, it was really helpful, went with Kompose.

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.