News for hackers. Stuff that matters.
Re:Why Does Developing on Kubernetes Suck? by dragonsh on Friday August 23, 2019 @04:20AM (#20775486)
1. Kubernetes is when your service needs google kind of load which 90% of systems don't. Just trade it for simple VM or use LXD containers. Don't jump on next hype cycle. If something works for Google does not mean will work for you.

2. Don't spend too much on it just use traditional knowledge and, you can still use bare-metal, VM or LXD container. Focus on application not on programming a tool designed to solve problems for Google size deployment.

3. Kubernetes is a completely different way of doing things. So if you want to leverage old cluster and distributed system knowledge you can use VM or LXD containers. Kubernetes is an overkill.

4. Abandon kubernetes instead of complaining, just use simple systems.

Re:Why Does Developing on Kubernetes Suck? by OJFord on Friday August 23, 2019 @05:27AM (#20775784)
> Kubernetes is when your service needs google kind of load which 90% of systems don't.

This is the most frustrating but oft repeated nonsense about k8s.

Kubernetes is an amazingly helpful abstraction for any amount of load on any larger than trivially tiny set of services/storage/etc.

When you, like 90% of systems, don't have Google kind of load, you don't need Google number of nodes.

Machine count corresponds to load; abstraction doesn't.

Re:Why Does Developing on Kubernetes Suck? by yongjik on Friday August 23, 2019 @12:07PM (#20779000)
Kubernetes may be a useful framework, but "amazingly helpful" is not a word I'd use for it. To me, it's a half-assed collection of five hundred nearly identical (but all slightly different) yaml files masquerading as "abstraction". And because they're yaml you can't refactor out the common part.

Well, to be fair, yaml itself doesn't exactly have a stellar reputation, but I've never seen fifty lines of yaml that could convey so little information in any other place.

Re:Why Does Developing on Kubernetes Suck? by OJFord on Friday August 23, 2019 @03:45PM (#20781817)
Use a Helm chart (or alternative)?

When you're writing YAML you can absolutely include from elsewhere (it calls it 'aliases', which is... Well, at least it exists) in multuple places - though annoyingly not from other files.

When you're reading (partially) generated YAML, (e.g. kubectl describe or edit) it's IMO a feature that everything is in its place with no indirection. (And as far as I'm aware this is YAML, not kubectl.)

Re:Why Does Developing on Kubernetes Suck? by dragonsh on Friday August 23, 2019 @06:47AM (#20776192)
> Machine count corresponds to load; abstraction doesn't.

K8s is developed to manage large number of service nodes running docker or oci containers coming from Google borg project. So it was designed for managing google level of service loads. It doesn't help when a service is only for few million users with few hundred or thousand containers. LXD and traditional tools can already do it without learning new way with lots of moving parts.

Re:Why Does Developing on Kubernetes Suck? by tutfbhuf on Friday August 23, 2019 @07:25AM (#20776364)
> It doesn't help when a service is only for few million users with few hundred or thousand containers.

Well my company switched from VMs to k8s (few hundred containers) and it helped. Proof me wrong.

Re:Why Does Developing on Kubernetes Suck? by zsoltk on Friday August 23, 2019 @08:11AM (#20776662)
My company switched from VMs to a managed k8s cluster (gcloud). It made everything harder, the application became about 5x slower and instead of a $300 monthly bill we paid for the VMs now we pay $1300.

So in summary:

* we still have same amount of developers

* we still need same amount of sysadmins

* we introduced more complexity

* the application became slower

* the whole thing became much more expensive (managed k8s price, education, consulting, etc.)

* but! we have the same amount of income every month. Surprisingly our users don't pay more for the same service because we run our stuff on k8s

Re:Why Does Developing on Kubernetes Suck? by dragonsh on Friday August 23, 2019 @10:24AM (#20777949)
Cannot comment on it unless see it in details that adding additional moving components of k8s helped.
Re:Why Does Developing on Kubernetes Suck? by oblio on Friday August 23, 2019 @07:44AM (#20776470)
Do you manage Kubernetes, personally? Did you manage the VMs?
Re:Why Does Developing on Kubernetes Suck? by tutfbhuf on Friday August 23, 2019 @08:05AM (#20776609)
Yes, i'm a DevOps engineer. I have to say, we use the Google Cloud and many Google Services, this makes live so much easier. Before that we managed everything ourselves on bare metal with debian VMs.
Re:Why Does Developing on Kubernetes Suck? by oblio on Friday August 23, 2019 @08:27AM (#20776779)
Not exactly my point. Are you comparing managing bare metal VMs with using a managed Kubernetes cluster? That's hardly a fair comparison.
Re:Why Does Developing on Kubernetes Suck? by oblio on Friday August 23, 2019 @07:44AM (#20776479)
> Kubernetes is an amazingly helpful abstraction for any amount of load on any larger than trivially tiny set of services/storage/etc.

Abstractions have a cost. You either pay the cloud provider or you pay the Ops team that runs the cluster.

If you're fine with that and have evaluated the costs correctly, great!

Re:Why Does Developing on Kubernetes Suck? by atombender on Friday August 23, 2019 @02:55PM (#20781208)
This meme needs to die. Kubernetes is not overkill for non-Google workloads.

In my current work, we run several Kubernetes clusters via GKE on Google Cloud Platform. We're a tiny company — less than 20 nodes running web apps, microservices and search engines — but we're benefiting hugely from the operational simplicity of Kubernetes. Much, much, much better than the old fleet of Puppet-managed VMs we used to run. Having surveyed the competition (Docker Swarm, Mesos/Marathon, Rancher, Nomad, LXD, etc.), I'm also confident that Kubernetes was the right choice.

Kubernetes may be a large and complex project, but the problem it solves is also complex. Its higher-level cluster primitives are vastly better adapted to modern operations than the "simple" Unix model of daemons and SSH and what not. The attraction isn't just the encapsulation that comes with containers, but the platform that virtualizes physical nodes and allows containers to be treated as ephemeral workloads, along with supporting primitives like persistent volumes, services, ingresses and secrets, and declarative rules like horizontal autoscalers and disruption budgets. Given this platform, you have a "serverless"-like magically scaling machine full of tools at your fingertips. You don't need a huge workload to benefit from that.

As for LXD and the other alternatives, these might be great, but Kubernetes has vastly more mainstream adoption these days. That's more important than mere technological superiority, or everyone would be using OpenSolaris with Zones and ZFS these days.

Re:Why Does Developing on Kubernetes Suck? by te_chris on Friday August 23, 2019 @05:13AM (#20775731)
This misses the genius of k8s. When you adopt it, you’re adopting a completely declarative way of provisioning your system. It’s a total paradigm shift and I will never go back. My big want, is a kube as a service for small workloads - I.e I can just apply a deployment and everything goes up, no cluster considerations or whatever.
Re:Why Does Developing on Kubernetes Suck? by dragonsh on Friday August 23, 2019 @05:31AM (#20775795)
It's good if you found it working for you. If your team can grok over all of k8s complexity and moving parts, stick with it, use the tools your team is comfortable with. I tried working with docker since 2013 and later with Kubernetes, I still go back to LXD. In my view less systems and moving parts less complexity, maintenance and cognitive load. On top of it I don't have to give up decades of knowledge I learned regarding cluster and distributed computing on bare-metal and VM as I can apply the same to LXD. Obviously I can do that with Kata containers, but they didn't fit with my team either. Also for most of services with users in the range of 160-180 million LXD work fine.
Re:Why Does Developing on Kubernetes Suck? by nouney on Friday August 23, 2019 @04:29AM (#20775535)
Managing a VM vs a managed Kubernetes cluster? I'd choose kubernetes without hesitating
Re:Why Does Developing on Kubernetes Suck? by dragonsh on Friday August 23, 2019 @05:22AM (#20775762)
Don't manage VM, try LXD containers [1], they are containers with much better security and you can still use the same tools you learned for last decade or two to manage including the DSL if you like that.

Kubernetes is an Overkill for majority of development and production systems.

[1] https://linuxcontainers.org/

Re:Why Does Developing on Kubernetes Suck? by oblio on Friday August 23, 2019 @07:45AM (#20776484)
> Managing a VM vs a managed Kubernetes cluster?

So the win is not having to manage something :-) How is that a fair comparison?

Re:Why Does Developing on Kubernetes Suck? by ninkendo on Friday August 23, 2019 @11:46AM (#20778785)
> So the win is not having to manage something

Exactly!

> How is that a fair comparison?

Not only is it a fair comparison, but I'd say it's the entire raison d'etre of using any orchestration platform: You get to farm out bits of the infrastructure to others. Getting on k8s enables you to not have to run your own infrastructure, whereas having VMs being your abstraction sorta by definition does not.

Re:Why Does Developing on Kubernetes Suck? by arpa on Friday August 23, 2019 @04:24AM (#20775509)
for development, i agree. For production/testing/staging - hmmmm, it depends. I have taken a particular liking to the self-healing/HA properties of kubernetes. You just swap the dead nodes out without significant impact on the production... it's awesome.
Re:Why Does Developing on Kubernetes Suck? by sametmax on Friday August 23, 2019 @05:11AM (#20775727)
The trick is to understand that most products don't need to have 99% uptime. Your business will be fine if you are offline once in a while.

Hell, the stock market goes offline every night.

Those last % of uptime are very, very expensive at every level (money, people, logistic...). They better be worth it.

Re:Why Does Developing on Kubernetes Suck? by tinco on Friday August 23, 2019 @06:11AM (#20776007)
There's a difference between going offline at a set time for a set amount of time, and going offline randomly for unpredictable amounts of time.

HA is not just about getting that sixth 9, it's also about the peace of mind that you are insulated from a range of problems. Not only would I not worry about our SQL service going down, I also don't have to worry about what I have to do when a node goes down, because that's automated.

Re:Why Does Developing on Kubernetes Suck? by sametmax on Friday August 23, 2019 @07:48AM (#20776502)
Even an occasional site crash is ok. I'm not saying it's a good user xp, and avoiding it is both better for the tech team and the marketting one.

But the cost of a 500 is always to be balanced with the cost of going full throttle with micro services.

As perfectionists, it's easy to fall into the trap of choosing the later by default.

Re:Why Does Developing on Kubernetes Suck? by tinco on Friday August 23, 2019 @09:34AM (#20777398)
What do micro services have to do with it? If anything, HA is harder to achieve with microservices. There's all these weird false dichotomies going around in this thread.
Re:Why Does Developing on Kubernetes Suck? by ninkendo on Friday August 23, 2019 @11:48AM (#20778814)
Exactly... HA is about being able to sleep more peacefully each night.