From 0e7f783fa24c32067bd7886acc13f461f4d44570 Mon Sep 17 00:00:00 2001 From: Robert Krahn Date: Fri, 7 Jun 2024 21:42:31 +0200 Subject: k3s: add bash to runtime deps for tailscale When setting up k3s to use tailscale as a network backend, the flannel go library (used by k3s by default) depends on the `sh` binary to execute commands, in particular to run `PostStartupCommand` and `ShutdownCommand` commands. Without having bash/sh available, the network setup process will fail with: ``` flannel exited: failed to register flannel network: failed to run command: tailscale set --accept-routes --advertise-routes=$SUBNET Err: exec: \"sh\": executable file not found in $PATH ``` This fixes that. ref #317223 --- pkgs/applications/networking/cluster/k3s/builder.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/networking/cluster/k3s/builder.nix b/pkgs/applications/networking/cluster/k3s/builder.nix index 247ab0f339daa..9f2909802f911 100644 --- a/pkgs/applications/networking/cluster/k3s/builder.nix +++ b/pkgs/applications/networking/cluster/k3s/builder.nix @@ -338,6 +338,7 @@ buildGoModule rec { util-linux # kubelet wants 'nsenter' from util-linux: https://github.com/kubernetes/kubernetes/issues/26093#issuecomment-705994388 conntrack-tools runc + bash ]; k3sKillallDeps = [ -- cgit 1.4.1