- Создан скрипт scripts/portforward.py для управления port-forward - Добавлены команды в Makefile: - make k8s portforward create - создать port-forward для всех сервисов - make k8s portforward list - показать активные port-forward - make k8s portforward clear - очистить все port-forward - make k8s portforward delete PORT - удалить конкретный port-forward - Сервисы остаются с типом ClusterIP - Port-forward автоматически создается для Prometheus, Grafana, Kiali и Metrics Server - Порты: Prometheus 9090, Grafana 3000, Kiali 20001, Metrics Server 4443
		
			
				
	
	
		
			67 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			67 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
---
 | 
						||
#description: Пресет для тестирования с Kubernetes Kind кластером
 | 
						||
# Автор: Сергей Антропов
 | 
						||
# Сайт: https://devops.org.ru
 | 
						||
 | 
						||
docker_network: labnet
 | 
						||
generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini"
 | 
						||
 | 
						||
# systemd-ready образы
 | 
						||
images:
 | 
						||
  alt: "inecs/ansible-lab:alt-linux-latest"
 | 
						||
  astra: "inecs/ansible-lab:astra-linux-latest"
 | 
						||
  rhel: "inecs/ansible-lab:rhel-latest"
 | 
						||
  centos7: "inecs/ansible-lab:centos7-latest"
 | 
						||
  centos8: "inecs/ansible-lab:centos8-latest"
 | 
						||
  centos9: "inecs/ansible-lab:centos9-latest"
 | 
						||
  alma: "inecs/ansible-lab:alma-latest"
 | 
						||
  rocky: "inecs/ansible-lab:rocky-latest"
 | 
						||
  redos: "inecs/ansible-lab:redos-latest"
 | 
						||
  ubuntu20: "inecs/ansible-lab:ubuntu20-latest"
 | 
						||
  ubuntu22: "inecs/ansible-lab:ubuntu22-latest"
 | 
						||
  ubuntu24: "inecs/ansible-lab:ubuntu24-latest"
 | 
						||
  debian9: "inecs/ansible-lab:debian9-latest"
 | 
						||
  debian10: "inecs/ansible-lab:debian10-latest"
 | 
						||
  debian11: "inecs/ansible-lab:debian11-latest"
 | 
						||
  debian12: "inecs/ansible-lab:debian12-latest"
 | 
						||
 | 
						||
systemd_defaults:
 | 
						||
  privileged: true
 | 
						||
  command: "/sbin/init"
 | 
						||
  volumes:
 | 
						||
    - "/sys/fs/cgroup:/sys/fs/cgroup:rw"
 | 
						||
  tmpfs: ["/run", "/run/lock"]
 | 
						||
  capabilities: ["SYS_ADMIN"]
 | 
						||
 | 
						||
# Kind кластеры с полным набором аддонов
 | 
						||
kind_clusters:
 | 
						||
  - name: lab
 | 
						||
    workers: 2
 | 
						||
    api_port: 6443
 | 
						||
    addons:
 | 
						||
      ingress_nginx: true
 | 
						||
      metrics_server: true
 | 
						||
      istio: true
 | 
						||
      kiali: true
 | 
						||
      prometheus_stack: true
 | 
						||
    # Порты для доступа к аддонам извне
 | 
						||
    # Ingress HTTP: http://localhost:8081
 | 
						||
    # Ingress HTTPS: https://localhost:8443
 | 
						||
    # 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
 | 
						||
      prometheus: 9090
 | 
						||
      grafana: 3000
 | 
						||
      kiali: 20001
 | 
						||
      metrics_server: 4443
 | 
						||
 | 
						||
hosts: []
 | 
						||
#  # Стандартный набор - 2 хоста для базового тестирования (стабильные ОС)
 | 
						||
#  - name: u1
 | 
						||
#    family: ubuntu22
 | 
						||
#    groups: [test, web]
 |