Live data from Hacker News

Why is Kubernetes getting so popular?

stackoverflow.blog

671–680 of 681 posts

Re: Why is Kubernetes getting so popular?

#671
post #553

Earlier quoted context omitted.

Recently migrated my company's k8s product to Cue and it's pure bliss. Configuration should be data, not code. Cue has just the right amount of expressivity - anything more complex shouldn't be done at the configuration layer, but in the application or a separate operator.

What's the k8s product? Are you on the newer syntax? #StyleDefs

It's not yet public - it's a new server OS for k8s. Think of CoreOS, but without a traditional userland and fully stateless.

And yes, we're on the newer syntax :-)

Re: Why is Kubernetes getting so popular?

#672
post #651

Earlier quoted context omitted.

I thought you were trolling with some called Cuelang but is actually a thing. Yaml will still be used in 100 years, k8s is yaml based...

Yes but YOU won't be writing or seeing yaml, Cue will output the yaml and run kubectl (I'm already doing this to great relief) Which is step 2 of my Enterprise adoption strategy. Step 1 is starting with validation, step 3 and beyond is where the real fun starts!

Hope that works for you ! Your statement above has nothing to do with yaml being on the way out...

Re: Why is Kubernetes getting so popular?

#673
post #672

Earlier quoted context omitted.

Yes but YOU won't be writing or seeing yaml, Cue will output the yaml and run kubectl (I'm already doing this to great relief) Which is step 2 of my Enterprise adoption strategy. Step 1 is starting with validation, step 3 and beyond is where the real fun starts!

Hope that works for you ! Your statement above has nothing to do with yaml being on the way out...

well, then perhaps the growing frustration with a configuration language where meaning depends on invisible chars is an argument. And then what helm and others are doing text interpolating and add helpers for managing indentation.

There are many experiments into alternatives happening right now, so I do believe yaml's days are numbered. I'm actively replacing it where ever I encounter it with a far superior alternative. Cue is far more than a configuration language however, worth the time to learn and adopt at this point.

Re: Why is Kubernetes getting so popular?

#674
post #672

Earlier quoted context omitted.

Hope that works for you ! Your statement above has nothing to do with yaml being on the way out...

well, then perhaps the growing frustration with a configuration language where meaning depends on invisible chars is an argument. And then what helm and others are doing text interpolating and add helpers for managing indentation. There are many experiments into alternatives happening right now, so I do believe yaml's days are numbered. I'm actively replacing it where ever I encounter it with a far superior alternati…

There are so many configuration files format and language already. The problem you describe seems to be fixed by XML for example

Re: Why is Kubernetes getting so popular?

#675

Earlier quoted context omitted.

One could argue if you have a tiny set of services you are better off using a managed offering like AWS Lambda or Cloud Run

There are organisations with 1000's of services on Serverless seeing enormous benefits in reduced management overhead and reduced costs compared to the Kubernetes solution they previously ran.

My issue with serverless though is that you need to refactor your code to make it work specifically for it. If you don't start to think serverless on day one it gets more and more difficult to convert to it down the road.

Re: Why is Kubernetes getting so popular?

#676
post #388
post #316

Earlier quoted context omitted.

Sounds like your setup lacks high availability. If you don't believe you need that, then yeah, kubernetes is overkill.

Few people actually need high availability. If you do, the recipe is to reduce the number of components, get the most reliable components you can find, and make the single points of failure redundant. Saying you can use Kubernetes to turn whatever stupid crap people tend to deploy with it highly available, is like saying you can make an airliner reliable by installing some sort of super fancy electronic box inside. Y…

> Saying you can use Kubernetes to turn whatever stupid crap people tend to deploy with it highly available, is like saying you can make an airliner reliable by installing some sort of super fancy electronic box inside. You don't get more reliability by adding more components.

This is a bit funny, considering Airbus jets use triple-redundancy and a voting system for some of their critical components. [1]

[1] https://criticaluncertainties.com/2009/06/20/airbus-voting-l...

Re: Why is Kubernetes getting so popular?

#677
post #635
post #470

Earlier quoted context omitted.

What about application upgrades? Are you ok with your application going down for each upgrade? With Kubernetes, it's very simple to configure a deployment so that downtime doesn't happen.

Takes a couple of minutes at most for an average application upgrade / deployment, a lot of places can deal with that. Reddit is less reliable than what I used to manage as a one man team.

So if a deployment is 2 minutes of downtime, you are limited to 2 per month if you still want to hit 4 9s of availability with no unexpected outages.

Re: Why is Kubernetes getting so popular?

#678

Earlier quoted context omitted.

Write a script which runs remotely over SSH and trigger on the appropriate event in your CI/CD host.

This is what I like to do. In my case, even the CI/CD host is just a systemd service I wrote. The service just runs a script that uses netcat to listen on a special port that I also configured GitHub to send webhooks to, and processes the hook/deploys if appropriate. Then when it's done, systemd restarts the script (it is set to always restart) and we're locked and loaded again. It's about 15 lines of shell script in…

That's quite elegant.

Re: Why is Kubernetes getting so popular?

#679

Earlier quoted context omitted.

Running on only 2 servers kinda risky no? Your one hardware failure during a maint on the other away from an outage.

Yes, but with the cloud I'm also only one platform issue away from not having my virtual instances start correctly. Like the one on May 22nd this year. Last year, my bare metal website had 99.995% uptime. Heroku only managed 99.98%. Of course, I could further reduce risk by having a hot standby server. But I'm not sure the costs for that are warranted, given the extremely low risk of that happening.

I didn't bring up the cloud but ok. Can you link the outage? A googling couldn't find it.

Re: Why is Kubernetes getting so popular?

#680

Earlier quoted context omitted.

Which two package managers do you mean? dpkg, rpm, nix, snap, dnf, and I'm sure someone is going to respond with package managers I forgot.

You can always simplify your IT and require everyone to use only a small subset of Linux images which were preapproved by your security team. And you can make those to be only deb or rpm based Linux distributions. The only problem with these Linux based packaging for deployments are Mac users and their dev environment. Linux users are usually fine, but there always had to be some Docker like setup for Mac users. If w…

Late in replying, but my company has drop in build rules for Go binaries that automatically publish both deb and brew packages.
Post reply on HN