nixos-servers/kubenix-modules/blog.nix
Pim Kunis 0d2b2b90f7 feat(blog): Move to static-websites k8s namespace
refactor(cyberchef): Move to static-websites k8s namespace
2024-07-14 15:31:58 +02:00

37 lines
664 B
Nix

{ blog-pim, ... }: {
kubernetes.resources = {
deployments.blog.spec = {
replicas = 3;
selector.matchLabels.app = "blog";
template = {
metadata.labels.app = "blog";
spec = {
containers.blog = {
image = "git.kun.is/home/blog-pim:${blog-pim.rev}";
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";
};
};
}