generate kubernetes container from modular service #620

Open
opened 2025-12-03 12:59:29 +01:00 by kiara · 0 comments
Owner

As a Fediversity maintainer,
given that applications use modular services (#623),
I want to generate Kubernetes container from such modular services,
so that we may shift to serving applications at the service level.

implementation notes

**As** a Fediversity maintainer, **given that** applications use modular services (#623), **I want** to generate Kubernetes container from such modular services, **so that** we may shift to serving applications at the service level. ### implementation notes - c.f. [`nix-to-kubernetes`](https://github.com/DeterminateSystems/nix-to-kubernetes/): kubernetes container from service `argv` - also needs to know [ports used](https://github.com/NixOS/nixpkgs/issues/490640) - [`nimi`](https://discourse.nixos.org/t/portable-rust-based-service-runner-for-the-experimental-modular-services-spec/74338) can create a container from a modular service, but does not handle metadata for the likes of k8s (and in their defense, this has [barely been exposed](https://github.com/NixOS/nixpkgs/issues/490813)) - [sample metadata implementation + k8s manifest generation](https://github.com/KiaraGrouwstra/nixpkgs/pull/new/modular-metadata) - skipping containers to directly use stuff in nix store - [`nix-sidecar`](https://www.socallinuxexpo.org/scale/22x/presentations/docker-was-too-slow-so-we-replaced-it-nix-production/) - [`nix-snapshotter`](https://github.com/pdtpartners/nix-snapshotter): older - kubernetes concerns: - specifying (anti) affinity to ensure/prevent co-location - (one-off) [init](https://kubernetes.io/docs/concepts/workloads/pods/init-containers/) or (constantly running) [sidecar](https://kubernetes.io/docs/concepts/workloads/pods/sidecar-containers/) containers - [outstanding challenges to facilitate this from modular services](https://github.com/NixOS/nixpkgs/issues/428084#issuecomment-3904556062)
kiara changed title from generate kubernetes container from portable service to generate kubernetes container from modular service 2026-02-14 15:54:00 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fediversity/fediversity#620
No description provided.