53 lines
No EOL
1.2 KiB
Nix
53 lines
No EOL
1.2 KiB
Nix
{ ... }:
|
|
{
|
|
ubuntu-test.content = [
|
|
{
|
|
apiVersion = "v1";
|
|
kind = "Pod";
|
|
metadata.name = "ubuntu-test";
|
|
spec = {
|
|
containers = [
|
|
{
|
|
name = "ubuntu-test";
|
|
image = "ubuntu:latest";
|
|
command = [ "tail" "-f" "/dev/null" ];
|
|
volumeMounts = [
|
|
{
|
|
mountPath = "/test";
|
|
name = "test";
|
|
subPath = "ubuntu-test";
|
|
}
|
|
{
|
|
mountPath = "/test2";
|
|
name = "iscsi";
|
|
}
|
|
{
|
|
mountPath = "/test3";
|
|
name = "iscsi";
|
|
subPath = "test";
|
|
}
|
|
];
|
|
}
|
|
];
|
|
volumes = [
|
|
{
|
|
name = "test";
|
|
persistentVolumeClaim = {
|
|
claimName = "nfs-main-pvc";
|
|
};
|
|
}
|
|
{
|
|
name = "iscsi";
|
|
iscsi = {
|
|
targetPortal = "poseidon.nyxerinys.dev:3260";
|
|
iqn = "iqn.2026-01.dev.nyxerinys:poseidon.authentik";
|
|
lun = 0;
|
|
fsType = "xfs";
|
|
readOnly = false;
|
|
};
|
|
}
|
|
];
|
|
};
|
|
}
|
|
];
|
|
} |