nixos-servers/kubenix-modules/kms.nix

28 lines
536 B
Nix
Raw Normal View History

{ myLib, ... }: {
2024-03-27 22:19:47 +00:00
kubernetes.resources = {
2024-07-14 11:58:08 +00:00
deployments.server.spec = {
selector.matchLabels.app = "kms";
2024-03-27 22:19:47 +00:00
2024-07-14 11:58:08 +00:00
template = {
metadata.labels.app = "kms";
2024-03-27 22:19:47 +00:00
2024-07-14 11:58:08 +00:00
spec.containers.kms = {
image = "teddysun/kms";
ports.kms.containerPort = 1688;
2024-03-27 22:19:47 +00:00
};
};
};
2024-07-14 11:58:08 +00:00
services.server.spec = {
2024-03-27 22:19:47 +00:00
type = "LoadBalancer";
loadBalancerIP = myLib.globals.kmsIPv4;
2024-03-27 22:19:47 +00:00
selector.app = "kms";
2024-04-14 19:43:31 +00:00
ports.kms = {
2024-03-27 22:19:47 +00:00
port = 1688;
2024-04-14 19:43:31 +00:00
targetPort = "kms";
};
2024-03-27 22:19:47 +00:00
};
};
}