Live data from Hacker News

There are only 12 binaries in Talos Linux

siderolabs.com

1–10 of 73 posts

Re: There are only 12 binaries in Talos Linux

#2
>As opposed to systemd which is over 3000 lines of C code I’ll never comprehend.

Well, technically true, but systemd is a whole lot more than 3000 lines...

I can see another binary in the demo video called apid, does that one not count?

Any comparison with Bottlerocket OS?

Re: There are only 12 binaries in Talos Linux

#3
post #2

>As opposed to systemd which is over 3000 lines of C code I’ll never comprehend. Well, technically true, but systemd is a whole lot more than 3000 lines... I can see another binary in the demo video called apid, does that one not count? Any comparison with Bottlerocket OS?

Many of the binaries you see in the demo video are showing processes running from inside containers. There will be a lot more processes once you start pulling containers and starting containerized services.

Notably the kubelet is also missing from the list because it's not built into the OS but pulled as needed from the correct version of Kubernetes requested.

Bottlerocket runs systemd and also runs 2 versions of containerd. One for the system and one for workloads. This (in theory) hardens the OS more, but in practice makes things extremely annoying to manage because you have to get a shell on the host to access the API.

disclaimer, I used to work at AWS on EKS and closely with the Bottlerocket team.

Re: There are only 12 binaries in Talos Linux

#4
post #2

>As opposed to systemd which is over 3000 lines of C code I’ll never comprehend. Well, technically true, but systemd is a whole lot more than 3000 lines... I can see another binary in the demo video called apid, does that one not count? Any comparison with Bottlerocket OS?

The systemd hate is getting long in the tooth now. It's not like it doesn't do anything with its line count, or that the code is obfuscated.

Re: There are only 12 binaries in Talos Linux

#5
post #4
post #2

>As opposed to systemd which is over 3000 lines of C code I’ll never comprehend. Well, technically true, but systemd is a whole lot more than 3000 lines... I can see another binary in the demo video called apid, does that one not count? Any comparison with Bottlerocket OS?

The systemd hate is getting long in the tooth now. It's not like it doesn't do anything with its line count, or that the code is obfuscated.

I’m actually a big fan of systemd. It’s an awesome, general purpose, and flexible init system.

I don’t think the complexity it brings is required for Kubernetes.

Re: There are only 12 binaries in Talos Linux

#6
post #2

>As opposed to systemd which is over 3000 lines of C code I’ll never comprehend. Well, technically true, but systemd is a whole lot more than 3000 lines... I can see another binary in the demo video called apid, does that one not count? Any comparison with Bottlerocket OS?

In retrospect, it would've saved a lot of trouble and misunderstandings if systemd had called the init daemon "systemd-init" to make it clear that not literally everything that is under the umbrella is part of the init daemon.

Re: There are only 12 binaries in Talos Linux

#7
SystemD bashing aside :p Talos is pretty awesome for setting up clusters. At home I just run talos with matchbox for PXE bootstrapping it works like a charm. Been really easy to maintain too. I normally just update matchbox and then reset a machine at a time with talos ctl for a clean install. It's something very reassuring with completely reset your machines so you know you could reinstall or replace them easily.

Granted just used in a home setting running smaller workloads for backups, private projects, git etc.

Re: There are only 12 binaries in Talos Linux

#9
It's disingenuous to say that /sbin/init (machined/main.go) is less than 400 lines of code. Sure, that file is. What about all of the in-tree modules that are being imported? A super lazy summing of Go lines in the master branch of the repo:

$ find . -name *.go | xargs wc -l | tail -1

  354085 total
Heck, there are almost 100k lines under internal/app!

$ find internal/app -name *.go | xargs wc -l | tail -1

  96885 total
I'm curious what argument you are making here with regards to the number of lines in a single file.

Re: There are only 12 binaries in Talos Linux

#10
Big fan of Talos, have used it in some homelab + cloud clusters over the years, currently powers all my self-hosting. The `talosctl` command is great, and any time you need to do node-level debugging, there's always something like node-shell [1].

[1] https://github.com/kvaps/kubectl-node-shell

Post reply on HN