about summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/k3s
diff options
context:
space:
mode:
authorRobert Krahn <robert.krahn@gmail.com>2024-06-07 21:42:31 +0200
committerRobert Krahn <robert.krahn@gmail.com>2024-06-07 21:42:31 +0200
commit0e7f783fa24c32067bd7886acc13f461f4d44570 (patch)
treebf4e521c165f0971be23e771fb847743bf55ad1f /pkgs/applications/networking/cluster/k3s
parent56446ff9fe8cd67cbcda49d9e3128805dc7aa3f0 (diff)
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
Diffstat (limited to 'pkgs/applications/networking/cluster/k3s')
-rw-r--r--pkgs/applications/networking/cluster/k3s/builder.nix1
1 files changed, 1 insertions, 0 deletions
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 = [