make use of named k8s ports

This commit is contained in:
Pim Kunis 2024-04-14 21:43:31 +02:00
parent ec201a038d
commit 4b01eeadbb
17 changed files with 146 additions and 262 deletions

View file

@ -55,10 +55,10 @@ in
image = "ubuntu/bind9:9.18-22.04_beta"; image = "ubuntu/bind9:9.18-22.04_beta";
envFrom = [{ configMapRef.name = "bind9-env"; }]; envFrom = [{ configMapRef.name = "bind9-env"; }];
ports = [{ ports.dns = {
containerPort = 53; containerPort = 53;
protocol = "UDP"; protocol = "UDP";
}]; };
volumeMounts = [ volumeMounts = [
{ {
@ -88,11 +88,11 @@ in
loadBalancerIP = myLib.globals.bind9IPv4; loadBalancerIP = myLib.globals.bind9IPv4;
selector.app = "bind9"; selector.app = "bind9";
ports = [{ ports.dns = {
port = 53; port = 53;
targetPort = 53; targetPort = "dns";
protocol = "UDP"; protocol = "UDP";
}]; };
}; };
}; };
} }

View file

@ -7,15 +7,9 @@
template = { template = {
metadata.labels.app = "cyberchef"; metadata.labels.app = "cyberchef";
spec = { spec.containers.cyberchef = {
containers.cyberchef = { image = "mpepping/cyberchef";
image = "mpepping/cyberchef"; ports.web.containerPort = 8000;
ports = [{
containerPort = 8000;
protocol = "TCP";
}];
};
}; };
}; };
}; };
@ -23,11 +17,10 @@
services.cyberchef.spec = { services.cyberchef.spec = {
selector.app = "cyberchef"; selector.app = "cyberchef";
ports = [{ ports.web = {
protocol = "TCP";
port = 80; port = 80;
targetPort = 8000; targetPort = "web";
}]; };
}; };
ingresses.cyberchef = { ingresses.cyberchef = {
@ -45,7 +38,7 @@
backend.service = { backend.service = {
name = "cyberchef"; name = "cyberchef";
port.number = 80; port.name = "web";
}; };
}]; }];
}]; }];

View file

@ -29,10 +29,10 @@
containers.dnsmasq = { containers.dnsmasq = {
image = "dockurr/dnsmasq:2.90"; image = "dockurr/dnsmasq:2.90";
ports = [{ ports.dns = {
containerPort = 53; containerPort = 53;
protocol = "UDP"; protocol = "UDP";
}]; };
volumeMounts = [{ volumeMounts = [{
name = "config"; name = "config";
@ -52,11 +52,11 @@
loadBalancerIP = myLib.globals.dnsmasqIPv4; loadBalancerIP = myLib.globals.dnsmasqIPv4;
selector.app = "dnsmasq"; selector.app = "dnsmasq";
ports = [{ ports.dns = {
port = 53; port = 53;
targetPort = 53; targetPort = "dns";
protocol = "UDP"; protocol = "UDP";
}]; };
}; };
}; };
} }

View file

@ -3,10 +3,11 @@
services.esrom.spec = { services.esrom.spec = {
type = "ExternalName"; type = "ExternalName";
externalName = "esrom.dmz"; externalName = "esrom.dmz";
ports = [{
ports.web = {
port = 80; port = 80;
targetPort = 80; targetPort = 80;
}]; };
}; };
ingresses.esrom = { ingresses.esrom = {
@ -24,7 +25,7 @@
backend.service = { backend.service = {
name = "esrom"; name = "esrom";
port.number = 80; port.name = "web";
}; };
}]; }];
}]; }];

View file

