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