2024-04-13 21:25:48 +00:00
|
|
|
{ myLib, ... }: {
|
2024-03-27 22:19:47 +00:00
|
|
|
kubernetes.resources = {
|
|
|
|
deployments.kms = {
|
|
|
|
metadata.labels.app = "kms";
|
|
|
|
|
|
|
|
spec = {
|
|
|
|
selector.matchLabels.app = "kms";
|
|
|
|
|
|
|
|
template = {
|
|
|
|
metadata.labels.app = "kms";
|
|
|
|
|
|
|
|
spec.containers.kms = {
|
|
|
|
image = "teddysun/kms";
|
2024-04-14 19:43:31 +00:00
|
|
|
ports.kms.containerPort = 1688;
|
2024-03-27 22:19:47 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.kms.spec = {
|
|
|
|
type = "LoadBalancer";
|
2024-04-13 21:25:48 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|