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