mirror of
https://gitlab.com/TECHNOFAB/nixlets.git
synced 2026-02-03 03:35:09 +01:00
18 lines
369 B
Nix
18 lines
369 B
Nix
{nixlet, ...}:
|
|
with nixlet; {
|
|
kubernetes.resources = {
|
|
services."${values.uniqueName}" = {
|
|
spec = {
|
|
selector.app = "${values.uniqueName}";
|
|
ports = [
|
|
{
|
|
name = "mqtt";
|
|
port = values.service.port;
|
|
targetPort = 1883;
|
|
}
|
|
];
|
|
type = values.service.type;
|
|
};
|
|
};
|
|
};
|
|
}
|