Live data from Hacker News

Show HN: Go from Docker-Compose to Kubernetes with a simple tool

kompose.io

11–20 of 47 posts

Re: Show HN: Go from Docker-Compose to Kubernetes with a simple tool

#11
post #5
post #2

Hoping this helps with the Kubernetes learning curve. We've just started migrating and keeping track of the terminology has been tough.

Is there a reason to go from docker-compose to kubernetes?

We've been using docker-compose for dev but still used eg Salt and hand written deploys for production. We basically used docker parity between dev machines, and are now taking it into production

Re: Show HN: Go from Docker-Compose to Kubernetes with a simple tool

#12
post #8
post #2

Hoping this helps with the Kubernetes learning curve. We've just started migrating and keeping track of the terminology has been tough.

This tool kompose helped me when I did my first POC on kubernetes since it allowed me to get up and running with something without having to study all the new abstractions and terminology in kubernetes, but pretty quickly I ended up going back over the generated yml files line by line and manually changing stuff. Overall still a helpful tool since many people use Compose in development but need to eventually migrate…

I'm really happy to hear that it helped you get started with Kubernetes. This was one of the reasons we started with the project.

(I'm one of the Kompose maintainers. ;-) )

Re: Show HN: Go from Docker-Compose to Kubernetes with a simple tool

#13
post #7

Earlier quoted context omitted.

agreed, it's surprisingly hard to get your head around initially. minikube helps me personally.

I work on a team who wants to help make this easier. What are the concepts that you think are the most complex?

For me, it's mostly the number of concepts and the fact that they need to be known upfront. None of them are particularly difficult, but I've done ops for a bit and gone from manual sysadmin on bare metal to Puppet to Chef to Salt... then when we started playing with docker, there's the initial learning curve, then a slew of orchestration options to consider. I'm exhausted keeping up with devops tools.

What I want is a better way to learn hands-on or as I go. Not sure exactly what that looks like.

Re: Show HN: Go from Docker-Compose to Kubernetes with a simple tool

#14

I used this to get an idea how K8s looked when I wanted to migrate ~500 lines of docker compose YAML config to k8s. The result was sufficiently confusing that we threw it away, but it was helpful to get an idea what we were looking at, and why. We rebuilt the stack from hand, using all the files from the kompose tool as a guide/reference. Later we found that kubectl can dump yaml, I found `kubectl .... -o=yaml[ ...]`…

You can also add the `--export` flag to get kubectl to omit unique metadata that would be ignored on import; keeps your exported files a bit tidier.

Re: Show HN: Go from Docker-Compose to Kubernetes with a simple tool

#16

I used this to get an idea how K8s looked when I wanted to migrate ~500 lines of docker compose YAML config to k8s. The result was sufficiently confusing that we threw it away, but it was helpful to get an idea what we were looking at, and why. We rebuilt the stack from hand, using all the files from the kompose tool as a guide/reference. Later we found that kubectl can dump yaml, I found `kubectl .... -o=yaml[ ...]`…

Very interesting, as we're looking into doing essentially exactly the same very soon. seems even more urgent with docker just having announced free/enterprise editions. Would be very interested in a blog post / some more detail about how it went down!

more generally, what were the biggest upsides / downsides from moving to k8s?!

Re: Show HN: Go from Docker-Compose to Kubernetes with a simple tool

#17
post #16

I used this to get an idea how K8s looked when I wanted to migrate ~500 lines of docker compose YAML config to k8s. The result was sufficiently confusing that we threw it away, but it was helpful to get an idea what we were looking at, and why. We rebuilt the stack from hand, using all the files from the kompose tool as a guide/reference. Later we found that kubectl can dump yaml, I found `kubectl .... -o=yaml[ ...]`…

Very interesting, as we're looking into doing essentially exactly the same very soon. seems even more urgent with docker just having announced free/enterprise editions. Would be very interested in a blog post / some more detail about how it went down! more generally, what were the biggest upsides / downsides from moving to k8s?!

Docker always had free and enterprise versions, they've just rebranded them.

Re: Show HN: Go from Docker-Compose to Kubernetes with a simple tool

#18

I used this to get an idea how K8s looked when I wanted to migrate ~500 lines of docker compose YAML config to k8s. The result was sufficiently confusing that we threw it away, but it was helpful to get an idea what we were looking at, and why. We rebuilt the stack from hand, using all the files from the kompose tool as a guide/reference. Later we found that kubectl can dump yaml, I found `kubectl .... -o=yaml[ ...]`…

Links are supposed to be legacy and docker seems to push people into using docker networks, but pragmatically there's something nice about links that make it really fit and simple for many simple use cases where full-blown networks and service discovery are just way overkill.

Re: Show HN: Go from Docker-Compose to Kubernetes with a simple tool

#20
post #5
post #2

Hoping this helps with the Kubernetes learning curve. We've just started migrating and keeping track of the terminology has been tough.

Is there a reason to go from docker-compose to kubernetes?

Kubernetes is a more robust tool and has a great community around it. For example https://github.com/kubernetes/charts. You can launch any of these applications in one line

https://github.com/kubernetes/charts/tree/master/stable https://github.com/kubernetes/charts/tree/master/incubator

and then very easily tweak them.

Post reply on HN