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:
|
Currently, the applications being deployed like this are:
|
||||||
- `cyberchef`
|
- `cyberchef`
|
||||||
- `freshrss`
|
- `freshrss`
|
||||||
|
- `radicale`
|
||||||
|
- `kms`
|
||||||
|
|
||||||
## Known bugs
|
## Known bugs
|
||||||
|
|
||||||
|
|
|
@ -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";
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
let
|
let
|
||||||
applications = [
|
applications = [
|
||||||
./kms.nix
|
|
||||||
./inbucket.nix
|
./inbucket.nix
|
||||||
./syncthing.nix
|
./syncthing.nix
|
||||||
./nextcloud.nix
|
./nextcloud.nix
|
||||||
|
|
|
@ -64,6 +64,7 @@
|
||||||
cyberchef = { };
|
cyberchef = { };
|
||||||
freshrss = { };
|
freshrss = { };
|
||||||
radicale = { };
|
radicale = { };
|
||||||
|
kms = { };
|
||||||
};
|
};
|
||||||
|
|
||||||
nodes =
|
nodes =
|
||||||
|
|
|
@ -1,23 +1,19 @@
|
||||||
{ myLib, ... }: {
|
{ myLib, ... }: {
|
||||||
kubernetes.resources = {
|
kubernetes.resources = {
|
||||||
deployments.kms = {
|
deployments.server.spec = {
|
||||||
metadata.labels.app = "kms";
|
selector.matchLabels.app = "kms";
|
||||||
|
|
||||||
spec = {
|
template = {
|
||||||
selector.matchLabels.app = "kms";
|
metadata.labels.app = "kms";
|
||||||
|
|
||||||
template = {
|
spec.containers.kms = {
|
||||||
metadata.labels.app = "kms";
|
image = "teddysun/kms";
|
||||||
|
ports.kms.containerPort = 1688;
|
||||||
spec.containers.kms = {
|
|
||||||
image = "teddysun/kms";
|
|
||||||
ports.kms.containerPort = 1688;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.kms.spec = {
|
services.server.spec = {
|
||||||
type = "LoadBalancer";
|
type = "LoadBalancer";
|
||||||
loadBalancerIP = myLib.globals.kmsIPv4;
|
loadBalancerIP = myLib.globals.kmsIPv4;
|
||||||
selector.app = "kms";
|
selector.app = "kms";
|
||||||
|
|
Loading…
Reference in a new issue