Nix-Config/modules/k3s/deployments/ubuntu-test.nix

34 lines
No EOL
703 B
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";
}
];
}
];
volumes = [
{
name = "test";
persistentVolumeClaim = {
claimName = "nfs-main-pvc";
};
}
];
};
}
];
}