News for hackers. Stuff that matters.
Re:Why is Kubernetes getting so popular? by dustym on Friday May 29, 2020 @03:53PM (#23354711)
I like to say (lovingly) that Kubernetes takes complex things and simplifies them in complex ways.
Re:Why is Kubernetes getting so popular? by more_corn on Friday May 29, 2020 @05:39PM (#23355858)
Kubernetes makes impossible things merely hard, but at the expense of also making normal and easy things hard.

The system becomes so complex that most people screw up simple things like redundancy, perimeter security and zero downtime updates.

I've seen all of the above from very bright and capable people.

Re:Why is Kubernetes getting so popular? by battery_cowboy on Friday May 29, 2020 @04:05PM (#23354859)
It just hides the complexity in some yml files instead of in a deploy script or a sysadmin's head.
Re:Why is Kubernetes getting so popular? by happytoexplain on Friday May 29, 2020 @04:20PM (#23355029)
You say that like it's a bad thing. A declarative model is infinitely better for representing complex systems than scripts and mind space. The challenge is actually being able to get to that point.
Re:Why is Kubernetes getting so popular? by geggam on Friday May 29, 2020 @05:13PM (#23355632)
Until it breaks.
Re:Why is Kubernetes getting so popular? by happytoexplain on Friday May 29, 2020 @06:09PM (#23356128)
No, even then it's still better. A broken declarative model is better than a broken script.
Re:Why is Kubernetes getting so popular? by battery_cowboy on Friday May 29, 2020 @08:34PM (#23357300)
An sh script is a series of things that almost any developer who uses Linux can understand: command line statements. We use them all the time. Suppose the complicated declarative model you've made doesn't work one day and the person who originally wrote it is gone? Even if you have someone to debug it who knows the k8s languages: usually you can't just use the yml files alone, you need terraform or something, plus maybe some other services and "sidecar" containers that do other things for you. With a sh script, you just have the script with a bunch of commands that you can understand and look up easily, in a linear order, to figure out the problem. You might not understand every command, but you can run each one until you get to the error, then focus in on that area. With k8s, you need to figure out a huge series of intermixed deps and networks and services just to start, then find the one that is failing (if that is the one failing and it's not just being masked by another failed service that you didn't know about).