Nix-Config/modules/k3s/deployments/ubuntu-test.nix
2026-05-26 06:40:09 -05:00

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 = "ubuntu-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;
};
}
];
};
}
];
}