Using Kompose to convert files
Converting an existing Compose application into Kubernetes should not be difficult. A Compose application has a much simpler structure, whereas a Kubernetes deployment can get much more complex as Kubernetes comes with many features and capabilities.
As a use case, we will pick the application we built in Chapter 5, Connecting Microservices. We will just use the Compose file with some adaptations.
There is the option to convert a Compose application into the equivalent Kubernetes resources manually. Alternatively, a tool such as Kompose can be used. By using Kompose, we can convert our Compose application into the equivalent Kubernetes resources needed for our application.
Installing Kompose should be easy – we can just follow the instructions at https://kompose.io/installation/.
Before we jump into conversion, we need to make some adaptations to our application.
One of the things that Kompose needs is the version of our Compose...