@ -131,16 +131,10 @@
image = "codeberg.org/forgejo/forgejo:1.20"; image = "codeberg.org/forgejo/forgejo:1.20";
envFrom = [{ configMapRef.name = "forgejo-env"; }]; envFrom = [{ configMapRef.name = "forgejo-env"; }];
ports = [ ports = {
{ web.containerPort = 3000;
containerPort = 3000; ssh.containerPort = 22;
protocol = "TCP"; };
}
{
containerPort = 22;
protocol = "TCP";
}
];
volumeMounts = [ volumeMounts = [
{ {
@ -185,11 +179,10 @@
forgejo-web.spec = { forgejo-web.spec = {
selector.app = "forgejo"; selector.app = "forgejo";
ports = [{ ports.web = {
protocol = "TCP";
port = 80; port = 80;
targetPort = 3000; targetPort = "web";
}]; };
}; };
forgejo-ssh.spec = { forgejo-ssh.spec = {
@ -197,10 +190,10 @@
loadBalancerIP = myLib.globals.gitIPv4; loadBalancerIP = myLib.globals.gitIPv4;
selector.app = "forgejo"; selector.app = "forgejo";
ports = [{ ports.ssh = {
port = 56287; port = 56287;
targetPort = 22; targetPort = "ssh";
}]; };
}; };
}; };
@ -219,7 +212,7 @@
backend.service = { backend.service = {
name = "forgejo-web"; name = "forgejo-web";
port.number = 80; port.name = "web";
}; };
}]; }];
}]; }];

View file

@ -24,11 +24,7 @@
containers.freshrss = { containers.freshrss = {
image = "freshrss/freshrss:edge"; image = "freshrss/freshrss:edge";
envFrom = [{ configMapRef.name = "freshrss"; }]; envFrom = [{ configMapRef.name = "freshrss"; }];
ports.web.containerPort = 80;
ports = [{
containerPort = 80;
protocol = "TCP";
}];
env = { env = {
ADMIN_PASSWORD.valueFrom.secretKeyRef = { ADMIN_PASSWORD.valueFrom.secretKeyRef = {
@ -72,11 +68,10 @@
services.freshrss.spec = { services.freshrss.spec = {
selector.app = "freshrss"; selector.app = "freshrss";
ports = [{ ports.web = {
protocol = "TCP";
port = 80; port = 80;
targetPort = 80; targetPort = "web";
}]; };
}; };
ingresses.freshrss = { ingresses.freshrss = {
@ -94,7 +89,7 @@
backend.service = { backend.service = {
name = "freshrss"; name = "freshrss";
port.number = 80; port.name = "web";
}; };
}]; }];
}]; }];

View file

@ -37,11 +37,7 @@
containers.hedgedoc = { containers.hedgedoc = {
image = "quay.io/hedgedoc/hedgedoc:1.9.7"; image = "quay.io/hedgedoc/hedgedoc:1.9.7";
envFrom = [{ configMapRef.name = "hedgedoc-env"; }]; envFrom = [{ configMapRef.name = "hedgedoc-env"; }];
ports.web.containerPort = 3000;
ports = [{
containerPort = 3000;
protocol = "TCP";
}];
env = { env = {
CMD_DB_URL.valueFrom.secretKeyRef = { CMD_DB_URL.valueFrom.secretKeyRef = {
@ -97,11 +93,10 @@
services.hedgedoc.spec = { services.hedgedoc.spec = {
selector.app = "hedgedoc"; selector.app = "hedgedoc";
ports = [{ ports.web = {
protocol = "TCP";
port = 80; port = 80;
targetPort = 3000; targetPort = "web";
}]; };
}; };
ingresses.hedgedoc = { ingresses.hedgedoc = {
@ -119,7 +114,7 @@
backend.service = { backend.service = {
name = "hedgedoc"; name = "hedgedoc";
port.number = 80; port.name = "web";
}; };
}]; }];
}]; }];

View file

@ -13,17 +13,10 @@
containers.inbucket = { containers.inbucket = {
image = "inbucket/inbucket:edge"; image = "inbucket/inbucket:edge";
# TODO: investigate the use of named ports. ports = {
ports = [ web.containerPort = 9000;
{ smtp.containerPort = 2500;
containerPort = 9000; };
protocol = "TCP";
}
{
containerPort = 2500;
protocol = "TCP";
}
];
}; };
}; };
}; };
@ -34,11 +27,10 @@
inbucket-web.spec = { inbucket-web.spec = {
selector.app = "inbucket"; selector.app = "inbucket";
ports = [{ ports.web = {
protocol = "TCP";
port = 80; port = 80;
targetPort = 9000; targetPort = "web";
}]; };
}; };
inbucket-email.spec = { inbucket-email.spec = {
@ -48,7 +40,7 @@
ports = [{ ports = [{
port = 25; port = 25;
targetPort = 2500; targetPort = "smtp";
}]; }];
}; };
}; };
@ -71,7 +63,7 @@
backend.service = { backend.service = {
name = "inbucket-web"; name = "inbucket-web";
port.number = 80; port.name = "web";
}; };
}]; }];
}]; }];

