diff --git a/kubenix-modules/all.nix b/kubenix-modules/all.nix index d836c1d..52a2fe5 100644 --- a/kubenix-modules/all.nix +++ b/kubenix-modules/all.nix @@ -25,5 +25,6 @@ ./custom/nfs-volume.nix ./traefik.nix ./blog.nix + ./atticd.nix ]; } diff --git a/kubenix-modules/atticd.nix b/kubenix-modules/atticd.nix new file mode 100644 index 0000000..c3ab624 --- /dev/null +++ b/kubenix-modules/atticd.nix @@ -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"; + }; + }; + }; +} diff --git a/kubenix-modules/blog.nix b/kubenix-modules/blog.nix index 1a83a4b..06d3e77 100644 --- a/kubenix-modules/blog.nix +++ b/kubenix-modules/blog.nix @@ -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; }; };