rsshfs conatiners
This commit is contained in:
parent
67308d26e9
commit
9291374d2e
8 changed files with 343 additions and 1 deletions
|
|
@ -22,6 +22,20 @@ in
|
|||
runAsUser = 1000;
|
||||
runAsGroup = 1000;
|
||||
};
|
||||
initContainers = [
|
||||
{
|
||||
name = "rssfs";
|
||||
image = "rsshfs-client:latest";
|
||||
args = ["/bin/rsshfs" "rsshfs-server" "/data" "/containers/authentik"];
|
||||
restartPolicy = "Always";
|
||||
volumeMounts = [
|
||||
{
|
||||
mountPath = "/data";
|
||||
name = "iscsi";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
containers = [
|
||||
{
|
||||
name = "authentik-postgres";
|
||||
|
|
|
|||
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