View file

@ -30,11 +30,7 @@
spec.containers.kitchenowl-frontend = { spec.containers.kitchenowl-frontend = {
image = "tombursch/kitchenowl-web:v0.4.20"; image = "tombursch/kitchenowl-web:v0.4.20";
envFrom = [{ configMapRef.name = "kitchenowl"; }]; envFrom = [{ configMapRef.name = "kitchenowl"; }];
ports.web.containerPort = 80;
ports = [{
containerPort = 80;
protocol = "TCP";
}];
}; };
}; };
}; };
@ -63,11 +59,7 @@
containers.kitchenowl-backend = { containers.kitchenowl-backend = {
image = "tombursch/kitchenowl:v92"; image = "tombursch/kitchenowl:v92";
ports.web.containerPort = 5000;
ports = [{
containerPort = 5000;
protocol = "TCP";
}];
volumeMounts = [{ volumeMounts = [{
name = "data"; name = "data";
@ -104,11 +96,10 @@
component = "frontend"; component = "frontend";
}; };
ports = [{ ports.web = {
protocol = "TCP";
port = 80; port = 80;
targetPort = 80; targetPort = "web";
}]; };
}; };
kitchenowl-backend.spec = { kitchenowl-backend.spec = {
@ -117,11 +108,10 @@
component = "backend"; component = "backend";
}; };
ports = [{ ports.web = {
protocol = "TCP";
port = 5000; port = 5000;
targetPort = 5000; targetPort = "web";
}]; };
}; };
}; };
@ -140,7 +130,7 @@
backend.service = { backend.service = {
name = "kitchenowl-web"; name = "kitchenowl-web";
port.number = 80; port.name = "web";
}; };
}]; }];
}]; }];

View file

@ -11,11 +11,7 @@
spec.containers.kms = { spec.containers.kms = {
image = "teddysun/kms"; image = "teddysun/kms";
ports.kms.containerPort = 1688;
ports = [{
containerPort = 1688;
protocol = "TCP";
}];
}; };
}; };
}; };
@ -26,10 +22,10 @@
loadBalancerIP = myLib.globals.kmsIPv4; loadBalancerIP = myLib.globals.kmsIPv4;
selector.app = "kms"; selector.app = "kms";
ports = [{ ports.kms = {
port = 1688; port = 1688;
targetPort = 1688; targetPort = "kms";
}]; };
}; };
}; };
} }

View file

