nixos-servers/kubenix-modules/blog.nix
2024-04-27 20:53:32 +02:00

40 lines
726 B
Nix

{
kubernetes.resources = {
deployments.blog = {
metadata.labels.app = "blog";
spec = {
selector.matchLabels.app = "blog";
template = {
metadata.labels.app = "blog";
spec = {
containers.blog = {
image = "git.kun.is/home/blog-pim:fd910d91c2143295e959d2c903e9ea25cf94ba27";
ports.web.containerPort = 80;
};
};
};
};
};
services.blog.spec = {
selector.app = "blog";
ports.web = {
port = 80;
targetPort = "web";
};
};
};
lab.ingresses.blog = {
host = "pim.kun.is";
service = {
name = "blog";
portName = "web";
};
};
}