add attic deployment
update blog image
This commit is contained in:
parent
d833b055ee
commit
f8b0e13356
3 changed files with 44 additions and 1 deletions
|
@ -25,5 +25,6 @@
|
|||
./custom/nfs-volume.nix
|
||||
./traefik.nix
|
||||
./blog.nix
|
||||
./atticd.nix
|
||||
];
|
||||
}
|
||||
|
|
42
kubenix-modules/atticd.nix
Normal file
42
kubenix-modules/atticd.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
spec = {
|
||||
containers.blog = {
|
||||
image = "git.kun.is/pim/static:test3";
|
||||
image = "git.kun.is/home/blog-pim:5a7cb47dd4a8b6286f6987781683b174cd280b95";
|
||||
ports.web.containerPort = 80;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue