Live data from Hacker News

Do I Need Kubernetes?

mbird.biz

121–130 of 180 posts

Re: Do I Need Kubernetes?

#121
post #9

Earlier quoted context omitted.

Can I ask people who _don't_ use Kubernetes and maybe have architectures built on proprietary cloud services: how do you manage this?

Immutable infrastructure using Nix/NixOS.

I have used this. It has its benefits but you have to be ready to walk into alpha-ville (alpha-quality stuff) and take the pain that comes with it.

NixOS, however, I will not recommend as your dev environment. Use a regular distro and use NixOS for your containers.

Re: Do I Need Kubernetes?

#123
I think what isn't fully appreciated about k8s yet, but we will look back on is how it creates an open standard platform for apps to be deployed. It is one thing to port your own apps to run within a k8s cluster, it is another to have and operate a k8s cluster that you can use to deploy services built by others. I hope we see more of this soon

Re: Do I Need Kubernetes?

#124

Earlier quoted context omitted.

> you can get these same properties from any of a variety of easier-to-use schedulers such as Fargate, Heroku, or even EC2 autoscaling group Serious question, as I don't have any experience of those, can you scale based on a custom metric? It's probably the one feature of k8s I appreciate the most.

On Heroku, I have written a very small autoscaling script that is called once every few minutes by Heroku Scheduler (like a cronjob). The autoscaling script pulls the custom metric, does some arithmetic, and calls the Heroku API to scale the dyno count up/down as desired. (That script was probably shorter and more readable than this comment.)

Thanks :)

Re: Do I Need Kubernetes?

#125

Earlier quoted context omitted.

If I understood correctly, this means that every time you add a new dependency, it takes 15 minutes to rebuild the first time you `docker-compose up` right? I assume this is due to docker downloading the related image and running the container. If this is the case, isn't this orders of magnitude faster than adding the dependency manually. And aren't the gains are even more significant when we factor the fact that mos…

> this means that every time you add a new dependency, it takes 15 minutes to rebuild the first time you `docker-compose up` right? Yes > If this is the case, isn't this orders of magnitude faster than adding the dependency manually. No. When developing a rails server running locally, you just need to install the new dependency via bundle install (usually takes just a few seconds) and then your server is ready to run…

[deleted]

Re: Do I Need Kubernetes?

#126
post #5

Not a single mention of elastic beanstalk or App Engine? The best middle ground for small teams who just want one reliable website with minimal scaling (and who can't just choose a nom-aws service).

Do you have any examples of non-proprietary solutions?

Knative + buildpacks is one. CloudFoundry is open source too (although CF now runs on Kubernetes I think)

Re: Do I Need Kubernetes?

#127

I think one of the underrated parts of using something like Kubernetes early (or even w/ simpler orchestrators like swarm or rancher), is that it encourages (and sometimes enforces) architecture best practices from the start. IE, you won't be storing state locally, you'll be able to handle servers being randomly killed, you'll already have horizontal scaling, etc. In my experience the hard part of migrating to contai…

> I good reason not to use kubernetes though is if you know your app is probably never going to scale Suggesting that you can only scale with Kubernetes just isn't true. Our tech stack originally ran on AWS in multi-regions. Then we moved to GCP. The architecture was the same for both: - public facing Load Balancer - instance groups attached to the LB - add health checks so unresponsive instances get killed - add sca…

That isn't what parent suggested. The quotation is a reason not to use it.

Re: Do I Need Kubernetes?

#128
post #42

Earlier quoted context omitted.

There are a lot of projects these days that aim to use Kubernetes as a docker-compose environment. I personally use http://skaffold.dev/ with either a local Kubernetes cluster built with https://github.com/rancher/k3d or https://github.com/kubernetes-sigs/kind . I think there's a very easy argument to be made that says that running K8s locally is overkill, but what I will say is that if you run your applications loca…

`kind` and `k3d` are great but I don't think their aimed at being a developer friendly cluster from what I understand. They both require a lot of tweaking and setup to make them look like their a managed kube cluster (LB, storage, ingresses, etc). I wish there was something that could create a kube cluster that: 1. sets up automatic port forwards to my host system 2. handles ingresses by binding port :80 on my system…

I have a script that simplifies creation of kind clusters with local registry and ingress https://github.com/MoserMichael/kind-helper (to make it more developer friendly that is) but i guess kind is more for automation testing purposes as it runs all modes in docker containers on the same machine.

Re: Do I Need Kubernetes?

#129
post #42

Earlier quoted context omitted.

There are a lot of projects these days that aim to use Kubernetes as a docker-compose environment. I personally use http://skaffold.dev/ with either a local Kubernetes cluster built with https://github.com/rancher/k3d or https://github.com/kubernetes-sigs/kind . I think there's a very easy argument to be made that says that running K8s locally is overkill, but what I will say is that if you run your applications loca…

Talking about kind and k3s, does anyone know how to load a local docker image into a k3d cluster? The command is supposed to be: 'k3d image import --cluster myCluster image:tag', but it fails with "Failed to start exec process in node 'k3d-myCluster-tools'" On kind it works fine with 'kind load docker-image --name myCluster image:tag'. I'm using WSL2.

You might take a look at my script https://github.com/MoserMichael/kind-helper , sets up local regustry with kind so you can do without image import. (Comes with test case/example))

Re: Do I Need Kubernetes?

#130

Earlier quoted context omitted.

> people were amazed by the productivity gains Yeah, docker compose is great for running distributed apps locally when everything “just works”. The problem is that it also impedes development when the compose setup isn’t fully optimized. I work on dockerized rails apps, and whenever a new dependency is added, it can take 15 minutes to rebuild the image, which completely breaks my flow. Docker also creates a ton of da…

At my current company, since I'm using gRPC, the build contexts for my containers are annoyingly large and I'm definitely feeling this. It's a massive pain and really annoys me but If I had to choose between 40 minutes of stressful debugging of someone else's config files vs 40 minutes of waiting for a command to finish, I'd take the latter. Long term I'm planning on moving these builds to bazel and taking advantage…

Why not just have a shared volume for your dependencies? That way nothing needs to rebuild.

Then just have a different Docker-compose config for prod

Post reply on HN