try using a device plugin

This commit is contained in:
nyxerinys 2026-07-03 08:42:34 -05:00
parent 5eb30305f6
commit ea7f50bf9d
4 changed files with 131 additions and 16 deletions

View file

@ -15,6 +15,7 @@
labels.app = "storage-combo";
};
spec = {
hostUsers = false;
containers = [
{
name = "storage-combo";
@ -26,12 +27,13 @@
containerPort = 2222;
}
];
volumeMounts = [
{
name = "fuse-device";
mountPath = "/dev/fuse";
}
];
resources.limits."devic.es/fuse" = 1;
# volumeMounts = [
# {
# name = "fuse-device";
# mountPath = "/dev/fuse";
# }
# ];
securityContext = {
allowPrivilegeEscalation = true;
capabilities.add = ["SYS_ADMIN"];
@ -42,15 +44,15 @@
};
}
];
volumes = [
{
name = "fuse-device";
hostPath = {
path = "/dev/fuse";
type = "CharDevice";
};
}
];
# volumes = [
# {
# name = "fuse-device";
# hostPath = {
# path = "/dev/fuse";
# type = "CharDevice";
# };
# }
# ];
};
};
};