Live data from Hacker News

Zero-Downtime Deployments with Docker Compose – No Kubernetes Required

statusdude.com

61–70 of 81 posts

Re: Zero-Downtime Deployments with Docker Compose – No Kubernetes Required

#61

so op just recreated with sticks and tape a very basic feature what k8s does out of the box, and nobody else would be able to support his creation, because its handrolled adhoc with sparse documentation. sounds like ghetto engineering

Please try to be less snarky and dismissive in comments on HN. The guidelines make it clear we're trying for something better here, and this is meant to be a place where we can appreciate building for its own sake. https://news.ycombinator.com/newsguidelines.html

Re: Zero-Downtime Deployments with Docker Compose – No Kubernetes Required

#62

so op just recreated with sticks and tape a very basic feature what k8s does out of the box, and nobody else would be able to support his creation, because its handrolled adhoc with sparse documentation. sounds like ghetto engineering

[flagged]

Please don't reply to a bad comment with another bad comment on HN. That's how we get flamewars, which is exactly what we want to avoid. https://news.ycombinator.com/newsguidelines.html

Re: Zero-Downtime Deployments with Docker Compose – No Kubernetes Required

#63
I was surprised that there was no mention of two things:

1. Retrying a non-idempotent request on a failure type that does indicate that no action was taken is not necessarily safe.

2. It’s possible and actually fairly common to design a backend that can do a clean shutdown: it stops accepting new requests, completes old requests, then exits. I sincerely hope that Docker’s tooling is good enough for a service to unregister itself before it actually stops accepting requests, but I’m not actually very familiar with using Docker to manage HTTP routing. (I use a home grown tool that is far simpler.)

Re: Zero-Downtime Deployments with Docker Compose – No Kubernetes Required

#64
post #47

It's actually fun to see this. Running systems in a lot of different ways are just interesting. I do however get kinda sad at the hate at k8s because it's really good at what it does. I've seen so many projects bending over backwards to avoid k8s and pay large cloud bills to avoid it at all costs. (ECS and app services are hopelessly expensive and bothersome) K8s is really good, pretty easy to maintain, but a bit har…

Balanced takes like this are the only reason I still come back to HN. A shot at K3S in my homelab is in my backlog but young kids have set me back. If you have any material that touches on what you said above I'd appreciate a link. So much crap out there which is just Hello World blogspam.

KodeKloud is worth a subscription. I'm an older learner too and their courseware works well for me.

Re: Zero-Downtime Deployments with Docker Compose – No Kubernetes Required

#65
post #49
post #45

I remember a time where HN was quite critical to the complexity of k8s. After reading top comments, I can see the tide has shifted.

This or there's a lot of fresh blood ;-)

I’m one of those top commenters who used to be a K8 naysayer. I’m also definitely not young blood.

The reason my position has changed is because:

1. The tooling has gotten better for setting up and managing K8.

2. In two of the last 3 jobs where we opted for a simplified alternative to k8, we came to regret that decision within a couple of years of that decision being made. If you’re core architecture is changing on a timescale of months (not years) then you picked the wrong foundations to build from.

That all said, I still think there is a pragmatic decision that needs to be made. And if I were in the author of this articles position I probably wouldn’t have picked k8s for this task either, despite what I said above. But, and as I said in my comment dismissing this article, they are dealing with low traffic and none of the problems that lend themselves to the benefits of k8. So my criticism of this article is that it’s misleading because their problem is easy but they’re writing as if they’re having to deal With problems of scale when they’re actually not.

Re: Zero-Downtime Deployments with Docker Compose – No Kubernetes Required

#66
post #9

Earlier quoted context omitted.

The reason most people reach for Kubernetes is because it's cool. The entire infra the vast majority of Kubernetes users have could run on a single bare metal machine with a second one for redundancy. To be fair: using Kubernetes anyways builds the skill just in case you become one of the 0.1% who actually need it down the line.

Okay, I'll bite. What if your workload genuinely doesn't fit on one machine? Like load balancing or clustering 20+ nodes for LLM inference?

Your rebuttal to the parent claiming that almost nobody needs k8s is to bring up a workload almost nobody runs? It seems to me like your argument reinforces the parent's, not undermines it.

Re: Zero-Downtime Deployments with Docker Compose – No Kubernetes Required

#67
post #45

I remember a time where HN was quite critical to the complexity of k8s. After reading top comments, I can see the tide has shifted.

CTOs have found reasons to standardize on k8s and it's not just for technical reasons. This was recently discussed last week:

https://notnotp.com/notes/what-job-interviews-taught-me-abou...

https://news.ycombinator.com/item?id=48546428

Re: Zero-Downtime Deployments with Docker Compose – No Kubernetes Required

#68
post #56

It's exhausting reading about this stuff because there is inevitably a barrage of comments about "you don't need kubernetes, you can run your app out of a single vm you dumb trend chaser" in this style. Like, sorry, no, not to a point. Yes, if you have a small app without a lot of scale, and it doesn't need to be uber reliable and have very little if almost 0 downtime, okay, sure. Most use cases are like that! This i…

Because plenty of people share your POV and kinda - a little bit - behave like there was no life before k8s, I will try to address your points. >What happens if a container in the VM goes down or the app inside of it crashes, how do you recover? Docker will restart container automatically. You don't have to do anything. Docker-compose will restart after VM restart. You don't have to do anything. If a VM goes down - I…

Thanks. People are really acting like we were cavemen before kubernetes, but I guess that those people just never tried to run anything without k8s and because that's the only thing they know they are biased toward it

Re: Zero-Downtime Deployments with Docker Compose – No Kubernetes Required

#69
post #47

It's actually fun to see this. Running systems in a lot of different ways are just interesting. I do however get kinda sad at the hate at k8s because it's really good at what it does. I've seen so many projects bending over backwards to avoid k8s and pay large cloud bills to avoid it at all costs. (ECS and app services are hopelessly expensive and bothersome) K8s is really good, pretty easy to maintain, but a bit har…

I see stuff like Azure Container Applications like an easy introduction to the world of k8s. Sane defaults, looks managed but you can still get familiar with all the important concepts, and sooner or later you can move to a proper Kubernetes setup while having mastered the ideas behind it. If needed, of course.

Re: Zero-Downtime Deployments with Docker Compose – No Kubernetes Required

#70
post #31

> There's a mass delusion in the industry that you need Kubernetes to run a serious production service. You don't. At StatusDude, we serve thousands of monitoring checks per minute, run multi-region workers, and deploy multiple times a day This is pretty small scale, Kubernetes comes in when you've got a larger workload.

While I agree with you I'm not sure the rest of the world does. Over the past decade, I'm seeing k8s used everywhere for everything, companies setting up clusters to run literally one simple app with couple of hundred requests per hour.

We do this because we need redundancy. Are there non kubernetes alternatives for HA/redundancy that are worth it?
Post reply on HN