k3s pvc test

This commit is contained in:
NyxErinys 2026-05-22 01:54:55 -05:00
parent 6207af6aef
commit 1cbae0c65f
3 changed files with 86 additions and 1 deletions

View file

@ -0,0 +1,34 @@
{ ... }:
{
ubuntu-test.content = [
{
apiVersion = "v1";
kind = "Pod";
metadata.name = "ubuntu";
spec = {
containers = [
{
name = "ubuntu";
image = "ubuntu:latest";
command = [ "tail" "-f" "/dev/null" ];
volumeMounts = [
{
mountPath = "/test";
name = "test";
subPath = "ubuntu-test"
}
];
}
];
volumes = [
{
name = "test";
persistentVolumeClaim = {
claimName = "nfsMainPVC";
};
}
];
};
}
];
}