News for hackers. Stuff that matters.
Re: by cedws on Friday February 09, 2024 @10:00PM (#39323144)
K8S is a disastrous complexity bomb. You need millions upon millions of lines of code just to build a usable platform. Securing Kubernetes is a nightmare. And lock-in never really went away because it's all coupled with cloud specific stuff anyway.

Many of the core concepts of Kubernetes should be taken to build a new alternative without all the footguns. Security should be baked in, not an afterthought when you need ISO/PCI/whatever.

Re: by mardifoufs on Saturday February 10, 2024 @12:12AM (#39323776)
Millions upon millions of lines of code?! What? Can you specify what you were trying to do with it?
Re: by cedws on Saturday February 10, 2024 @09:43AM (#39326451)
Argo CD, Argo Rollouts, Vault, External Secrets, Cert Manager, Envoy, Velero, plus countless operators, plus a service mesh if you need it, the list goes on. If you're providing Kubernetes as a platform at any sort of scale you're going to need most of this stuff or some alternatives. This sums up to at least multiple million LOC. Then you have Kubernetes itself, containerd, etcd...
Re: by arccy on Saturday February 10, 2024 @12:23PM (#39328124)
that's not much different from using the cloud PaaS offerings besides who runs that million lines and who gets the freedom/control for customization.
Re: by xyzzy_plugh on Friday February 09, 2024 @10:08PM (#39323191)
This isn't my experience at all. Maybe three or four years ago?

Who exactly needs millions of lines of code?

Re: by Spivak on Saturday February 10, 2024 @12:59AM (#39323985)
I think they're more getting a k8s requiring a whole mess of 3rd party code to actually be useful when bringing it to prod. For EKS you end up having coredns, fluentbit, secrets store, external dns, aws ebs csi controller, aws k8s cni, etc.

And in the end it's hard to say if you've actually gained anything except now this different code manages your AWS resources like you were doing with CF or terraform.

Re: by mschuster91 on Saturday February 10, 2024 @06:08AM (#39325276)
We have all of that neatly extracted into a Terraform module. Write it once and now EKS clusters are essentially disposable.
Re: by Solvency on Saturday February 10, 2024 @10:15AM (#39326692)
You just added yet another Thing in that huge pile of things representing millions of lines of code. That's the point.
Re: by dvfjsdhgfv on Saturday February 10, 2024 @12:12PM (#39327999)
Everything we run our workloads on is based on millions of LoCs, whether it's in the OS, in K8S, in is built-in or external kinds. If you decide to run K8S in AWS, you'll be better of using Karpenter, external-secrets and all these things as they will make your life easier in various ways.
Re: by lijok on Saturday February 10, 2024 @05:45PM (#39330915)
Why is that inherently a problem?

How many LOCs in the linux kernel again?

Re: by woleium on Friday February 09, 2024 @10:11PM (#39323205)
kinda like openshift?
Re: by foofie on Saturday February 10, 2024 @12:29AM (#39323862)
> K8S is a disastrous complexity bomb. You need millions upon millions of lines of code just to build a usable platform.

I don't know what you have been doing with Kubernetes, but I run a few web apps out of my own Kubernetes cluster and the full extent of my lines of code are the two dozen or so LoC kustomize scripts I use to run each app.

Re: by WildGreenLeave on Saturday February 10, 2024 @02:49AM (#39324397)
I run my own cluster too, it is managed by one terraform file which is maintained on GitHub [0]. Along with that I deploy everything on here with 1 shell script and a bunch of yaml manifests for my services. It's perfect for projects that are managed by one person (me). Everything is in git and reproducable. The only thing I am doing unconventional is that I didn't want to use github actions, so I use Kaniko to build my Docker containers inside my cluster.

0 https://github.com/kube-hetzner/terraform-hcloud-kube-hetzne...

Re: by cedws on Saturday February 10, 2024 @09:57AM (#39326567)
If you're using a K8S cluster just to deploy a few web apps then it's not really a platform that you could provide to an engineering team within a medium-large company. You could probably run your stuff on ECS.
Re: by foofie on Saturday February 10, 2024 @10:44AM (#39326954)
> If you're using a K8S cluster just to deploy a few web apps (...)

It's really not about what I do and do not do with Kubernetes. It's on you to justify your "millions upon millions lines of code" claim because it is so outlandish and detached from reality that it says more about your work than about Kubernetes.

I repeat: I only need a few dozen lines of kustomize scripts to release whole web apps. Simple code. Easy peasy. What mess are you doing to require "millions upon millions" lines of code?

Re: by cedws on Saturday February 10, 2024 @10:46AM (#39326982)
You are missing the point. I recommend you look into Platform Engineering and what it involves.
Re: by foofie on Sunday February 11, 2024 @12:25PM (#39336588)
Please don't deflect the question. You claimed you need millions and millions of LoC to get something running on Kubernetes. I stated the fact that I have multiple apps running in my personal Kubernetes cluster and they only require a couple of dozen lines of Kustomize. You are the one complaining about complexity where apparently no one else sees it. Either you're able to back up your claims, or you can't. I don't think you can, actually, and I think that's why you are deflecting questions. In fact, I'd go as far as to claim you have zero experience with Kubernetes, and you're just parroting cliches.
Re: by avbanks on Saturday February 10, 2024 @12:52PM (#39328435)
While I love ECS you're not giving k8s enough credit. Nearly every COTS (common off the self) app has a helm chart, hardly any provide direct ECS support. If I want a simple kafka cluster or zookeeper cluster there's a supported helm chart for that, nothing is provided for ECS, you have to make that yourself.
Re: by LunaSea on Sunday February 11, 2024 @05:46AM (#39334113)
Because you don't need any specific support for ECS? It's just Docker.
Re: by avbanks on Monday February 12, 2024 @12:54PM (#39348023)
Yes but lose a ton of functionality docker isn't a replacement for helm.
Re: by gtirloni on Saturday February 10, 2024 @11:01AM (#39327142)
You're both using hyperboles that don't match the reality of the average-sized company using Kubernetes. It's neither "millions upon millions of lines of code" nor "just a few dozen lines of kustomize scripts".
Re: by mise_en_place on Saturday February 10, 2024 @12:48AM (#39323940)
kubeadm + fabric + helm got me 99% of the way there. My direct report, a junior engineer, wrote the entire helm chart from our docker-compose. It will not entirely replace our remote environment but it is nice to have something in between our SDK and remote deployed infra. Not sure what you meant by security; could you elaborate? I just needed to expose one port to the public internet.