News for hackers. Stuff that matters.
Re:Don't use Kubernetes yet by staticassertion on Sunday June 19, 2022 @02:18AM (#31796647)
Does k8s not just use dns? That's what Hashicorp Nomad uses - DNS via Consul.
Re:Don't use Kubernetes yet by qbasic_forever on Sunday June 19, 2022 @03:15AM (#31796997)
It does, every pod, service, etc. in the cluster has a fully qualified DNS name resolved by a DNS server in the cluster.
Re:Don't use Kubernetes yet by grogenaut on Sunday June 19, 2022 @03:00PM (#31802289)
My point is that people come up with very powerful and complex routing systems using kube and conflate it with with "discovery". We did this at my work. Consul was the "only solution" that would "work" for us (pre kube). Consul is a type of discovery, but people also lop in service mesh features which are well beyond "what IP address do I need to send packets at".

4 years later consul is gone in aws for us replaced by this simple dns/alb scheme. We haven't really needed all the features of advanced discovery.

The key in general to "discovery" seems to be load balancers and dns in our approach (service protect thyself vs well behaved clients). Easy to use LBs on aws is very powerful feature. We don't have that on our on prem and it changes how we approach things. There discovery is harder.

Re:Don't use Kubernetes yet by KronisLV on Sunday June 19, 2022 @04:35AM (#31797443)
Yep, K8s has managed DNS, much like Nomad allows you to have.

But if that's a feature that you want, you can even use Docker Swarm which I mentioned in another comment here, which basically gives you the same thing, so that you can reference other containers by their names.

Of course, it's a bit simpler than Nomad, so if you're already using Nomad then there's no point in moving away from it, though this still illustrates that there are plenty of simpler options than K8s!