feat(inbucket): Move to separate k8s namespace

This commit is contained in:
Pim Kunis 2024-07-16 19:56:18 +02:00
parent af9f72b76a
commit e9307da90d
5 changed files with 18 additions and 19 deletions

View file

@ -67,6 +67,7 @@ Currently, the applications being deployed like this are:
- `pihole`
- `immich`
- `attic`
- `inbucket`
## Known bugs

View file

@ -94,4 +94,6 @@
"${self}/kubenix-modules/immich.nix" "immich" "immich";
kubenix.attic = mkDeployScriptAndManifest
"${self}/kubenix-modules/attic.nix" "attic" "attic";
kubenix.inbucket = mkDeployScriptAndManifest
"${self}/kubenix-modules/inbucket.nix" "inbucket" "inbucket";
})

View file

@ -1,6 +1,5 @@
let
applications = [
./inbucket.nix
./media.nix
./bind9
./dnsmasq.nix

View file

@ -75,6 +75,7 @@
pihole = { };
immich = { };
attic = { };
inbucket = { };
};
nodes =

View file

@ -1,9 +1,6 @@
{ lib, myLib, ... }: {
{ myLib, ... }: {
kubernetes.resources = {
deployments.inbucket = {
metadata.labels.app = "inbucket";
spec = {
deployments.inbucket.spec = {
selector.matchLabels.app = "inbucket";
template = {
@ -21,10 +18,9 @@
};
};
};
};
services = {
inbucket-web.spec = {
web.spec = {
selector.app = "inbucket";
ports.web = {
@ -33,7 +29,7 @@
};
};
inbucket-email.spec = {
email.spec = {
type = "LoadBalancer";
loadBalancerIP = myLib.globals.inbucketIPv4;
selector.app = "inbucket";
@ -51,7 +47,7 @@
entrypoint = "localsecure";
service = {
name = "inbucket-web";
name = "web";
portName = "web";
};
};