Heshan Andrews
Heshan Andrews

Reputation: 75

Can I use docker compose mysql + spring boot container on kubernetes?

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?

Upvotes: 0

Views: 182

Answers (1)

Rezwan
Rezwan

Reputation: 1235

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.

Upvotes: 2

Related Questions