hopefully final fix
This commit is contained in:
parent
000e652e8f
commit
34f7a34231
3 changed files with 17 additions and 1 deletions
|
|
@ -20,6 +20,9 @@ in
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
boot.kernelModules = [ "fuse" ];
|
||||
programs.fuse.userAllowOther = true;
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
6443 # k3s, api server
|
||||
2379 # k3s, etcd clients
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
securityContext = {
|
||||
runAsUser = 1000;
|
||||
runAsGroup = 1000;
|
||||
capabilities.add = ["SYS_ADMIN"];
|
||||
};
|
||||
containers = [
|
||||
{
|
||||
|
|
@ -30,6 +31,18 @@
|
|||
containerPort = 2222;
|
||||
}
|
||||
];
|
||||
volumeMounts = [
|
||||
{
|
||||
name = "fuse-device";
|
||||
mountPath = "/dev/fuse";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
volumes = [
|
||||
{
|
||||
name = "fuse-device";
|
||||
hostpath.path = "/dev/fuse";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ let
|
|||
|
||||
# MAIN SCRIPT
|
||||
echo "[ Creating ssh connection socket ]"
|
||||
$SSHCMD -MfNx dev@$host
|
||||
$SSHCMD -MfNx dev@$Host
|
||||
|
||||
echo "[ Opening ssh reverse proxy ]"
|
||||
PORT=$($SSHCMD -O forward -R 0:localhost:2222 null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue