add attic deployment

update blog image
This commit is contained in:
Pim Kunis 2024-04-26 23:32:31 +02:00
parent d833b055ee
commit f8b0e13356
3 changed files with 44 additions and 1 deletions

View file

@ -25,5 +25,6 @@
./custom/nfs-volume.nix ./custom/nfs-volume.nix
./traefik.nix ./traefik.nix
./blog.nix ./blog.nix
./atticd.nix
]; ];
} }

View file

@ -0,0 +1,42 @@
{
kubernetes.resources = {
deployments.atticd = {
metadata.labels.app = "atticd";
spec = {
selector.matchLabels.app = "atticd";
template = {
metadata.labels.app = "atticd";
spec = {
containers.atticd = {
image = "git.kun.is/pim/atticd-nix-image:test";
ports.web.containerPort = 8080;
};
};
};
};
};
services.atticd.spec = {
selector.app = "atticd";
ports.web = {
port = 80;
targetPort = "web";
};
};
};
lab = {
ingresses.atticd = {
host = "attic.kun.is";
service = {
name = "atticd";
portName = "web";
};
};
};
}

View file

@ -11,7 +11,7 @@
spec = { spec = {
containers.blog = { containers.blog = {
image = "git.kun.is/pim/static:test3"; image = "git.kun.is/home/blog-pim:5a7cb47dd4a8b6286f6987781683b174cd280b95";
ports.web.containerPort = 80; ports.web.containerPort = 80;
}; };
}; };