Skip to content

Commit

Permalink
kafka-cron minor note about kompose (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
lauranooooo authored May 21, 2024
1 parent 4f18f3f commit 836c0c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions projects/kafka-cron/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ Follow the steps to install the program and run the `hello-minikube` application
Once you have done this, you will need to convert your `docker-compose.yml` files to `kubernetes` deployment files.
There is a tool, [kompose](https://kubernetes.io/docs/tasks/configure-pod-container/translate-compose-kubernetes/) which may assist you.

> **Note:** `kompose` *will not* give you perfect results, however. In particular, `kompose` will not correctly convert cases where you are using a `docker-compose` `volume` to map a configuration file into your running container. `kompose` will just create a `persistentVolumeClaim` with empty data. The best thing to do is to remove those and use a [ConfigMap] for the config file content and map that in as a volume. You'll have to do this by hand. Note that there are some `persistentVolumeClaims` for application data that are appropriate - don't remove these, only the ones that are substituted for config.
Test that your system works as it did on `docker-compose`.

Learn your way around the `kubernetes` command-line tool, `kubectl` (see the [kubectl documentation](https://kubernetes.io/docs/reference/kubectl/)).
Expand Down

0 comments on commit 836c0c6

Please sign in to comment.