run k3s deploys as root
This commit is contained in:
@@ -35,14 +35,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf opts.enable {
|
|
||||||
users.groups.nimh = { };
|
|
||||||
users.users.nimh = {
|
|
||||||
isSystemUser = true;
|
|
||||||
createHome = false;
|
|
||||||
group = "nimh";
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services.nimh-static = {
|
systemd.services.nimh-static = {
|
||||||
description = "oneshot apply service to k3s";
|
description = "oneshot apply service to k3s";
|
||||||
after = [ "k3s.service" ];
|
after = [ "k3s.service" ];
|
||||||
@@ -62,8 +54,8 @@
|
|||||||
$kubectl apply -k $kubernetes_config
|
$kubectl apply -k $kubernetes_config
|
||||||
'';
|
'';
|
||||||
|
|
||||||
User = "nimh";
|
User = "root";
|
||||||
Group = "nimh";
|
Group = "root";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user