feat: добавлены порты Ingress (80, 443) в port-forward
- Добавлен 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
This commit is contained in:
@@ -113,6 +113,32 @@ def create_portforwards():
|
|||||||
|
|
||||||
print("✅ Kubeconfig подготовлен")
|
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
|
# Prometheus
|
||||||
if addon_ports.get('prometheus'):
|
if addon_ports.get('prometheus'):
|
||||||
port = addon_ports['prometheus']
|
port = addon_ports['prometheus']
|
||||||
|
|||||||
Reference in New Issue
Block a user