43 lines
744 B
Nix
43 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";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|