News for hackers. Stuff that matters.
Re:Why Fix Kubernetes and Systemd? by rwmj on Sunday September 18, 2022 @12:25PM (#32888830)

  Lack of Unix philosophy
  [...]
  Missing rest/gRPC/json API
OK ...
Re:Why Fix Kubernetes and Systemd? by yjftsjthsd-h on Sunday September 18, 2022 @12:34PM (#32888919)
Those certainly do look a little funny next to each other in the same list, but I think it's fair to argue that it's a situation where one tool is being used in cases that don't really overlap properly and it creates tension on both sides.

Edit after further reflection: Alternatively, perhaps both of those complaints could be summarized as poor ability to interoperate with other tooling, in which case they really do fit together.

Re:Why Fix Kubernetes and Systemd? by kris-nova on Sunday September 18, 2022 @12:39PM (#32888962)
Yeah -- I think I was just reciting what I hear folks say a lot. Basically its IPC and a stable interface for clients that is the core of the concern. Thats really what the takeaway is.
Re:Why Fix Kubernetes and Systemd? by mariusor on Sunday September 18, 2022 @12:52PM (#32889087)
But Systemd has IPC and a stable interface for clients, it's "the D-Bus interface of systemd"[1]. I would think that exposing that over http would be a little reckless, but I'm sure one can create a proxy that can do it in a "secure"-ish way.

[1] https://www.freedesktop.org/software/systemd/man/org.freedes...

Re:Why Fix Kubernetes and Systemd? by mike_hearn on Sunday September 18, 2022 @01:44PM (#32889604)
There is this:

    systemctl --host=whatever.abc status apache2
It uses ssh and UNIX domain socket forwarding behind the scenes. There's a writeup of how to do this with minimal privs here:

https://sleeplessbeastie.eu/2021/03/03/how-to-manage-systemd...

If you want to speak the protocol without the systemctl program then you can do the same trick. Use an SSH library, connect to the dbus socket and connect to systemd. You do need a dbus library though. They are less common than HTTP stacks.

Re:Why Fix Kubernetes and Systemd? by mariusor on Sunday September 18, 2022 @04:01PM (#32890955)
TIL. I had no idea the systemd team implemented something like this already, it's great info, thank you. :)
Re:Why Fix Kubernetes and Systemd? by customkitchen on Monday September 19, 2022 @06:11PM (#32904811)
>They are less common than HTTP stacks.

libsystemd includes a d-bus library for exactly this reason.

Re:Why Fix Kubernetes and Systemd? by drewcoo on Sunday September 18, 2022 @12:47PM (#32889033)
I think those are meant differently.

I don't think "Unix philosophy" means "communicate via streams" in this context. I think it means things like the single responsibility principle. Once we introduce APIs, we can't just chain services together with pipes.

But I agree that this use of "Unix philosophy" is confusing.

Re:Why Fix Kubernetes and Systemd? by kris-nova on Sunday September 18, 2022 @01:33PM (#32889508)
That section of the post seemed to be generating a lot of friction. I revised the language a little bit.

I think the original sound-byte I was trying to capture was "do one thing" which in my opinion neither Kubernetes nor Systemd do. To be fair -- neither would Aurae. So I just scrapped the entire comment.

I wasn't trying to nitpick systemd as much as I was trying to draw attention to the fact that it does in fact -- get nit picked -- and often unnecessarily.

Re:Why Fix Kubernetes and Systemd? by pjmlp on Sunday September 18, 2022 @01:02PM (#32889203)
Plus systemd isn't UNIX, but going with Plan 9 concepts is now UNIX?

Yeah, right.

Re:Why Fix Kubernetes and Systemd? by jmclnx on Sunday September 18, 2022 @02:17PM (#32889935)
Plan 9 was designed as an advancement on UNIX, where 100% of everything is a file.

so, I say yes

Re:Why Fix Kubernetes and Systemd? by pjmlp on Sunday September 18, 2022 @04:49PM (#32891384)
Except the small detail it isn't POSIX, and the C compiler is somehow special in its ways.