Add plugin package for embedding nix-snapshotter in containerd#112
Add plugin package for embedding nix-snapshotter in containerd#112
Conversation
|
We can depend on In my opinion, since this is short-lived anyway, I'd like to keep it dead simple and just copy & paste. We should file an issue to nixpkgs about making overriding k3s possible. |
|
The changes to k3s I've maintain in a fork here: hinshun/k3s@9b1247f We should avoid reviewing it in the fork or the patch in this PR, instead review it in the upstream k3s PR: k3s-io/k3s#9319 |
3de51b9 to
e4ecb07
Compare
e4ecb07 to
fe6873b
Compare
Due to rootless k3s being in its own namespaces (via rootlesskit), it's not possible for an external rootless containerd to be set up with rootless k3s. The only way forward is adding support for nix-snapshotter to k3s upstream by providing a builtin plugin that can be compiled with the containerd embedded in k3s.
This PR provides the
pluginpackage that allows compiling containerd with nix-snapshotter support.It also includes a commit that has a k3s patch to run with nix-snapshotter support. Since k3s derivation is very difficult to overlay, we include the derivations in-tree to make the changes locally. Once we land support in upstream k3s this can all be deleted.
k3s changes for nix-snapshotter support: hinshun/k3s@9b1247f