News for hackers. Stuff that matters.
Re:I host this blog from my garage by btilly on Tuesday December 07, 2021 @02:32PM (#29477139)
Sorry, but we did all of that 20 years ago, and those approaches remain a lot simpler for basic use cases. You know, like serving 100k dynamic pages/hour database backed site. (That's what I was doing 20 years ago, how about you?)

See https://pythonspeed.com/articles/dont-need-kubernetes/ for some of the reasons NOT to use Kubernetes for this.

With, of course, a giant exception for two cases. The first is, as with the author, if the purpose of using Kubernetes is to learn how to use Kubernetes. The second is if you are aware of the tradeoffs and have specific reason to say that Kubernetes really is appropriate for your circumstance.

And if you think that Kubernetes is always the right approach, then you clearly are NOT aware of the tradeoffs.

Re:I host this blog from my garage by throwaway894345 on Tuesday December 07, 2021 @05:32PM (#29479077)
> Sorry, but we did all of that 20 years ago, and those approaches remain a lot simpler for basic use cases.

Yeah, we did, and they were complicated then and they're complicated now. The difference is some of us have decades of experience which make them feel simpler.

> And if you think that Kubernetes is always the right approach, then you clearly are NOT aware of the tradeoffs.

I was very explicit that Kubernetes isn't always the right approach. Allow me to quote myself: "If all you're ever doing is hosting a static blog, then yeah, you don't need something like Kubernetes". My point is that things like Kubernetes and Docker Compose are increasingly viable defaults for nontrivial cases. In other words, if you know you're going to have a bunch of services to manage, it's a lot easier for most people (i.e., those lacking decades of experience) to manage them with the aforementioned tools rather than trying to build an equivalent "platform" from scratch.

Re:I host this blog from my garage by btilly on Tuesday December 07, 2021 @05:52PM (#29479223)
Kubernetes wraps several layers of abstraction around the old way of doing things. There is no world in which the operation of the site is in any way clarified by involving Kubernetes. Kubernetes also adds performance overhead. There are things which are easier with Kubernetes. But only after you've climbed a long learning curve.

From what I've seen, even people without "decades of experiment" find the non-abstracted system easier to understand and reason about than the Kubernetes version. And the difference in ease is dramatic.

Examples where it makes sense include:

1. You need to deploy multiple independent systems with similar configurations. (Even then, consider ansible.)

2. You have to deploy different clusters of connected systems with related, but different, components.

3. You need to scale up and down what needs to be deployed. (Except don't try to use autoscale. That only works in marketing blurbs.)

4. Somebody else has set it up and you never need to actually understand it. (Good luck if you need to debug.)

But there is no reason to introduce Kubernetes because you need a database, a few webservers, front end proxy, failover, etc. And if you are using Kubernetes for that, odds are that you'll save yourself a world of headaches (and potential security holes!) by migrating away. No matter how much the "chief architect" may claim otherwise. I've seen how this plays out in practice.

Re:I host this blog from my garage by throwaway894345 on Wednesday December 08, 2021 @10:00AM (#29485505)
I think we have starkly different experiences then. I’ve been part of several orgs that started out doing it “the old way”, and anything to do with servers was so difficult that it was relegated to a team of experts. Then we introduced Kubernetes and while there was a learning curve, the development teams were able to own significantly more of the infrastructure with the infrastructure experts owning management of the core and a few convenience operators. Stories like this are echoed all over—that’s virtually the DevOps narrative—container orchestration enables development teams to own their own infrastructure with a dedicated team maintaining a common platform.

Moreover, for single-server use cases, Docker Compose eschews a lot of the complexity that Kubernetes brings for HA purposes while also masking over much of the complexity of managing bare servers.

The Kubernetes (and other container orchestrators) learning curve is substantial, but it masks a lot of incidental complexity that operators would otherwise need to understand to do it themselves.

Re:I host this blog from my garage by btilly on Thursday December 09, 2021 @04:21PM (#29503114)
The fact that you're talking about organizations large enough to have multiple development teams which serve their stuff separately puts you squarely in my case #2.

A 50 person company with <10 developers has very different problems.

Re:I host this blog from my garage by browningstreet on Wednesday December 08, 2021 @12:46AM (#29481628)
No, but the operation of Kubernetes is clarified by actually running Kubernetes. Hacking.. or “homelab”-ing is doing it for the pleasure or the edification.