nixos-servers/kubenix-modules/atticd.nix

43 lines
744 B
Nix
Raw Normal View History

2024-04-26 21:32:31 +00:00
{
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";
};
};
};
}