nixos-servers/kubenix-modules/blog.nix

41 lines
720 B
Nix
Raw Permalink Normal View History

{ blog-pim, ... }: {
2024-04-22 21:46:59 +00:00
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:${blog-pim.rev}";
2024-04-22 21:46:59 +00:00
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";
};
};
}