@ -61,11 +61,7 @@
containers.jellyfin = { containers.jellyfin = {
image = "jellyfin/jellyfin:10.8.13-1"; image = "jellyfin/jellyfin:10.8.13-1";
envFrom = [{ configMapRef.name = "jellyfin-env"; }]; envFrom = [{ configMapRef.name = "jellyfin-env"; }];
ports.web.containerPort = 8096;
ports = [{
containerPort = 8096;
protocol = "TCP";
}];
volumeMounts = [ volumeMounts = [
{ {
@ -111,16 +107,10 @@
image = "lscr.io/linuxserver/transmission:latest"; image = "lscr.io/linuxserver/transmission:latest";
envFrom = [{ configMapRef.name = "transmission-env"; }]; envFrom = [{ configMapRef.name = "transmission-env"; }];
ports = [ ports = {
{ web.containerPort = 9091;
containerPort = 9091; bittorrent.containerPort = 31780;
protocol = "TCP"; };
}
{
containerPort = 31780;
protocol = "TCP";
}
];
volumeMounts = [ volumeMounts = [
{ {
@ -167,11 +157,7 @@
containers.jellyseerr = { containers.jellyseerr = {
image = "fallenbagel/jellyseerr:1.7.0"; image = "fallenbagel/jellyseerr:1.7.0";
envFrom = [{ configMapRef.name = "jellyseerr-env"; }]; envFrom = [{ configMapRef.name = "jellyseerr-env"; }];
ports.web.containerPort = 5055;
ports = [{
containerPort = 5055;
protocol = "TCP";
}];
volumeMounts = [{ volumeMounts = [{
name = "config"; name = "config";
@ -205,11 +191,7 @@
containers.radarr = { containers.radarr = {
image = "lscr.io/linuxserver/radarr:latest"; image = "lscr.io/linuxserver/radarr:latest";
envFrom = [{ configMapRef.name = "radarr-env"; }]; envFrom = [{ configMapRef.name = "radarr-env"; }];
ports.web.containerPort = 7878;
ports = [{
containerPort = 7878;
protocol = "TCP";
}];
volumeMounts = [ volumeMounts = [
{ {
@ -256,11 +238,7 @@
containers.prowlarr = { containers.prowlarr = {
image = "lscr.io/linuxserver/prowlarr:latest"; image = "lscr.io/linuxserver/prowlarr:latest";
envFrom = [{ configMapRef.name = "prowlarr-env"; }]; envFrom = [{ configMapRef.name = "prowlarr-env"; }];
ports.web.containerPort = 9696;
ports = [{
containerPort = 9696;
protocol = "TCP";
}];
volumeMounts = [{ volumeMounts = [{
name = "config"; name = "config";
@ -294,11 +272,7 @@
containers.sonarr = { containers.sonarr = {
image = "lscr.io/linuxserver/sonarr:latest"; image = "lscr.io/linuxserver/sonarr:latest";
envFrom = [{ configMapRef.name = "sonarr-env"; }]; envFrom = [{ configMapRef.name = "sonarr-env"; }];
ports.web.containerPort = 8989;
ports = [{
containerPort = 8989;
protocol = "TCP";
}];
volumeMounts = [ volumeMounts = [
{ {
@ -343,11 +317,7 @@
containers.bazarr = { containers.bazarr = {
image = "lscr.io/linuxserver/bazarr:latest"; image = "lscr.io/linuxserver/bazarr:latest";
envFrom = [{ configMapRef.name = "bazarr-env"; }]; envFrom = [{ configMapRef.name = "bazarr-env"; }];
ports.web.containerPort = 6767;
ports = [{
containerPort = 6767;
protocol = "TCP";
}];
volumeMounts = [ volumeMounts = [
{ {
@ -518,11 +488,10 @@
component = "jellyfin"; component = "jellyfin";
}; };
ports = [{ ports.web = {
protocol = "TCP";
port = 80; port = 80;
targetPort = 8096; targetPort = "web";
}]; };
}; };
transmission-web.spec = { transmission-web.spec = {
@ -531,11 +500,10 @@
component = "transmission"; component = "transmission";
}; };
ports = [{ ports.web = {
protocol = "TCP";
port = 80; port = 80;
targetPort = 9091; targetPort = "web";
}]; };
}; };
transmission-bittorrent.spec = { transmission-bittorrent.spec = {
@ -547,11 +515,10 @@
component = "transmission"; component = "transmission";
}; };
ports = [{ ports.bittorrent = {
protocol = "TCP";
port = 31780; port = 31780;
targetPort = 31780; targetPort = "bittorrent";
}]; };
}; };
jellyseerr.spec = { jellyseerr.spec = {
@ -560,11 +527,10 @@
component = "jellyseerr"; component = "jellyseerr";
}; };
ports = [{ ports.web = {
protocol = "TCP";
port = 80; port = 80;
targetPort = 5055; targetPort = "web";
}]; };
}; };
radarr.spec = { radarr.spec = {
@ -573,11 +539,10 @@
component = "radarr"; component = "radarr";
}; };
ports = [{ ports.web = {
protocol = "TCP";
port = 80; port = 80;
targetPort = 7878; targetPort = "web";
}]; };
}; };
prowlarr.spec = { prowlarr.spec = {
@ -586,11 +551,10 @@
component = "prowlarr"; component = "prowlarr";
}; };
ports = [{ ports.web = {
protocol = "TCP";
port = 80; port = 80;
targetPort = 9696; targetPort = "web";
}]; };
}; };
sonarr.spec = { sonarr.spec = {
@ -599,11 +563,10 @@
component = "sonarr"; component = "sonarr";
}; };
ports = [{ ports.web = {
protocol = "TCP";
port = 80; port = 80;
targetPort = 8989; targetPort = "web";
}]; };
}; };
bazarr.spec = { bazarr.spec = {
@ -612,11 +575,10 @@
component = "bazarr"; component = "bazarr";
}; };
ports = [{ ports.web = {
protocol = "TCP";
port = 80; port = 80;
targetPort = 6767; targetPort = "web";
}]; };
}; };
}; };
@ -636,7 +598,7 @@
backend.service = { backend.service = {
name = "jellyfin"; name = "jellyfin";
port.number = 80; port.name = "web";
}; };
}]; }];
}]; }];
@ -666,7 +628,7 @@
backend.service = { backend.service = {
name = "transmission-web"; name = "transmission-web";
port.number = 80; port.name = "web";
}; };
}]; }];
}]; }];
@ -696,7 +658,7 @@
backend.service = { backend.service = {
name = "jellyseerr"; name = "jellyseerr";
port.number = 80; port.name = "web";
}; };
}]; }];
}]; }];
@ -726,7 +688,7 @@
backend.service = { backend.service = {
name = "radarr"; name = "radarr";
port.number = 80; port.name = "web";
}; };
}]; }];
}]; }];
@ -756,7 +718,7 @@
backend.service = { backend.service = {
name = "prowlarr"; name = "prowlarr";
port.number = 80; port.name = "web";
}; };
}]; }];
}]; }];
@ -786,7 +748,7 @@
backend.service = { backend.service = {
name = "sonarr"; name = "sonarr";
port.number = 80; port.name = "web";
}; };
}]; }];
}]; }];
@ -815,7 +777,7 @@
backend.service = { backend.service = {
name = "bazarr"; name = "bazarr";
port.number = 80; port.name = "web";
}; };
}]; }];
}]; }];

