2024-07-21 14:26:21 +00:00
|
|
|
{ myLib, ... }: {
|
2024-03-28 19:27:36 +00:00
|
|
|
kubernetes.resources = {
|
2024-07-21 14:26:21 +00:00
|
|
|
serviceAccounts.inbucket = { };
|
2024-07-21 13:05:27 +00:00
|
|
|
|
2024-07-16 17:56:18 +00:00
|
|
|
deployments.inbucket.spec = {
|
|
|
|
selector.matchLabels.app = "inbucket";
|
2024-03-28 19:27:36 +00:00
|
|
|
|
2024-07-16 17:56:18 +00:00
|
|
|
template = {
|
|
|
|
metadata.labels.app = "inbucket";
|
2024-03-28 19:27:36 +00:00
|
|
|
|
2024-07-16 17:56:18 +00:00
|
|
|
spec = {
|
2024-07-21 14:26:21 +00:00
|
|
|
serviceAccountName = "inbucket";
|
2024-07-21 13:05:27 +00:00
|
|
|
|
|
|
|
containers = {
|
|
|
|
inbucket = {
|
|
|
|
image = "inbucket/inbucket:edge";
|
|
|
|
|
|
|
|
ports = {
|
2024-07-21 17:47:22 +00:00
|
|
|
web.containerPort = 9000;
|
2024-07-21 13:05:27 +00:00
|
|
|
smtp.containerPort = 2500;
|
|
|
|
};
|
|
|
|
};
|
2024-03-28 19:27:36 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
2024-07-21 18:30:47 +00:00
|
|
|
inbucket.spec = {
|
2024-07-21 13:05:27 +00:00
|
|
|
type = "LoadBalancer";
|
2024-07-21 18:30:47 +00:00
|
|
|
loadBalancerIP = myLib.globals.inbucketIPv4;
|
2024-03-28 19:27:36 +00:00
|
|
|
selector.app = "inbucket";
|
|
|
|
|
2024-07-21 18:30:47 +00:00
|
|
|
ports = {
|
|
|
|
smtp = {
|
|
|
|
port = 25;
|
|
|
|
targetPort = "smtp";
|
|
|
|
};
|
2024-03-28 19:27:36 +00:00
|
|
|
|
2024-07-21 18:30:47 +00:00
|
|
|
web = {
|
|
|
|
port = 80;
|
|
|
|
targetPort = "web";
|
|
|
|
};
|
|
|
|
};
|
2024-03-28 19:27:36 +00:00
|
|
|
};
|
|
|
|
};
|
2024-04-14 21:11:19 +00:00
|
|
|
};
|
2024-07-21 14:26:21 +00:00
|
|
|
|
2024-07-22 18:44:51 +00:00
|
|
|
lab = {
|
|
|
|
tailscaleIngresses.tailscale = {
|
|
|
|
host = "inbucket";
|
|
|
|
service.name = "inbucket";
|
|
|
|
};
|
|
|
|
|
|
|
|
ingresses.inbucket = {
|
|
|
|
host = "inbucket.kun.is";
|
|
|
|
entrypoint = "localsecure";
|
|
|
|
|
|
|
|
service = {
|
|
|
|
name = "inbucket";
|
|
|
|
portName = "web";
|
|
|
|
};
|
|
|
|
};
|
2024-07-21 14:26:21 +00:00
|
|
|
};
|
2024-03-28 19:27:36 +00:00
|
|
|
}
|