Move2Kube configuration file for custom planning

18 views
Skip to first unread message

François Macaire

unread,
Aug 15, 2024, 6:14:11 AM8/15/24
to move2kube-dev
Dear move2k...@googlegroups.com,

I am currently trying to structure my config file with a list of services (applications) and specify for each of them the directory in my personal registry of the container image I want each application to pull. My expectation was to run move2kube with that config file specified as "-f config.yaml" and get generated Deployments manifests with containers that pull their images specified in my config file, but it is not the case.

Example of what I have in my config file:
move2kube:
   services:
      app-name:

I am a bit confused on how the planning phase analyzes and reads the config file, con you help me shed some light on this?

Thank you very much in advance for your help, have a nice day!

Best regards,

François

Ashok Pon Kumar Sree Prakash

unread,
Aug 15, 2024, 6:38:32 AM8/15/24
to move2kube-dev
Hi François,
      In move2kube, the default configuration is that it tries to analyse a folder with multiple projects in some form and then transforms to artifacts required for deployment in k8s. The planning phase analyses the folder and creates a plan, and in the transform phase, depending on the services detected in the plan phase, it creates the k8s artifacts. The config file is used to auto answer questions the transform phase tends to ask.

In your case, it seems like you are trying to created Deployment artifacts for a bunch of images, is that correct? What is the source artifacts in? Do you have a Docker compose file or a bunch of folders with a bunch of Dockerfiles or any other artifact you have?

Regards,
Ashok

François Macaire

unread,
Aug 15, 2024, 7:31:07 AM8/15/24
to move2kube-dev
Hi Ashok,

Thanks for the reply! Yes , exactly, I am trying to create Deployment artifacts for a bunch of images. The source is in a java-app repository which does not contain any Docker files, but the images are defined in a pom.xml file (it's a maven project). Should move2kube detect those image registries automatically? Also, do you know if and where I can find a complete list of the questions that move2kube asks and to which I could answer in the config file?
Thank you,

Best regards,

François

Ashok Pon Kumar Sree Prakash

unread,
Aug 15, 2024, 8:07:06 AM8/15/24
to move2kube-dev
Move2Kube can automatically look at the maven files, and create Dockerfiles and their config. You can try that. But if you have a bunch of custom images, then let me circle back internally and get back.

The questions Move2Kube asks change depending on the requirements of the project under consideration. The easiest way to get the list of configs/questions is by running it on a sample project for the flows you are considering, and look at the auto generated config.

Ashok Pon Kumar Sree Prakash

unread,
Aug 15, 2024, 8:15:11 AM8/15/24
to move2kube-dev
The simplest might be to create a very simple Docker compose file like the following and it will create all the K8s files from it.

version: "3"
services:
    api:
        image: fibonacci-api:latest
    redis:
        image: redis
    web:
        image: fibonacci-web:latest

Regards,
Ashok

François Macaire

unread,
Aug 15, 2024, 8:36:48 AM8/15/24
to move2kube-dev
Thanks a lot Ashok, you were very helpful!
Have a lovely day!

François

Reply all
Reply to author
Forward
0 new messages