<p>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.</p>

<p>I am trying to transition this environment to Kubernetes deployments.</p>

<p>My current containers look like</p>

<ul>
<li>nginx</li>
<li>php-fpm</li>
<li>mariadb</li>
</ul>

<p>I found <a href="https://github.com/nexdrew/rekcod" rel="nofollow noreferrer">rekcod</a>, 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.</p>

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

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

<p>Any direction or advice would be greatly appreciated.</p>

<p>Thanks</p>

weteamsteve
<p>Your conversion from docker to kubernetes should go like this:</p>

<ul>
<li>try start your project locally using docker-compose <a href="https://docs.docker.com/compose/" rel="nofollow noreferrer">https://docs.docker.com/compose/</a></li>
<li>try to convert your docker-compose project to Kubernetes with "kompose" - <a href="https://github.com/kubernetes/kompose" rel="nofollow noreferrer">https://github.com/kubernetes/kompose</a></li>
<li>explore created kubernetes files created with step above and learn deployments, pods and services.</li>
<li>learn helm (<a href="https://helm.sh/" rel="nofollow noreferrer">https://helm.sh/</a>) as tool for managing deployments (helm - templates for kubernetes files)</li>
</ul>
