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