nixos-servers/kubenix-modules/atticd.nix
2024-04-26 23:32:31 +02:00

42 lines
744 B
Nix

{
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";
};
};
};
}