nixos-servers/kubenix-modules/kms.nix
2024-04-13 16:37:18 +02:00

35 lines
641 B
Nix

{
kubernetes.resources = {
deployments.kms = {
metadata.labels.app = "kms";
spec = {
selector.matchLabels.app = "kms";
template = {
metadata.labels.app = "kms";
spec.containers.kms = {
image = "teddysun/kms";
ports = [{
containerPort = 1688;
protocol = "TCP";
}];
};
};
};
};
services.kms.spec = {
type = "LoadBalancer";
loadBalancerIP = "192.168.30.129";
selector.app = "kms";
ports = [{
port = 1688;
targetPort = 1688;
}];
};
};
}