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";
|
|
|
|
|
|
|
|
ports = [{
|
|
|
|
containerPort = 1688;
|
|
|
|
protocol = "TCP";
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.kms.spec = {
|
|
|
|
type = "LoadBalancer";
|
2024-03-28 19:01:17 +00:00
|
|
|
loadBalancerIP = "192.168.30.129";
|
2024-03-27 22:19:47 +00:00
|
|
|
selector.app = "kms";
|
|
|
|
|
|
|
|
ports = [{
|
|
|
|
port = 1688;
|
|
|
|
targetPort = 1688;
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|