try cdi
This commit is contained in:
parent
7001c58d39
commit
7a4fe282de
4 changed files with 42 additions and 21 deletions
|
|
@ -26,29 +26,30 @@
|
|||
containerPort = 2222;
|
||||
}
|
||||
];
|
||||
volumeMounts = [
|
||||
{
|
||||
name = "fuse-device";
|
||||
mountPath = "/dev/fuse";
|
||||
}
|
||||
];
|
||||
# volumeMounts = [
|
||||
# {
|
||||
# name = "fuse-device";
|
||||
# mountPath = "/dev/fuse";
|
||||
# }
|
||||
# ];
|
||||
resources.requests."cdi.k8s.io/cdi.nyxerinys.dev_fuse" = "1";
|
||||
securityContext = {
|
||||
capabilities.add = ["SYS_ADMIN"];
|
||||
privileged = false;
|
||||
runAsUser = 0;
|
||||
runAsGroup = 0;
|
||||
};
|
||||
}
|
||||
];
|
||||
volumes = [
|
||||
{
|
||||
name = "fuse-device";
|
||||
hostPath = {
|
||||
path = "/dev/fuse";
|
||||
type = "CharDevice";
|
||||
# privileged = false;
|
||||
# runAsUser = 0;
|
||||
# runAsGroup = 0;
|
||||
};
|
||||
}
|
||||
];
|
||||
# volumes = [
|
||||
# {
|
||||
# name = "fuse-device";
|
||||
# hostPath = {
|
||||
# path = "/dev/fuse";
|
||||
# type = "CharDevice";
|
||||
# };
|
||||
# }
|
||||
# ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue