up:: [[Kubernetes MOC]] tags:: #note/develop # Translating a Docker Compose File to Kubernetes Manifests To create Kubernetes manifests based on an existing Docker Compose file, you can use [Kompose](https://kompose.io/). Below is a quick list of steps to describe the process. 1. Install Kompose on your local machine. 2. In your shell, go to the directory containing the `docker-compose.yaml` to be translated. 3. Run the following command. This will generate the necessary manifest files in the same directory: ```bash kompose convert ``` Once the files are generated, you can deploy your application using `kubectl apply -f <file>` as normal. I recommend always double-checking the generated manifests before deploying. There are a number of Kubernetes configs that don't translate from Docker Compose, so the manifests may be missing those. Also, if you have a specific setup for your persistent storage then there may be some tweaks needed to make the volume mounts behave correctly. ## Resources “Translate a Docker Compose File to Kubernetes Resources | Kubernetes.” Accessed November 8, 2025. [https://kubernetes.io/docs/tasks/configure-pod-container/translate-compose-kubernetes/](https://kubernetes.io/docs/tasks/configure-pod-container/translate-compose-kubernetes/). --- > [!createdat] Created at: [[2025-11-08]]