feat(kms): Move to separate namespace

This commit is contained in:
Pim Kunis 2024-07-14 13:58:08 +02:00
parent 3223347964
commit e4b7b69bbb
5 changed files with 14 additions and 14 deletions

View file

@ -54,6 +54,8 @@ The second method: `nix run '.#kubenix.x86_64-linux.<application>.deploy'`
Currently, the applications being deployed like this are: Currently, the applications being deployed like this are:
- `cyberchef` - `cyberchef`
- `freshrss` - `freshrss`
- `radicale`
- `kms`
## Known bugs ## Known bugs

View file

@ -38,7 +38,7 @@
mkDeployScriptAndManifest = module: applyset: namespace: mkDeployScriptAndManifest = module: applyset: namespace:
let let
kubernetes = (kubenix.evalModules.${system} { kubernetes = (kubenix.evalModules.${system} {
specialArgs = { inherit namespace; }; specialArgs = { inherit namespace myLib; };
module = { kubenix, ... }: module = { kubenix, ... }:
{ {
@ -70,4 +70,6 @@
"${self}/kubenix-modules/freshrss.nix" "freshrss" "freshrss"; "${self}/kubenix-modules/freshrss.nix" "freshrss" "freshrss";
kubenix.radicale = mkDeployScriptAndManifest kubenix.radicale = mkDeployScriptAndManifest
"${self}/kubenix-modules/radicale.nix" "radicale" "radicale"; "${self}/kubenix-modules/radicale.nix" "radicale" "radicale";
kubenix.kms = mkDeployScriptAndManifest
"${self}/kubenix-modules/kms.nix" "kms" "kms";
}) })

View file

@ -1,6 +1,5 @@
let let
applications = [ applications = [
./kms.nix
./inbucket.nix ./inbucket.nix
./syncthing.nix ./syncthing.nix
./nextcloud.nix ./nextcloud.nix

View file

@ -64,6 +64,7 @@
cyberchef = { }; cyberchef = { };
freshrss = { }; freshrss = { };
radicale = { }; radicale = { };
kms = { };
}; };
nodes = nodes =

View file

@ -1,9 +1,6 @@
{ myLib, ... }: { { myLib, ... }: {
kubernetes.resources = { kubernetes.resources = {
deployments.kms = { deployments.server.spec = {
metadata.labels.app = "kms";
spec = {
selector.matchLabels.app = "kms"; selector.matchLabels.app = "kms";
template = { template = {
@ -15,9 +12,8 @@
}; };
}; };
}; };
};
services.kms.spec = { services.server.spec = {
type = "LoadBalancer"; type = "LoadBalancer";
loadBalancerIP = myLib.globals.kmsIPv4; loadBalancerIP = myLib.globals.kmsIPv4;
selector.app = "kms"; selector.app = "kms";