64 lines
No EOL
1.6 KiB
Nix
64 lines
No EOL
1.6 KiB
Nix
{ ... }:
|
|
{
|
|
ubuntu-test.content = [
|
|
{
|
|
apiVersion = "apps/v1";
|
|
kind = "Deployment";
|
|
metadata = {
|
|
name = "ubuntu-test";
|
|
labels.app = "ubuntu-test";
|
|
};
|
|
spec = {
|
|
selector.matchLabels.app = "ubuntu-test";
|
|
template = {
|
|
metadata = {
|
|
labels.app = "ubuntu-test";
|
|
};
|
|
spec = {
|
|
containers = [
|
|
{
|
|
name = "ubuntu-test";
|
|
image = "ubuntu:26.04";
|
|
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 = "10.5.0.2:3260";
|
|
iqn = "iqn.2026-01.dev.nyxerinys:poseidon.authentik";
|
|
lun = 0;
|
|
fsType = "xfs";
|
|
readOnly = false;
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|
|
];
|
|
} |