fix(wip): Adds workaround for weird k3s issues.

This commit is contained in:
greysoh 2024-07-19 16:19:50 -04:00
parent 968d171699
commit 714aef3b90
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37
4 changed files with 44 additions and 16 deletions

View file

@ -5,10 +5,20 @@ in {
./commons.nix
];
services.k3s = {
systemd.services.k3s = {
enable = true;
role = "agent";
serverAddr = "https://kitteh-node-1-k3s-server:6443";
description = "(manual) k3s service";
path = [
pkgs.k3s
];
serviceConfig = {
Type = "simple";
ExecStart = pkgs.writeShellScript "k3s-hack" ''
k3s agent --token ${services.k3s.token} --server https://kitteh-node-1-k3s-server:6443
'';
};
};
virtualisation.docker.enable = true;