Re:Show HN: Go from Docker-Compose to Kubernetes with a simp...
by theptip on Friday March 03, 2017 @12:25PM
(#13784404)
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 simp...
by xkarga00 on Saturday March 04, 2017 @10:18AM
(#13791195)
Export needs more work.
Re:Show HN: Go from Docker-Compose to Kubernetes with a simp...
by theptip on Monday March 06, 2017 @11:54AM
(#13803917)
Go on?
Re:Show HN: Go from Docker-Compose to Kubernetes with a simp...
by lloeki on Friday March 03, 2017 @12:56PM
(#13784679)
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 simp...
by notjack on Saturday March 04, 2017 @12:30AM
(#13789467)
If you don't use networks then all services are on the default network and can refer to each other by service name, so even without complicated full-blown networks links are superfluous.
Re:Show HN: Go from Docker-Compose to Kubernetes with a simp...
by ricw on Friday March 03, 2017 @12:34PM
(#13784475)
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?!
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[ ...]` to be super helpful, for any command you run from the tutorial or elsewhere, it'll generate you the equivalent YAML which you can commit/apply at your leisure.
I'm glad the tool existed, but idiomatic stuff in docker-compose is unidomatic in k8s (namely secret handling is completely different) which is a hurdle, and the "links" concept as used in docker-compose is essentially absent from k8s for our purposes (and, replaced wth much, much better and granular dns services and "expose"s)