Reputation: 75
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
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