generate kubernetes container from modular service #620

Closed
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` - [`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)) - kubernetes manifests: - types - [kubenix](https://kubenix.org/): more limited? - [nixifest](https://bitbloxhub.github.io/nixifest/): seems more generalized - content - [sample metadata implementation + k8s manifest generation](https://github.com/KiaraGrouwstra/nixpkgs/pull/new/modular-metadata) - [ ] [ports](https://github.com/NixOS/nixpkgs/issues/490640) - [ ] user - [ ] directories - [ ] capabilities - [ ] [environment](https://github.com/NixOS/nixpkgs/pull/518860) - [ ] [reload](https://github.com/NixOS/nixpkgs/pull/518717) - 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/), not sure if open-sourced - [`nix-snapshotter`](https://github.com/pdtpartners/nix-snapshotter): older, targets containerd - [`nix-storage-plugin`](https://github.com/bitbloxhub/nix-storage-plugin): targets podman/CRIO/... - [needs](https://discourse.nixos.org/t/nixifest-generate-kubernetes-manifests-from-nix/79687/11) [`container-libs patch`](https://github.com/podman-container-tools/container-libs/compare/main...bitbloxhub:container-libs:als-first) - also see [Morgan Helton's talks](https://www.socallinuxexpo.org/scale/speaker/morgan-helton): - [PlanetNix 2026: From Nix to Kubernetes: No Image Layover](https://www.youtube.com/watch?v=_Y40JOcWgOw) - [Deterministically Built Containers or: How I Learned to Stop Worrying and Love Nix](https://www.youtube.com/watch?v=QkI6OhJSoI8) - kubernetes concerns: - specifying (anti) affinity to ensure/prevent co-location - anti-affinity: redundancy (matching consuming regions?), particularly in back-ups - affinity - one-off: [init](https://kubernetes.io/docs/concepts/workloads/pods/init-containers/) containers - 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
kiara closed this issue 2026-06-06 15:58:05 +02: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.

Blocks Depends on
#1963 OCI deployment
fediversity/fediversity
Reference
fediversity/fediversity#620
No description provided.