Live data from Hacker News

Why is Kubernetes getting so popular?

stackoverflow.blog

651–660 of 681 posts

Re: Why is Kubernetes getting so popular?

#651
post #581

Earlier quoted context omitted.

Last attempt at remaining relevant - lol. This isn’t a competition, they are tools. Ansible is widely used and will continue to be so for a long long time. Its foundations - ssh, python and yaml are also in for the long run to manage infrastructure...

Yaml is on the way out, Cuelang will replace it where it's used for infra. It's quite easy to start by validating yaml and then you quickly realize how awesome having your config in a well thought-out language is!

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...

Re: Why is Kubernetes getting so popular?

#652

Earlier quoted context omitted.

The part of the equation you are missing is how little traffic the majority of business applications end up seeing. A B2B app that has at most 10 concurrent requests can run on the smallest EC2 instance whether it's written in PHP or written in C++. Bandwidth doesn't change with language choice and neither does the storage requirements of your app so those billable items don't come into the equation either. So the CP…

I agree with you. So maybe the question we should ask ourselves is: why isn’t there a smaller, cheaper EC2 instance (or any other provider than AWS) ? This industry is tailoring the levels. Of course it’s understandable because, well, they live on it. And they count on small instances to share hardware ressources to overbook said hardware. And I don’t blame them for that, I’m doing the same on my own bare metal serve…

Back when Joyent still operated a public cloud you could get machines with 100mb of ram.

The problem as you go cheaper is the cost of ipv4 addresses.

Re: Why is Kubernetes getting so popular?

#653

Earlier quoted context omitted.

Can you expand on this? We are just starting on Helm so curious to know your thoughts.

Sure, the most asinine thing (borrowing from Rob Pike) is to have a system where invisible characters define the scope and semantics of what you are writing. Now Helm takes this one step further (and I one beyond that before saying no more to myself and discovering https://cuelang.org ) and starts using text interpolation with helpers for managing indentation in this invisibly scoped language. I hacked in imports, bu…

Just wanted to clarify that Dark isn't like Pulumi. The idea with Dark is that there is no configuration, just code.

Re: Why is Kubernetes getting so popular?

#654

Earlier quoted context omitted.

Google can’t migrate if the underlying hardware fails quick enough. I don’t think AWS has talked about live migrate, but given stability of their VMs and rareness of “we need to restart it notices”, it seems like they have something.

I've "experienced" a hard drive failure on both platforms. On AWS, I was getting pagerduty'd because the solo gateway box was down, we couldn't ssh in so after an hour of no progress with dubugging or support, we just hit the reset button and hoped for the best. Fortunately this worked and later we where told there has a disk failure. On GCP, I didn't even know and only discovered it in the logs when I was looking fo…

Right, both vendors need to keep the underlying hypervisor and physical host up to date.

Re: Why is Kubernetes getting so popular?

#655

Because everyone chases the newest, shiniest thing in tech, and it's not cool nor fun to make boring old stuff in C then copy one binary and maybe a config to the server.

Even if one does have a single binary and config file that one can just copy to a server and run, there's more to non-trivial deployments than that. For example, how do you do a zero-downtime deployment where you copy over a new binary, start it up, switch new requests over to the new version, but let the old one keep running until either it finishes handling all requests that it already received or a timeout is reac…

Most web applications don't need any of that. Also, I didn't say k8s was useless, just that it's the new thing everyone wants (that they probably don't need).

Re: Why is Kubernetes getting so popular?

#656
post #61

Because everyone chases the newest, shiniest thing in tech, and it's not cool nor fun to make boring old stuff in C then copy one binary and maybe a config to the server.

Then you need to add management of storage for it, management of logs, integration of monitoring, healthchecks, maybe some multiple environment case because UAT is good thing to have, etc. etc.

For most things I'd reckon you could skip most of that. Everyone thinks they need a Ferrari when a bike can then to work easily.

Re: Why is Kubernetes getting so popular?

#657
post #615

Earlier quoted context omitted.

It depends. If you want to be a successful indie company, avoid cloud and distributed like the plague. If you want to advance in the big corp career ladder, user Kubernetes with as many tiny instances and micro-services as you can. "Oversaw deployment of 200 services on 1000 virtual servers" sounds way better than "started 1 monolithic high-performance server". But the resulting SaaS product might very well be the sa…

I just tell people I use a mono repo to house all my single file microservices. Php under apache.

Great description!

I run a monolithic ensemble that abstracts away the concept of multiple processes to deliver a unified API.

In short, it's multithreaded.

Re: Why is Kubernetes getting so popular?

#658

Earlier quoted context omitted.

That's kind of why people use Google Go. No memory issues, statically linked, easy cross-compile, and it can handle 10k requests on a toaster. And yes, there is less fancy companies like one where I work where we don't use Kubernetes because it's kind of overkill if all of your production workload fits onto 2 beefy bare metal servers. I can see a point in using Docker to unify development and production environments…

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.

Re: Why is Kubernetes getting so popular?

#659
post #650
post #630

Earlier quoted context omitted.

In the form of static analysis, lifetime checker.

So no?

Depends, not on the language, that is correct.

However I always have static analysers enabled on my builds, so it is almost as if they were part of the language. Regardless if we are talking about Java, C# or C++.

Just like most people that are serious about Rust have clippy always enabled, yet it does stuff that ins't part of Rust language spec.

Re: Why is Kubernetes getting so popular?

#660

I'm using Kubernetes extensively in my day to day work and once you get it up and running and learn the different abstraction, it becomes a single API to manage your containers, storage and network ingress needs. Making it easy to take a container and getting it up and running in the cloud with an IP address and a DNS configured in a couple API calls (or defined as YAMLs). That being said, I will also be the first on…

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.
Post reply on HN