feat(kms): Move to separate namespace
This commit is contained in:
parent
3223347964
commit
e4b7b69bbb
5 changed files with 14 additions and 14 deletions
|
@ -54,6 +54,8 @@ The second method: `nix run '.#kubenix.x86_64-linux.<application>.deploy'`
|
|||
Currently, the applications being deployed like this are:
|
||||
- `cyberchef`
|
||||
- `freshrss`
|
||||
- `radicale`
|
||||
- `kms`
|
||||
|
||||
## Known bugs
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
mkDeployScriptAndManifest = module: applyset: namespace:
|
||||
let
|
||||
kubernetes = (kubenix.evalModules.${system} {
|
||||
specialArgs = { inherit namespace; };
|
||||
specialArgs = { inherit namespace myLib; };
|
||||
|
||||
module = { kubenix, ... }:
|
||||
{
|
||||
|
@ -70,4 +70,6 @@
|
|||
"${self}/kubenix-modules/freshrss.nix" "freshrss" "freshrss";
|
||||
kubenix.radicale = mkDeployScriptAndManifest
|
||||
"${self}/kubenix-modules/radicale.nix" "radicale" "radicale";
|
||||
kubenix.kms = mkDeployScriptAndManifest
|
||||
"${self}/kubenix-modules/kms.nix" "kms" "kms";
|
||||
})
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
let
|
||||
applications = [
|
||||
./kms.nix
|
||||
./inbucket.nix
|
||||
./syncthing.nix
|
||||
./nextcloud.nix
|
||||
|
|
|
@ -64,6 +64,7 @@
|
|||
cyberchef = { };
|
||||
freshrss = { };
|
||||
radicale = { };
|
||||
kms = { };
|
||||
};
|
||||
|
||||
nodes =
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
{ myLib, ... }: {
|
||||
kubernetes.resources = {
|
||||
deployments.kms = {
|
||||
metadata.labels.app = "kms";
|
||||
|
||||
spec = {
|
||||
deployments.server.spec = {
|
||||
selector.matchLabels.app = "kms";
|
||||
|
||||
template = {
|
||||
|
@ -15,9 +12,8 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.kms.spec = {
|
||||
services.server.spec = {
|
||||
type = "LoadBalancer";
|
||||
loadBalancerIP = myLib.globals.kmsIPv4;
|
||||
selector.app = "kms";
|
||||
|
|
Loading…
Reference in a new issue