View file

@ -17,11 +17,7 @@
containers.minecraft = { containers.minecraft = {
image = "itzg/minecraft-server"; image = "itzg/minecraft-server";
envFrom = [{ configMapRef.name = "minecraft-env"; }]; envFrom = [{ configMapRef.name = "minecraft-env"; }];
ports.minecraft.containerPort = 25565;
ports = [{
containerPort = 25565;
protocol = "TCP";
}];
volumeMounts = [{ volumeMounts = [{
name = "data"; name = "data";
@ -55,11 +51,10 @@
loadBalancerIP = myLib.globals.minecraftIPv4; loadBalancerIP = myLib.globals.minecraftIPv4;
selector.app = "minecraft"; selector.app = "minecraft";
ports = [{ ports.minecraft = {
port = 25565; port = 25565;
targetPort = 25565; targetPort = "minecraft";
protocol = "TCP"; };
}];
}; };
}; };
} }

View file

@ -23,11 +23,7 @@
containers.nextcloud = { containers.nextcloud = {
image = "nextcloud:27"; image = "nextcloud:27";
envFrom = [{ configMapRef.name = "nextcloud"; }]; envFrom = [{ configMapRef.name = "nextcloud"; }];
ports.web.containerPort = 80;
ports = [{
containerPort = 80;
protocol = "TCP";
}];
env.POSTGRES_PASSWORD.valueFrom.secretKeyRef = { env.POSTGRES_PASSWORD.valueFrom.secretKeyRef = {
name = "nextcloud"; name = "nextcloud";
@ -64,11 +60,10 @@
services.nextcloud.spec = { services.nextcloud.spec = {
selector.app = "nextcloud"; selector.app = "nextcloud";
ports = [{ ports.web = {
protocol = "TCP";
port = 80; port = 80;
targetPort = 80; targetPort = "web";
}]; };
}; };
ingresses.nextcloud = { ingresses.nextcloud = {
@ -86,7 +81,7 @@
backend.service = { backend.service = {
name = "nextcloud"; name = "nextcloud";
port.number = 80; port.name = "web";
}; };
}]; }];
}]; }];

View file

@ -46,11 +46,7 @@
containers.paperless-ngx = { containers.paperless-ngx = {
image = "ghcr.io/paperless-ngx/paperless-ngx:2.3"; image = "ghcr.io/paperless-ngx/paperless-ngx:2.3";
envFrom = [{ configMapRef.name = "paperless-ngx"; }]; envFrom = [{ configMapRef.name = "paperless-ngx"; }];
ports.web.containerPort = 8000;
ports = [{
containerPort = 8000;
protocol = "TCP";
}];
env = { env = {
PAPERLESS_DBPASS.valueFrom.secretKeyRef = { PAPERLESS_DBPASS.valueFrom.secretKeyRef = {
@ -96,11 +92,7 @@
containers.redis = { containers.redis = {
image = "docker.io/library/redis:7"; image = "docker.io/library/redis:7";
ports.redis.containerPort = 6379;
ports = [{
containerPort = 6379;
protocol = "TCP";
}];
volumeMounts = [{ volumeMounts = [{
name = "data"; name = "data";
@ -158,11 +150,10 @@
component = "web"; component = "web";
}; };
ports = [{ ports.web = {
protocol = "TCP";
port = 80; port = 80;
targetPort = 8000; targetPort = "web";
}]; };
}; };
paperless-ngx-redis.spec = { paperless-ngx-redis.spec = {
@ -171,11 +162,10 @@
component = "redis"; component = "redis";
}; };
ports = [{ ports.redis = {
protocol = "TCP";
port = 6379; port = 6379;
targetPort = 6379; targetPort = "redis";
}]; };
}; };
}; };
@ -194,7 +184,7 @@
backend.service = { backend.service = {
name = "paperless-ngx-web"; name = "paperless-ngx-web";
port.number = 80; port.name = "web";
}; };
}]; }];
}]; }];

