rsshfs conatiners
This commit is contained in:
parent
67308d26e9
commit
9291374d2e
8 changed files with 343 additions and 1 deletions
51
modules/k3s/deployments/storage-combo.nix
Normal file
51
modules/k3s/deployments/storage-combo.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{ ... }:
|
||||
{
|
||||
storage-combo.content = [
|
||||
{
|
||||
apiVersion = "apps/v1";
|
||||
kind = "Deployment";
|
||||
metadata = {
|
||||
name = "storage-combo";
|
||||
labels.app = "storage-combo";
|
||||
};
|
||||
spec = {
|
||||
selector.matchLabels.app = "storage-combo";
|
||||
template = {
|
||||
metadata = {
|
||||
labels.app = "storage-combo";
|
||||
};
|
||||
spec = {
|
||||
containers = [
|
||||
{
|
||||
name = "storage-combo";
|
||||
image = "rsshfs-server:latest";
|
||||
ports = [
|
||||
{
|
||||
name = "ssh-port";
|
||||
containerPort = 2222;
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
{
|
||||
apiVersion = "v1";
|
||||
kind = "Service";
|
||||
metadata.name = "rsshfs-server";
|
||||
spec = {
|
||||
selector.app = "storage-combo";
|
||||
ports = [
|
||||
{
|
||||
name = "ssh-port";
|
||||
portocol = "TCP";
|
||||
port = 22;
|
||||
targetport = 2222;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue