From 5fd502eed2b4607a997f978808db4c645c895167 Mon Sep 17 00:00:00 2001 From: Oliver Ni Date: Mon, 15 Jul 2024 01:11:32 -0400 Subject: [PATCH] fix(poketwo): fix service ports to 80 --- kubernetes/poketwo/image-server.nix | 4 ++-- kubernetes/poketwo/imgen-rust.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kubernetes/poketwo/image-server.nix b/kubernetes/poketwo/image-server.nix index 928b998..dc57986 100644 --- a/kubernetes/poketwo/image-server.nix +++ b/kubernetes/poketwo/image-server.nix @@ -43,7 +43,7 @@ http.paths = [{ path = "/"; pathType = "Prefix"; - backend.service = { name = "image-server"; port.number = 8080; }; + backend.service = { name = "image-server"; port.number = 80; }; }]; }]; tls = [{ @@ -57,7 +57,7 @@ metadata.annotations."service.kubernetes.io/topology-mode" = "Auto"; spec = { selector.app = "image-server"; - ports = [{ port = 8080; }]; + ports = [{ port = 80; targetPort = 8080; }]; }; }; }; diff --git a/kubernetes/poketwo/imgen-rust.nix b/kubernetes/poketwo/imgen-rust.nix index c027a1f..56e3577 100644 --- a/kubernetes/poketwo/imgen-rust.nix +++ b/kubernetes/poketwo/imgen-rust.nix @@ -38,7 +38,7 @@ http.paths = [{ path = "/"; pathType = "Prefix"; - backend.service = { name = "imgen-rust"; port.number = 8000; }; + backend.service = { name = "imgen-rust"; port.number = 80; }; }]; }]; tls = [{ @@ -52,7 +52,7 @@ metadata.annotations."service.kubernetes.io/topology-mode" = "auto"; spec = { selector.app = "imgen-rust"; - ports = [{ port = 8000; }]; + ports = [{ port = 80; targetPort = 8000; }]; }; }; };