View file

@ -21,16 +21,14 @@
image = "pihole/pihole:latest"; image = "pihole/pihole:latest";
envFrom = [{ configMapRef.name = "pihole"; }]; envFrom = [{ configMapRef.name = "pihole"; }];
ports = [ ports = {
{ web.containerPort = 80;
containerPort = 80;
protocol = "TCP"; dns = {
}
{
containerPort = 53; containerPort = 53;
protocol = "UDP"; protocol = "UDP";
} };
]; };
env.WEBPASSWORD.valueFrom.secretKeyRef = { env.WEBPASSWORD.valueFrom.secretKeyRef = {
name = "pihole"; name = "pihole";
@ -100,11 +98,10 @@
pihole-web.spec = { pihole-web.spec = {
selector.app = "pihole"; selector.app = "pihole";
ports = [{ ports.web = {
protocol = "TCP";
port = 80; port = 80;
targetPort = 80; targetPort = "web";
}]; };
}; };
pihole-dns.spec = { pihole-dns.spec = {
@ -112,11 +109,11 @@
loadBalancerIP = myLib.globals.piholeIPv4; loadBalancerIP = myLib.globals.piholeIPv4;
selector.app = "pihole"; selector.app = "pihole";
ports = [{ ports.dns = {
protocol = "UDP"; protocol = "UDP";
port = 53; port = 53;
targetPort = 53; targetPort = "dns";
}]; };
}; };
}; };
@ -138,7 +135,7 @@
backend.service = { backend.service = {
name = "pihole-web"; name = "pihole-web";
port.number = 80; port.name = "web";
}; };
}]; }];
}]; }];

View file

@ -44,11 +44,7 @@
spec = { spec = {
containers.radicale = { containers.radicale = {
image = "tomsquest/docker-radicale"; image = "tomsquest/docker-radicale";
ports.web.containerPort = 5232;
ports = [{
containerPort = 5232;
protocol = "TCP";
}];
volumeMounts = [ volumeMounts = [
{ {
@ -97,11 +93,10 @@
services.radicale.spec = { services.radicale.spec = {
selector.app = "radicale"; selector.app = "radicale";
ports = [{ ports.web = {
protocol = "TCP";
port = 80; port = 80;
targetPort = 5232; targetPort = "web";
}]; };
}; };
ingresses.radicale = { ingresses.radicale = {
@ -119,7 +114,7 @@
backend.service = { backend.service = {
name = "radicale"; name = "radicale";
port.number = 80; port.name = "web";
}; };
}]; }];
}]; }];

View file

@ -19,11 +19,7 @@
containers.syncthing = { containers.syncthing = {
image = "lscr.io/linuxserver/syncthing:1.23.6"; image = "lscr.io/linuxserver/syncthing:1.23.6";
envFrom = [{ configMapRef.name = "syncthing"; }]; envFrom = [{ configMapRef.name = "syncthing"; }];
ports.web.containerPort = 8384;
ports = [{
containerPort = 8384;
protocol = "TCP";
}];
volumeMounts = [ volumeMounts = [
{ {
@ -66,11 +62,10 @@
services.syncthing.spec = { services.syncthing.spec = {
selector.app = "syncthing"; selector.app = "syncthing";
ports = [{ ports.web = {
protocol = "TCP";
port = 80; port = 80;
targetPort = 8384; targetPort = "web";
}]; };
}; };
ingresses.syncthing = { ingresses.syncthing = {
@ -91,7 +86,7 @@
backend.service = { backend.service = {
name = "syncthing"; name = "syncthing";
port.number = 80; port.name = "web";
}; };
}]; }];
}]; }];