all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Kubernetes on Guix
@ 2024-07-15  0:26 Michael Dahlberg
  2024-07-16 18:46 ` Thomas Ieong
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Michael Dahlberg @ 2024-07-15  0:26 UTC (permalink / raw)
  To: help-guix@gnu.org

I'm still a bit new to Guix but not to systems administration and devops. I'd like to try running a Kubernetes cluster on bare metal systems running Guix. I don't think there should be too many gotcha's other than the lack of the systemd init system, especially if I want to install the basic elements of Kubernetes outsides of the Guix package management system .. which I'd rather not do. This gets me to my question: is Guix an appropriate environment to run a Kubernetes cluster and if so do you have any recommendations?

Thanks,
Mike

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Kubernetes on Guix
  2024-07-15  0:26 Kubernetes on Guix Michael Dahlberg
@ 2024-07-16 18:46 ` Thomas Ieong
  2024-07-18 15:58   ` Christoph Buck
  2024-07-17  9:29 ` Oleg Pykhalov
  2024-07-17 20:51 ` Felix Lechner via
  2 siblings, 1 reply; 5+ messages in thread
From: Thomas Ieong @ 2024-07-16 18:46 UTC (permalink / raw)
  To: Michael Dahlberg; +Cc: help-guix@gnu.org

Hey,

> is Guix an appropriate environment to run a Kubernetes
> cluster and if so do you have any recommendations?

I'm afraid that it isn't the case atleast for now, Kubernetes is not
packaged in Guix and I doubt that it will ever be, for two reasons:

1. Our Golang importer still needs some improvement and our Golang
ecosystem isn't in a great shape either, lot of outdated packages just
look at docker still in 20.3 version while upstream is at 26.x something

2. Kubernetes as a project just moves too fast, there is just not enough
manpower here to keep up with the pace. IIRC they struggles with this in
the debian world too:  https://lwn.net/Articles/835599/

Then even if you manage to properly package it, you'd need to define lot of
services definitions and config to integrate it and that's a lot of work.

If you still want to experiment here's a config from someone attempting
something similar:

https://codeberg.org/allana/guix-system/src/branch/main/allana/packages/kubernetes.scm







^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Kubernetes on Guix
  2024-07-15  0:26 Kubernetes on Guix Michael Dahlberg
  2024-07-16 18:46 ` Thomas Ieong
@ 2024-07-17  9:29 ` Oleg Pykhalov
  2024-07-17 20:51 ` Felix Lechner via
  2 siblings, 0 replies; 5+ messages in thread
From: Oleg Pykhalov @ 2024-07-17  9:29 UTC (permalink / raw)
  To: Michael Dahlberg; +Cc: help-guix@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1313 bytes --]

Hi Michael,

Michael Dahlberg <dahlberg@recursoft.org> writes:

> I'm still a bit new to Guix but not to systems administration and devops. I'd
> like to try running a Kubernetes cluster on bare metal systems running Guix. I
> don't think there should be too many gotcha's other than the lack of the
> systemd init system, especially if I want to install the basic elements of
> Kubernetes outsides of the Guix package management system .. which I'd rather
> not do. This gets me to my question: is Guix an appropriate environment to run
> a Kubernetes cluster and if so do you have any recommendations?

I have no problems with running Kubernetes on my Guix Systems, but you
need a knowledge of managing it's core components, because you probably
cannot relly of Kubernetes components deploy tools which most of the
time support only specific operating systems. In short you need:

- containerd
- kubelet with static pods
  - /etc/kubernetes/manifests/etcd.yaml
  - /etc/kubernetes/manifests/kube-apiserver.yaml
  - /etc/kubernetes/manifests/kube-controller-manager.yaml
  - /etc/kubernetes/manifests/kube-scheduler.yaml

you can take an example of config in my git repository, but it's kinda
dirty and probably you should do everything from scratch yourself
https://github.com/kitnil/dotfiles/


Regards,
Oleg.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Kubernetes on Guix
  2024-07-15  0:26 Kubernetes on Guix Michael Dahlberg
  2024-07-16 18:46 ` Thomas Ieong
  2024-07-17  9:29 ` Oleg Pykhalov
@ 2024-07-17 20:51 ` Felix Lechner via
  2 siblings, 0 replies; 5+ messages in thread
From: Felix Lechner via @ 2024-07-17 20:51 UTC (permalink / raw)
  To: Michael Dahlberg, help-guix@gnu.org

Hi Mike,

On Mon, Jul 15 2024, Michael Dahlberg wrote:

> is Guix an appropriate environment to run a Kubernetes cluster

As a meta-summary, it's probably one area where you could use your
considerable experience in system administration to help improve Guix.

Most of us are working hard to make Guix competitive.

From my experience, software runs a lot more stable in GNU Guix than in
other operating systems---once you figure out how to get it going.  My
ten-year old son just said the same thing last week.

Kind regards
Felix


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Kubernetes on Guix
  2024-07-16 18:46 ` Thomas Ieong
@ 2024-07-18 15:58   ` Christoph Buck
  0 siblings, 0 replies; 5+ messages in thread
From: Christoph Buck @ 2024-07-18 15:58 UTC (permalink / raw)
  To: Thomas Ieong; +Cc: Michael Dahlberg, help-guix@gnu.org

"Thomas Ieong" <th.ieong@free.fr> writes:

> Hey,

Hi Thomas!

> I'm afraid that it isn't the case atleast for now, Kubernetes is not
> packaged in Guix and I doubt that it will ever be, for two reasons:
>
> 1. Our Golang importer still needs some improvement and our Golang
> ecosystem isn't in a great shape either, lot of outdated packages just
> look at docker still in 20.3 version while upstream is at 26.x something
>
> 2. Kubernetes as a project just moves too fast, there is just not enough
> manpower here to keep up with the pace. IIRC they struggles with this in
> the debian world too:  https://lwn.net/Articles/835599/
>
> Then even if you manage to properly package it, you'd need to define lot of
> services definitions and config to integrate it and that's a lot of
> work.

Maybe k3s[1], a lightweight kubernetes distribution, is an alternative
where packaging for guix is simpler?  Currently i use it in my homelab
running NixOs. In fact for me that is the most missed package in guix
ecosystem. NixOs allows me to delaratively describe a k3s node system,
spun it up on a fresh system and join it to my cluster within a matter
of few minutes.

I tried porting the nix package description ([2]) to guix, but the lack
of expierence with guix and the hard dependency on systemd was a show
stopper for me. Is it even possible to run k3s without systemd on guix?



[1] https://k3s.io/
[2] https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/cluster/k3s/builder.nix




-- 
Best regards

Christoph


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-07-18 15:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-15  0:26 Kubernetes on Guix Michael Dahlberg
2024-07-16 18:46 ` Thomas Ieong
2024-07-18 15:58   ` Christoph Buck
2024-07-17  9:29 ` Oleg Pykhalov
2024-07-17 20:51 ` Felix Lechner via

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.