<p><br>
I have a website running on docker-compose. Everything works well I am using Jenkins as CI and when I committed code Jenkins manages docker-compose file to running app. <br>
I want to try Kubernetes and want to learn it. I did not find a good solution for docker-compose files. I saw Kompose but it did not works for me. Then I saw "Compose on Kubernetes" and find out this is only working for enterprise version. <br>
How do you transfer your containers to the Kubernetes? Especially docker-compose files. And how can I solve Kompose error? As you see in below this text, Kompose reject my project.</p>

<pre><code>WARN Volume mount on the host "/home/fatih/Desktop/Django-DevOps-personal-website/pgdata" isn't supported - ignoring path on the host 
WARN Volume mount on the host "/home/fatih/Desktop/Django-DevOps-personal-website/config/nginx" isn't supported - ignoring path on the host 
WARN Volume mount on the host "/home/fatih/Desktop/Django-DevOps-personal-website/fatihkocnet" isn't supported - ignoring path on the host 
INFO Kubernetes file "db-service.yaml" created    
INFO Kubernetes file "nginx-ssl-proxy-service.yaml" created 
INFO Kubernetes file "web-service.yaml" created   
INFO Kubernetes file "db-deployment.yaml" created 
INFO Kubernetes file "db-claim0-persistentvolumeclaim.yaml" created 
INFO Kubernetes file "nginx-ssl-proxy-deployment.yaml" created 
INFO Kubernetes file "nginx-ssl-proxy-claim0-persistentvolumeclaim.yaml" created 
INFO Kubernetes file "nginx-ssl-proxy-claim1-persistentvolumeclaim.yaml" created 
INFO Kubernetes file "web-deployment.yaml" created 
INFO Kubernetes file "web-claim0-persistentvolumeclaim.yaml" created 
</code></pre>

<p>You can check my source code from <a href="https://github.com/fatihkc/Django-DevOps-personal-website" rel="nofollow noreferrer">here.</a> </p>

Fatih
<p>You have a few options. The warnings from Kompose are <a href="https://github.com/kubernetes/kompose/issues/855" rel="nofollow noreferrer">because it doesn't currently support storing data on the host</a> so you could look to address that. You could use <a href="https://kubernetes.io/docs/concepts/storage/volumes/#emptydir" rel="nofollow noreferrer"><code>emptyDir</code> as a way of doing temporary storage</a> or look at <a href="https://kubernetes.io/docs/concepts/storage/volumes/#hostpath" rel="nofollow noreferrer">configuring <code>hostPath</code></a> but it depends what your target environment is. If you are looking to deploy to a cloud provider then you'd be best to look at options for their supported storage.</p>

<p>Another option would be to create a helm chart that uses the <a href="https://github.com/helm/charts/" rel="nofollow noreferrer">official helm chart</a> for postgres and maybe also for nginx, if you don't decide to switch to nginx-ingress. This could make sense if you're looking to use kubernetes for the long-term and want a deployment descriptor that takes advantage of kubernetes features and can be deployed on different types of kubernetes cluster.</p>

<p>If you are just looking to have a quick way to run things on a single machine then, as @<a href="https://stackoverflow.com/users/559504/johnharris85">johnharris85</a> points out, <a href="https://github.com/docker/compose-on-kubernetes" rel="nofollow noreferrer">Compose on Kubernetes</a> would make a lot of sense for you.</p>
