From 44fff158ceb3b9eea65c0470475b948ca2c256f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9=20=D0=90=D0=BD=D1=82?= =?UTF-8?q?=D1=80=D0=BE=D0=BF=D0=BE=D0=B2?= Date: Sun, 26 Oct 2025 09:40:47 +0300 Subject: [PATCH] =?UTF-8?q?feat:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20=D0=BF=D0=BE=D1=80=D1=82=D1=8B=20Ingress?= =?UTF-8?q?=20(80,=20443)=20=D0=B2=20port-forward?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Добавлен port-forward для Ingress HTTP на порт 8081 (localhost:8081 -> ingress-nginx-controller:80) - Добавлен port-forward для Ingress HTTPS на порт 8443 (localhost:8443 -> ingress-nginx-controller:443) - Теперь все аддоны доступны через port-forward: Ingress, Prometheus, Grafana, Kiali, Metrics Server --- scripts/portforward.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/scripts/portforward.py b/scripts/portforward.py index afca259..bf2d993 100755 --- a/scripts/portforward.py +++ b/scripts/portforward.py @@ -113,6 +113,32 @@ def create_portforwards(): print("✅ Kubeconfig подготовлен") + # Ingress HTTP (80) + if addon_ports.get('ingress_http'): + port = addon_ports['ingress_http'] + print(f" - Ingress HTTP: localhost:{port} -> ingress-nginx-controller:80") + subprocess.Popen([ + "kubectl", + f"--kubeconfig={kubeconfig_file}", + "port-forward", + "-n", "ingress-nginx", + "svc/ingress-nginx-controller", + f"{port}:80" + ], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + + # Ingress HTTPS (443) + if addon_ports.get('ingress_https'): + port = addon_ports['ingress_https'] + print(f" - Ingress HTTPS: localhost:{port} -> ingress-nginx-controller:443") + subprocess.Popen([ + "kubectl", + f"--kubeconfig={kubeconfig_file}", + "port-forward", + "-n", "ingress-nginx", + "svc/ingress-nginx-controller", + f"{port}:443" + ], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + # Prometheus if addon_ports.get('prometheus'): port = addon_ports['prometheus']