News for hackers. Stuff that matters.
Re:Ask HN: If Kubernetes is the solution, why are there so m... by binarymax on Wednesday June 01, 2022 @08:58AM (#31581156)
Kubernetes is a Google scale solution. Lots of teams said “hey if Google does it then it must be good!”…but forgot that they didn’t have the scale. It caught on so much that for whatever reason it’s now the horrendous default. I’ve worked on at least 3 consulting projects that incorporated K8s and it slowed everything down and took way too much time, and we got nothing in return - because those projects only needed several instances, and not dozens or hundreds.

If you need less than 8 instances to do host your product, run far away anytime anyone mentions k8s

Re:Ask HN: If Kubernetes is the solution, why are there so m... by nokya on Wednesday June 01, 2022 @09:38AM (#31581637)
Exactly.

I am consulting with a startup right now that chose to go everything docker/k8s. The CTO is half-shocked/half-depressed by the complexity of our architecture meetings, although he used to be a banking software architect in his previous assignments. Every question I ask ends up in a long 15 minutes monologue by the guy who architected all of it, even the most simple questions. They are soon launching a mobile app (only a mobile app and its corresponding API, not even a website) and they already have more than 60 containers running and talking to each other across three k8s clusters and half of them interact directly with third-parties outside.

Even as I am being paid by the hour, I really feel sad for both the CTO and the developers attending the meeting.

k8s is definitely not for everyone. Google has thousands hardware systems running the same hypervisor, same OS, same container engine and highly specialized stacks of micro-services that need to run by the thousands. And even, I am not sure that k8s would satisfy Google's actual needs tbh.

Ironically, there are some companies that highly benefit from this and they are not necessarily "large" companies. In my case, k8s and devops in general made my life infinitely easier for on-site trainings: those who come with a poorly configured or decade-old laptop can actually enjoy the labs at the same pace than every other attendee.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by rahkiin on Wednesday June 01, 2022 @10:40AM (#31582442)
60 containers sounds like an architecture problem, not a Kubernetes problem. Kubernetes does not stop you from running 1 container in 1 pod receiving ingress and talking to a database.
Re:Ask HN: If Kubernetes is the solution, why are there so m... by deathanatos on Wednesday June 01, 2022 @07:00PM (#31589235)
Presuming too (it's hard to tell) that they mean 60 different types of containers. One of my clusters currently has ~311 containers, but that's mostly due to replication.

If I count actually different containers (like, unique PodSpecs, or so), that count drops to ≈30. Even that is "high", and from an architectural standpoint, it isn't really a number I'd use. E.g., we have a simple daemon, but it also has a cronjob associated with it. So it has "2" PodSpecs by that count. But architecturally I'd call it a single thing. How it implements itself, that's up to it.

A lot of our "unique PodSpec" count, too, comes from utility type things that do one thing, and do it well. Logging (which comes from our vendor) is 3 PodSpecs. Metrics is another 3. We have a network latency measurement (literally ping shoved into a container…): PodSpec. A thing that checks certs to ensure they don't expire: PodSpec. HTTP proxy (for SSRF avoidance): PodSpec. A tool that rotates out nodes so that their OSes can be patched: PodSpec. Let's Encrypt automation (a third party too): 3 PodSpecs … but hey, it does its job, and it's a third party tool, so what do I care, so long as it works the API between me and it suffices (and honestly, its logs are pretty good. When it has had problems, I've usually been able to discern why from the logs). DB backup. But most of these don't really add much conceptual overhead; any one is maybe tied (conceptually) to our applications, but not really to all the other utilities. (E.g., there isn't really coupling between, say, the cert renewer and the logging tooling.) A confused/new dev might need to have it explained to them what any of those given tools do, ofc., but … many of them you can just Google.

… in previous jobs where we didn't use Kubernetes, we mostly just ignored a lot of the tasks that these tools handle. E.g., reboot a VM for patches? It was a custom procedure, depending on VM, and what is running on that VM. You needed to understand that, determine what the implications were … etc. And the end result was that reboots just didn't happen. K8s abstracts that (in the form of PDBs, and readiness checks) and can thus automate it. (And ensure that new loads don't need TLC that … an app dev realistically isn't going to be given the time to give.)

If we needed a common thing on every node? That would be rough. We did finally get to having a common base VM image, but even them, all of the per-app VM images would need to be rebased on the newer one, and then all rolled out, and who/how would one even track that? And … in practice, it didn't happen.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by nokya on Monday June 13, 2022 @11:17AM (#31726778)
Thank you for your comment. It's a mix of both what you described: different types of containers + what I have flagged as "utility containers" (stuff they just installed because it serves a purpose very well).

The problem I see with this approach is that it has become very difficult to evaluate system-wide topics such as accessibility (or security, or performance) as we constantly deal with a very diverse technological stack and increasingly complex attack surface.

In my opinion, this makes finding competent people who can actually evaluate or assess work almost impossible, unless you hire a Lemming who will run some third-party scanner he found on GitHub: if the scanner doesn't say something is awful or critical, then almost everyone at the table is instantly convinced the system is perfectly robust.

I try to warn my clients by asking them if they think that a judge will be satisfied if they answer "we ran the scanner the other day and the scanner said it was all good" after a customer sues them for failing to comply with a disabilities act.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by raffraffraff on Thursday June 02, 2022 @05:11AM (#31592887)
Yep, that's microservices gone mad
Re:Ask HN: If Kubernetes is the solution, why are there so m... by datavirtue on Wednesday June 01, 2022 @08:30PM (#31589901)
It's the gateway drug
Re:Ask HN: If Kubernetes is the solution, why are there so m... by siva7 on Wednesday June 01, 2022 @04:19PM (#31587486)
this is not the fault of kubernetes but of microservice architecture gone horribly wrong
Re:Ask HN: If Kubernetes is the solution, why are there so m... by Spivak on Wednesday June 01, 2022 @04:17PM (#31587456)
Good god, there's a reason people worship monoliths. And here I think my company's app is over-engineered for using Sidekiq and Lambda for similar workloads.
Re:Ask HN: If Kubernetes is the solution, why are there so m... by KaiserPro on Wednesday June 01, 2022 @04:59PM (#31588029)
> Kubernetes is a Google scale solution

The problem is that its _not_ a google scale solution. Its something that _looks_ like a google scale solution, but is like a movie set compared to the real thing.

for example: https://kubernetes.io/docs/setup/best-practices/cluster-larg...

no more than 5k nodes.

Its extra ordinarily chatty at that scale, which means it;ll cost on inter-vpc traffic. I also strongly suspect that the whole thing is fragile at that size.

Having run a 36k node cluster in 2014, I know that K8s is just not designed for high scale high turnover vaguely complicated job graphs.

I get the allure, but in practice K8s is designed for a specific usecase, and most people don't have that usecase.

for most people you will want either ECS(its good enough, so long as you work around its fucking stupid service scheme) or something similar.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by 015a on Wednesday June 01, 2022 @09:29PM (#31590272)
Right; and I don't feel that's a knock against K8s; its just the trade-offs it decided to make. A true Google-scale solution would be far worse to use, you can be sure of that.

K8s is a "middle 80%" scale solution. Its not made to run Google (though Google uses it a ton internally). Its also not made for your average four person startup (though, if you've got that experience internally, its not a bad choice; its not Heroku, but its better than a lot of deployment options out there).

All I'd say is: I've worked in a "scale-up" B2B org under $1M in ARR. We were pretty monolithic; just a backend NodeJS app, and a frontend SSR React app, basic. Five engineers by the time I left. We used K8s (EKS+Fargate). Maybe 50 pods total, across two environments. It was fantastic. We never had to say No to any weird customer, product, or engineering decision which would be difficult in either more managed, or more legacy, systems. Customer wants a custom domain and'll pay $50k for it? Like five lines of YAML and update Route 53, done. Datadog sidecar container so we can ingest some APM traces? Ten lines of YAML copy-pasted from their docs, done. Update the cluster? Click one button in the AWS UI. Every developer wants their own staging environment? Ok, bit more work, but: create some namespaces, retool the CI a bit, we can deploy separate databases in there as well its only staging, actually pretty straightforward.

Half the stuff we did with k8s would have taken three times as long with more native AWS solutions, and some of it probably would have been impossible on something like Heroku. K8s strikes a balance. Its not the simplest thing in the world. I wouldn't grab it on day 1 of a startup's engineering journey. But I wouldn't knock a startup who does.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by kuschku on Thursday June 02, 2022 @06:10AM (#31593196)
I'm using k8s even for my personal 2 node cluster. It's just so convenient to be able to use all the automation tools.

I can leave the cluster alone for weeks, and it'll take care of itself, my CI will build new docker containers, tooling will start rolling them out across the cluster, if deployments fail they get rolled back, and I get an email, etc.

At some point I was hands-off with the cluster for 6 months and everything kept itself up to date and running just fine.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by singron on Wednesday June 01, 2022 @09:48PM (#31590382)
Google's Borg clusters don't have wildly larger sizes than that despite having more years of development and a lot of motivation at that scale. They instead have a lot of clusters and transparent inter-cluster network topologies (i.e. you can choose clusters with very high bandwidths to each other).

The fundamental design just isn't infinitely scalable, and at a certain point, you might rather have some bulkheads/autonomy or regional diversity.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by arunc on Wednesday June 01, 2022 @09:43PM (#31590352)
Curious how you ran 36k node cluster. Did it involve elastic scaling, etc? What are the alternatives for k8s?
Re:Ask HN: If Kubernetes is the solution, why are there so m... by KaiserPro on Thursday June 02, 2022 @02:42AM (#31592149)
Home grown: https://www.semanticscholar.org/paper/Robust-large-scale-ren...

off the shelf: https://hradec.com/ebooks/CGI/RMS_1.0/rfm/User_Interface/Alf...

although that was with something like 6-10k nodes because there was an upper limit to how many dispatches alfred could do because it was single threaded, from the early 90s and not really designed to scale that high

https://renderman.pixar.com/tractor is probably what they use now, or https://www.opencue.io/

but any grid engine style dispatcher/manager will do what you want. It'll give you the primitives to manage wildly larger scale than k8s.

These clusters were on real steel, as elastic clusters were horrendously expensive, and the storage was/is nowhere near fast enough.

Nowadays, I'd use AWS batch, or at a push airflow.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by russellendicott on Wednesday June 01, 2022 @07:56PM (#31589653)
Yeah, I don't know if it's because ECS was my first container orchestration experience but every time I look at teams trying to do k8s on AWS I think how much easier ECS would be.
Re:Ask HN: If Kubernetes is the solution, why are there so m... by 015a on Wednesday June 01, 2022 @09:36PM (#31590313)
The complexity difference between bog-standard ECS+Fargate and EKS+Fargate deployments rounds down pretty small. Biggest I've seen: ALB integration, IAM integration, and maybe certificate management. Most of that stuff is out-of-box on ECS, but on EKS you need some extra containers or configuration to watch the K8s API and provision stuff for you (if you want to use it; you can also just go pure-k8s) (edit: just to be clear, they provide all this for you; its not out-of-box, but its easy-to-add-box e.g. [1]).

An argument could be made for something like CodeDeploy being better integrated on ECS, but that's more of a "k8s doesn't need CodeDeploy but ECS might" kind of thing. And even then, I wouldn't touch it.

An argument could also be made that upgrading ECS clusters is a bit easier, as the cluster itself, uh, doesn't have a "version". But on Fargate, its pretty painless on EKS, and Fargate ECS tasks do have a "platform version" that generally doesn't have to be worried about (version: LATEST), but is nonzero nonetheless.

Which is really to say that both ECS and EKS puke complexity, because its AWS, but the volume is pretty similar.

[1] https://docs.aws.amazon.com/eks/latest/userguide/aws-load-ba...

Re:Ask HN: If Kubernetes is the solution, why are there so m... by russellendicott on Wednesday June 01, 2022 @09:40PM (#31590333)
Agreed. I had the displeasure of doing CodeDeploy to ECS Fargate a few weeks ago for a side project and IMO it was overly complex.
Re:Ask HN: If Kubernetes is the solution, why are there so m... by 015a on Wednesday June 01, 2022 @10:30PM (#31590605)
Yup. You can get pretty dang far with just "the task definition is in cloudformation, so update the image in cloudformation and submit the template". For a bit more complexity, add ALB routing weights in, and the case for CodeDeploy is kind of weak. My statement that ECS needs it was probably overzealous; for most situations it doesn't, and if there's some crazy functionality it does I'm not aware of, you'd probably need something else in k8s as well (e.g. istio).
Re:Ask HN: If Kubernetes is the solution, why are there so m... by throwaway7865 on Wednesday June 01, 2022 @09:16AM (#31581372)
We’ve moved a small-scale business to Kubernetes and it made our lives much easier.

Anywhere I’ve worked business always prioritizes high availability and close to zero downtime. No one sees a random delivered feature. But if a node fails at night - everybody knows it. Clients first of all.

We’ve achieved it all almost out of the box with EKS. Setup with Fargate nodes was literally a one-liner of eksctl.

Multiple environments are separated with namespaces. Leader elections between replicas are also easy. Lens is a very simple to use k8s IDE.

If you know what you’re doing with Kubernetes (don’t use EC2 for nodes, they fail randomly), it’s a breeze.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by AaronM on Wednesday June 01, 2022 @02:25PM (#31586000)
We don't have an issue with that last point, lots of EC2 EKS nodes and they don't fail randomly. Were you using resources and limits correctly? EKS nodes can fall over randomly if you don't reserve resources on the nodes for system processes, and your workloads eat up all the resources. That's probably not well documented either.
Re:Ask HN: If Kubernetes is the solution, why are there so m... by Spivak on Wednesday June 01, 2022 @04:21PM (#31587518)
EC2 instances are inherently unreliable and that's not a knock on them, that's exactly the contract that you get using them and you're supposed to plan your architecture around the fact that at any moment an EC2 instance could die. We lose about 2-3 EC2 nodes per day (not like our app stops, like Amazon's own instance health goes red) and we couldn't care less.
Re:Ask HN: If Kubernetes is the solution, why are there so m... by jamesfinlayson on Thursday June 02, 2022 @01:08AM (#31591557)
What percentage of EC2 nodes is that?
Re:Ask HN: If Kubernetes is the solution, why are there so m... by theK on Thursday June 02, 2022 @04:36PM (#31600192)
Empirically around 0.1%
Re:Ask HN: If Kubernetes is the solution, why are there so m... by raffraffraff on Thursday June 02, 2022 @05:26AM (#31592977)
Setting limits is important, but it always has been. Kubernetes nodes typically don't have a swap so without setting container limits, some critical process can OOM. With swap enabled, memory grows > pathological swapping ensures => caches get dropped making disk performance suck, and all the while your system is shuffling pages between memory and disk. So of course load hits 50+ and the machine turns into a 'black hole'. I've even seen a single VM do that, and cause so much disk IO that it took out the whole hypervisor (which had a single RAID volume)
Re:Ask HN: If Kubernetes is the solution, why are there so m... by jmillikin on Wednesday June 01, 2022 @09:06AM (#31581252)
Kubernetes can't (currently) scale to Google sizes. It's designed for small- or medium-sized businesses, which might have 50,000 VMs or fewer.

There are entire SaaS industries that could fit into a single Google/Facebook/Amazon datacenter.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by blue_cookeh on Wednesday June 01, 2022 @09:58AM (#31581882)
> small- or medium-sized businesses, which might have 50,000 VMs or fewer

Holy shit, is this considered small to medium enterprise now?

Re:Ask HN: If Kubernetes is the solution, why are there so m... by dijit on Wednesday June 01, 2022 @01:35PM (#31585275)
a single cluster supports approx 5,000 nodes, 110 pods per node~

The estimated maximum single cluster is 300,000 containers.

That's pretty medium, I've ran more than a million processes before, and nomad has 1million containers as its challenge https://www.hashicorp.com/c1m

borg can handle this easily.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by dlp211 on Wednesday June 01, 2022 @04:53PM (#31587944)
I don't know anyone running 5k node K8S clusters. That said, borg (as an end user) appears to just keep scaling, but it uses a different model and makes different assumptions than K8S.
Re:Ask HN: If Kubernetes is the solution, why are there so m... by dijit on Wednesday June 01, 2022 @06:00PM (#31588702)
Sure. Most people have more clusters before they hit 5k nodes on a single cluster.

But I’ve been in situations where it would have been worthwhile. I’ve been in situations with 30,000 machines that needed to be controlled. Splitting them out into very many clusters would be a lot of wasted overhead in configuration, administration and because you lose nodes to masters.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by drdaeman on Wednesday June 01, 2022 @05:07PM (#31588139)
I'm afraid this is why people pick Kubernetes. They believe small business needs those tens of thousands of VMs distributed across thousand of nodes and so on.

With some exceptions, I believe that's a few orders of magnitude above what a small business can run on. Nowadays people just start their day by drinking some K2l-aid and spinning up a "basic" 6-node cluster for a development prototype.

Maybe I'm wrong, of course.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by hpkuarg on Wednesday June 01, 2022 @09:52AM (#31581804)
> There are entire SaaS industries that could fit into a single Google/Facebook/Amazon datacenter.

Forget a whole datacenter, even just one rack is an unimaginable amount of computing power, these days!

Re:Ask HN: If Kubernetes is the solution, why are there so m... by dublin on Wednesday June 01, 2022 @07:18PM (#31589375)
Fact: An well-equipped Raspberry Pi 4 has more memory, more compute power, more storage and vastly faster networking than the Cray supercomputer I worked with at a major oil company in the 1990's! With the exception of the craziness around click-tracking (web ads and marketing have warped compute use even more than crypto), the data required to run even enterprise-scale businesses today is not really all that large.

For almost all purposes, we don't really need thousands of containers running on unimaginably fast computers, coordinated by AI-driven automation systems. What we need is software that is not morbidly obese.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by gh02t on Wednesday June 01, 2022 @07:42PM (#31589546)
I mean a single V100 GPU (~= 100 TFLOPS) has FLOPS throughputs similar to top end mid-00's supercomputers like Blue Gene, at least superficially. And you can squeeze like 4+ in a 1U if you have enough cooling and power.

https://en.wikipedia.org/wiki/History_of_supercomputing

Re:Ask HN: If Kubernetes is the solution, why are there so m... by bg24 on Saturday June 11, 2022 @03:59PM (#31707744)
Your scale (50,000 VMs) is way too high for small and medium sized business :-)

Is my observation correct that unicorns start to see that scale?

Re:Ask HN: If Kubernetes is the solution, why are there so m... by ec109685 on Wednesday June 01, 2022 @09:59AM (#31581895)
That’s a bit out of date. K8s can do 5,000 nodes and 300k VMs within its performance envelope: https://kubernetes.io/docs/setup/best-practices/cluster-larg...
Re:Ask HN: If Kubernetes is the solution, why are there so m... by jmillikin on Wednesday June 01, 2022 @10:41AM (#31582461)
A VM would be a node. A pod isn't a VM, it's a process tree.
Re:Ask HN: If Kubernetes is the solution, why are there so m... by systemvoltage on Thursday June 02, 2022 @11:40AM (#31596227)
Scaling is oversold and under criticized.

Folks, listen, if StackOverflow can run on this: https://nickcraver.com/blog/2016/02/17/stack-overflow-the-ar...

So can your doctor's appointment website, your little ML app or Notion clone.

"But...". No. You ain't gonna need it. Do some load testing, prove it to yourself. Now, multiply the load by 100x, reserve AWS resources and you're good to go.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by datavirtue on Wednesday June 01, 2022 @08:28PM (#31589888)
We just moved our single instance web app with 50 users to K8. Not kidding. I totally bailed on that one. It started with moving it to the cloud (meh) and ended up with K8 in the cloud. A few of the guys wanted to pad the resume so we just turned our heads.
Re:Ask HN: If Kubernetes is the solution, why are there so m... by dosethree on Wednesday June 01, 2022 @02:27PM (#31586041)
You don't even end up spending time on Kubernetes, because k8s is just part of the solution, a container scheduler. You have to bring logs, monitoring, a container registry ,as well as a CI system with custom jobs and do integration of everything.
Re:Ask HN: If Kubernetes is the solution, why are there so m... by deathanatos on Wednesday June 01, 2022 @07:08PM (#31589300)
This is true. But I had to bring all those things anyways, when I didn't run on k8s. I still needed some form of all of that. (Though "container registry" might be "package store", or something, depending on specifics of the implementation. Some form of artifact store.)

And with-k8s and without-k8s to me is pretty similar: we vendor or FOSS most of it. The major cloud vendors all have container registries (of … varying quality…); similarly, at a previous company we used S3+a small shim as a Python package store. (We later moved to a vendored solution.)

ELK for logs meant having a daemon set up per VM. Easier in k8s where I can push a DaemonSet to the entire cluster. With VMs … it's a per-app nightmare, really. Even then, that's really not perfect. In practice, in both situations, I feel like you end up having to integrate the apps with the metrics/logs providers. There's just not a common format. Sometimes, there are some libraries, e.g., there's some stuff for Prom's HTTP metrics APIs. Logs … eugh. Nothing amazing; getting structured logging requires per-app changes regardless of what you do. Sure, in either VM or k8s, you can just "suck up syslog/journald / docker logs", but what format are those in? They're not, is the answer, and I find most places do a "one text log per line" assumption (and then have stuff with multiline logs that just gets destroyed/corrupted/lost by the logging daemon) and it misses out on any sort of structured logs. jsonlines through those channels is a slight step up, but usually requires app changes.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by dosethree on Thursday June 02, 2022 @04:13PM (#31599956)
For sure, I had all this stuff before k8s as well
Re:Ask HN: If Kubernetes is the solution, why are there so m... by 908B64B197 on Wednesday June 01, 2022 @04:48PM (#31587875)
> Kubernetes is a Google scale solution. Lots of teams said “hey if Google does it then it must be good!”…but forgot that they didn’t have the scale.

It's also a Google engineer caliber solution. Lots of teams said “hey if Google engineers do it then it must be good!”…but forgot that they didn’t have the same in-house talent as Google.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by dusanh on Wednesday June 01, 2022 @09:11AM (#31581314)
Asking as someone who has only tipped his toes into devops lately and is looking to learn K8, what is considered a reasonable "lightweight" alternative to Kubernetes these days?
Re:Ask HN: If Kubernetes is the solution, why are there so m... by jpgvm on Thursday June 02, 2022 @06:38AM (#31593324)
You may think you want an alternative but you don't.

The API is the main drawcard of k8s in the first place, if you are off in ECS land all you are doing is wasting a bunch of time on a dead-end.

I would instead focus on getting to understand the basics of the API by using a hosted k8s service like GKE or EKS. Stick with some basic manifests, i.e deployments, services, ingress.

Once you have some stuff running you can start learning how it really works and goes together, i.e what are pods, why are pods immutable, why is a replicaset, how does a deployment orchestrate multiple replicasets, what are endpoints, what is the difference between pod readiness/liveliness.

Don't cheat yourself this early in the game, just learn things the right way from the start and save yourself a bunch of work.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by mmcnl on Thursday June 02, 2022 @02:08PM (#31598447)
I agree. I'd say the appeal of Kubernetes is the declarative configuration of your workloads. It's a language on its own that's incredibly versatile and exhaustive. This infrastructure abstraction layer is here to stay.
Re:Ask HN: If Kubernetes is the solution, why are there so m... by jstream67 on Wednesday June 01, 2022 @09:17AM (#31581392)
If you are on AWS you should check out ECS Fargate (serverless). It is really really good. Probably one of their more polished products.

If you want to stay on the Kubernetes route check out k3s. Super easy to setup and usable for small production workloads

Re:Ask HN: If Kubernetes is the solution, why are there so m... by Sohcahtoa82 on Wednesday June 01, 2022 @12:56PM (#31584700)
As a security engineer, I always cringe when anything involving containers is referred to as "serverless".

I always thought that one of the advantages of going serverless was that you didn't have to worry about keeping the underlying operating system up-to-date. No needing to do a monthly "sudo apt update && apt upgrade" or whatever. But containers throw that all away when container images enter the world.

Instead of updating your operating system, you're updating your images...and it's basically the same thing.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by OJFord on Wednesday June 01, 2022 @02:05PM (#31585720)
Is anyone's goal of 'serverless' that they no longer have to deal with updating the OS?

Most would say even a server-ful system (k8s, or whatever) should be considered 'cattle not pets' with immutable nodes replaced as needed anyway. No update, just replace. Just like building a new image and having new pods (or serverless whatevers) pull it.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by thakoppno on Wednesday June 01, 2022 @08:05PM (#31589735)
The cattle not pets abstraction always struck me as wildly bizarre. Whoever came up with that phrase, did they grow up on a farm?

I’ve never cordoned off an individual head of cattle and lobotomized it, which is kinda what we do when debugging issues. We take the pod out of rotation, flip a bunch of configs, then give it some traffic to see the new debugging statements.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by Sohcahtoa82 on Wednesday June 01, 2022 @03:31PM (#31586835)
From a purely security standpoint, "updating your OS" and "updating your image" are equivalent. What matters to the security people are that you're running the latest OpenSSL that isn't vulnerable to the newest branded vulnerability.

If you're truly "serverless" by my interpretation of it, then you wouldn't care. Your cloud provider will have updated their infrastructure, and that's all that matters.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by OJFord on Wednesday June 01, 2022 @04:28PM (#31587614)
Yeah I see what you're saying, that's a fair enough interpretation of it I just don't think it's the only one.

In fact almost nothing is serverless (well, the truth comes out! ;)) by that definition, since even Lambda has runtime versions to choose/upgrade, Managed-Acme has Acme versions, etc.

SES, SNS, SQS, etc. sure, but I suppose no compute, since you need libraries, and libraries have versions, and you can't have them (significantly/major versions) changing under your feet. (Or if they don't have versions they're of course destined to have known security holes.)

(Or it's not even about libraries if you want to say no you don't need libraries - it's just about having to interface with anything.)

Re:Ask HN: If Kubernetes is the solution, why are there so m... by kuschku on Thursday June 02, 2022 @07:00AM (#31593463)
AppEngine was the original serverless platform
Re:Ask HN: If Kubernetes is the solution, why are there so m... by jeffwask on Wednesday June 01, 2022 @10:37AM (#31582399)
I second this. There are a few limitations in Fargate that are annoying but overall it's solid and easy to use.
Re:Ask HN: If Kubernetes is the solution, why are there so m... by netfortius on Thursday June 02, 2022 @01:41AM (#31591735)
How does k3s compare with MicroK8s, for the purpose of this topic?
Re:Ask HN: If Kubernetes is the solution, why are there so m... by dewey on Wednesday June 01, 2022 @09:45AM (#31581725)
> what is considered a reasonable "lightweight" alternative to Kubernetes these days

Before I used Kubernetes for my side projects and only at work I always thought it's hard to operate and very tricky. If you start with an empty "default" cluster and then just add bits when you need them it's actually not that complicated and doesn't feel too heavyweight. I'd suggest to just play around with a simple example and then see how it goes.

There's things that are used in "production" clusters that you don't need at the beginning, like rbac rules, Prometheus annotations etc.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by digianarchist on Wednesday June 01, 2022 @10:38AM (#31582422)
HashiCorp Nomad is a good alternative.
Re:Ask HN: If Kubernetes is the solution, why are there so m... by jhillyerd on Wednesday June 01, 2022 @01:56PM (#31585560)
I've started running Nomad in my homelab, and it is a great piece of software. Although I feel like the question is sort of flawed, if you want to learn Kubernetes, you are going to need to run Kubernetes - or one of the downsized versions of it.

If you want to learn about containers, distributed workloads, etc, then Nomad is a great option that is easy to learn/adopt piecemeal.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by everfrustrated on Wednesday June 01, 2022 @10:09AM (#31582019)
Definitely check out all the aws offerings under ECS

There's now even onprem ECS variants which means not having to pay aws very much and still get the benefit of them running and maintaining the control plane

Re:Ask HN: If Kubernetes is the solution, why are there so m... by dublin on Wednesday June 01, 2022 @07:26PM (#31589437)
Not an alternative, but if you want to get a feel for Kubernetes and managing various kinds of servers, check out KubeSail and their options for K8s/K3s

It's ridiculous overkill, but I'm looking at a NextCloud server on one of their PiBox hardware servers for the house. (You don't need a PiBox - their stuff will run fine on little instances from AWS/DigitalOcean/Hertzner, etc., or a spare PC you have lying around...)

Re:Ask HN: If Kubernetes is the solution, why are there so m... by dosethree on Wednesday June 01, 2022 @02:29PM (#31586068)
K8s ate everyone else. The alternative is to use a heroku like sass
Re:Ask HN: If Kubernetes is the solution, why are there so m... by mastazi on Wednesday June 01, 2022 @06:48PM (#31589134)
In my particular market sector it seems everyone is using some form of cloud functions (SAM, Serverless Framework etc), and migrating away from K8S/containers.

Regarding PaaS stuff like Heroku, the only people I know that are still using that are solo hackers.

Re:Ask HN: If Kubernetes is the solution, why are there so m... by subsection1h on Wednesday June 01, 2022 @08:31PM (#31589909)
That's interesting. In the latest Who Is Hiring discussion, there seems to be more than 10 times as many references to Kubernetes compared to serverless. https://news.ycombinator.com/item?id=31582796
Re:Ask HN: If Kubernetes is the solution, why are there so m... by mastazi on Thursday June 02, 2022 @06:25AM (#31593262)
Interesting, you're right, I see 3 occurrences for "lambda" and 26 for "kubernetes". It's probably just the paritcular "bubble" I live in.
Re:Ask HN: If Kubernetes is the solution, why are there so m... by horlux on Wednesday June 01, 2022 @12:21PM (#31584185)
if you only use Services, Deployments and ConfigMaps then k8s can be simple too