News for hackers. Stuff that matters.
Re:Minikube quickly sets up a local Kubernetes cluster on ma... by de6u99er on Wednesday May 25, 2022 @04:02PM (#31509790)
My preferred installation method on Linux is via brew [1] opposed to the official installation instructions [2]. Additionally brew contains formulaes for kubectl, k9s, helm, and many other kubernetes related tools. It's the easiest way of keeping everything up2date on a developer machine.

[1] https://formulae.brew.sh/formula/minikube [2] https://minikube.sigs.k8s.io/docs/start/

Re:Minikube quickly sets up a local Kubernetes cluster on ma... by nicce on Wednesday May 25, 2022 @05:15PM (#31510666)
Wow, I did not realise that you can use brew outside of Mac. Thanks.
Re:Minikube quickly sets up a local Kubernetes cluster on ma... by solarkraft on Wednesday May 25, 2022 @05:35PM (#31510905)
I knew, but am surprised anyone actually uses it. Are there more of you?
Re:Minikube quickly sets up a local Kubernetes cluster on ma... by tjohns on Wednesday May 25, 2022 @07:08PM (#31512029)
I use it when working on Ubuntu/Debian LTS systems, since the Homebrew packages tend to be more significantly more up-to-date than whatever's packaged in the LTS Apt repositories.

As an added benefit, unlike apt, you don't need root to install (most) brew packages.

Re:Minikube quickly sets up a local Kubernetes cluster on ma... by hnarn on Thursday May 26, 2022 @02:38AM (#31515373)
Have you tried https://mpr.makedeb.org/ ?

It seems like it’s made for Debian based systems, much like the AUR for Arch.

Re:Minikube quickly sets up a local Kubernetes cluster on ma... by qbasic_forever on Wednesday May 25, 2022 @05:45PM (#31511025)
Absolutely use and love homebrew on linux. All of the fun rust-based tools that get posted here on hackernews (exa, fd, ripgrep, fzf, etc.) are all there and much more up to date than apt. Heck, I find brew is more up to date than nix in some cases.
Re:Minikube quickly sets up a local Kubernetes cluster on ma... by jimmcslim on Wednesday May 25, 2022 @06:40PM (#31511730)
I have been using it on an WSL/Ubuntu instance just over the last few days... for some things its pretty handy (e.g. in the context of k8s I get a more up to date version of the excellent kubectx utility via brew than apt). But for others its bit of a pain, e.g. building Python through pyenv and using OpenSSL in brew, etc.
Re:Minikube quickly sets up a local Kubernetes cluster on ma... by francoispon on Thursday May 26, 2022 @10:16AM (#31518602)
always using brew on linux/osx, I wish they were supporting shipping binary /cask on Linux like on OSX (only recompiling)
Re:Minikube quickly sets up a local Kubernetes cluster on ma... by shepherdjerred on Thursday May 26, 2022 @12:22AM (#31514519)
I use it all of the time! It has a plethora of packages and they're often more up-to-date than the package manager of whatever distro I'm on (usually Debian or Amazon Linux 2).
Re:Minikube quickly sets up a local Kubernetes cluster on ma... by politelemon on Thursday May 26, 2022 @03:17AM (#31515619)
It's been there for a while but it's done as an afterthought which can lead to cascading problems, and it isn't a great idea to use it. It stomps all over the distro's Python and is generally insecure, it's much safer to use the distro's own package managers.

I believe it came about to cater to Mac developers that don't want to bother with Linux based package managers, this becomes an easy out, but as mentioned previously, is more of an afterthought.

Re:Minikube quickly sets up a local Kubernetes cluster on ma... by mulmen on Thursday May 26, 2022 @12:18AM (#31514473)
Is there a reason these aren't just in the native package managers? Licensing? It blows my mind I can't install a RHEL-alike and run `dnf install kubernetes` and just, like, have what I need. Sure, maybe I have to pick a container runtime, fine. This is even more astonishing when you realize Fedora CoreOS has no actual RPM for kubernetes even though it is ostensibly a container hosting OS. How do I let rpm-ostree run wild and keep kubernetes at a compatible version?

The installation steps for Kubernetes and the rest of the ecosystem like minikube and helm are all essentially `wget install.sh | sh`. What am I missing? How do people do this in production environments?

Re:Minikube quickly sets up a local Kubernetes cluster on ma... by arinlen on Thursday May 26, 2022 @04:07AM (#31515900)
> Is there a reason these aren't just in the native package managers?

Some major Linux distros do ship with official k8s packages. For instance, Ubuntu even dedicates an article on how to deploy multiple k8s choices.

https://ubuntu.com/kubernetes/install

Re:Minikube quickly sets up a local Kubernetes cluster on ma... by mulmen on Thursday May 26, 2022 @05:16AM (#31516264)
That only has options to install microk8s with snap.
Re:Minikube quickly sets up a local Kubernetes cluster on ma... by purerandomness on Wednesday May 25, 2022 @05:41PM (#31510972)
Why not use your distribution's native package installer?
Re:Minikube quickly sets up a local Kubernetes cluster on ma... by qbasic_forever on Wednesday May 25, 2022 @05:44PM (#31511005)
k8s ecosystem tools are fast changing and native package repos are woefully out of date. Minikube in particular has a habit of just straight up breaking and requires a lot of reading long github issues only to realize there's a fix in a version just pushed 24 hours ago.
Re:Minikube quickly sets up a local Kubernetes cluster on ma... by arinlen on Thursday May 26, 2022 @04:16AM (#31515953)
> k8s ecosystem tools are fast changing and native package repos are woefully out of date. Minikube in particular has a habit of just straight up breaking and requires a lot of reading long github issues only to realize there's a fix in a version just pushed 24 hours ago.

I don't understand what point you tried to make. If what you want is a stable install to avoid breaking changes pushed in unstable releases, why not stick with a working install just like what you get with brew?

I don't see how using exotic non-standard package managers make releases more stable.

Re:Minikube quickly sets up a local Kubernetes cluster on ma... by qbasic_forever on Thursday May 26, 2022 @11:29AM (#31519556)
Brew doesn't give you a stable or repeatable install. You can't pin tools to specific versions, they'll get updated whenever you update brew. This is by design and kinda the core ethos of brew. The k8s tooling is generally all meant to have you using the bleeding edge stuff--every tool readme usually says get the latest build from a github release package, brew just effectively does that automatically.
Re:Minikube quickly sets up a local Kubernetes cluster on ma... by disgruntledphd2 on Thursday May 26, 2022 @04:23AM (#31515988)
Brew will, by default update everything it manages when you run it.

Depending on your perspective, this is either horrifying and annoying or the best thing since sliced bread.

Re:Minikube quickly sets up a local Kubernetes cluster on ma... by mulmen on Thursday May 26, 2022 @12:25AM (#31514533)
Huh. I guess that makes sense? But can't the tools just host their own rpm and deb repos? I guess that's too much operational overhead? Seems like an operational nightmare to run this in prod without the os-level package managers. Are production environments rolling their own RPMs?
Re:Minikube quickly sets up a local Kubernetes cluster on ma... by vbezhenar on Thursday May 26, 2022 @06:30AM (#31516709)
At this point it seems to be that making Kubernetes nearly impossible to self-host is a whole point. You either pay money to dedicated experts or pay money to clouds.