feat: добавлен порт для Metrics Server

- Добавлен проброс порта 4443 для Metrics Server
- Metrics Server теперь доступен на http://localhost:4443
- Обновлена документация с информацией о порте
This commit is contained in:
Сергей Антропов
2025-10-26 09:13:22 +03:00
parent 87002cb9b3
commit d48c273e50
2 changed files with 14 additions and 4 deletions

View File

@@ -46,17 +46,19 @@ kind_clusters:
prometheus_stack: true
# Порты для доступа к аддонам извне
# Документация: https://devops.org.ru
# Ingress HTTP: http://localhost:8081
# Ingress HTTPS: https://localhost:8443
# Ingress HTTP: http://localhost:80
# Ingress HTTPS: https://localhost:443
# Prometheus: http://localhost:9090
# Grafana: http://localhost:3000 (admin/admin)
# Kiali: http://localhost:20001
# Metrics Server: http://localhost:4443
addon_ports:
ingress_http: 8081
ingress_https: 8443
ingress_http: 80
ingress_https: 443
prometheus: 9090
grafana: 3000
kiali: 20001
metrics_server: 4443
hosts:
# Стандартный набор - 2 хоста для базового тестирования (стабильные ОС)

View File

@@ -166,6 +166,14 @@ def main():
'protocol': 'TCP'
})
# Metrics Server порт - пробрасываем изнутри кластера (4443) на внешний порт
if addon_ports.get('metrics_server'):
port_mappings.append({
'containerPort': 4443, # Внутренний порт Metrics Server
'hostPort': addon_ports['metrics_server'], # Внешний порт на хосте
'protocol': 'TCP'
})
if port_mappings:
config['nodes'][0]['extraPortMappings'] = port_mappings