Is there a good way to go from running Docker Containers to Kubernetes Deployments?

1/17/2020

I am working in a sort of remote/external environment that I don't know too much about, and have been working with containers locally in docker.

I am trying to transition this environment to Kubernetes deployments.

My current containers look like

  • nginx
  • php-fpm
  • mariadb

I found rekcod, as a way to do Docker inspect pipe that to a json file, however I am trying to find an easy way to transition that into a Kubernetes deployment with the understanding that deployments are frequently defined separately, with yamls and different configuration.

These containers were deployed with arguments or a file that I don't know much about, that is why I'm trying to use the current inspect information given to me.

Maybe the best answer is create a Kubernetes deployment yaml that somehow ingests those json sort of docker run commands and creates it that way?

Any direction or advice would be greatly appreciated.

Thanks

-- weteamsteve
containers
docker
kubernetes

1 Answer

1/19/2020

Your conversion from docker to kubernetes should go like this:

-- GintsGints
Source: StackOverflow