Init
This commit is contained in:
commit
cdec5a64aa
44 changed files with 9802 additions and 0 deletions
31
modules/kms.nix
Normal file
31
modules/kms.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ config, globals, lib, ... }: {
|
||||
options.kms.enable = lib.mkEnableOption "kms";
|
||||
|
||||
config = lib.mkIf config.kms.enable {
|
||||
kubernetes.resources = {
|
||||
deployments.server.spec = {
|
||||
selector.matchLabels.app = "kms";
|
||||
|
||||
template = {
|
||||
metadata.labels.app = "kms";
|
||||
|
||||
spec.containers.kms = {
|
||||
image = globals.images.kms;
|
||||
ports.kms.containerPort = 1688;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.server.spec = {
|
||||
type = "LoadBalancer";
|
||||
loadBalancerIP = globals.kmsIPv4;
|
||||
selector.app = "kms";
|
||||
|
||||
ports.kms = {
|
||||
port = 1688;
|
||||
targetPort = "kms";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue