82 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			82 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| ---
 | |
| # ПРЕСЕТ: Kubernetes Multi-Cluster (3 кластера)
 | |
| # 
 | |
| # Описание: Несколько Kind кластеров для тестирования мульти-кластерных сценариев
 | |
| # - 3 Kind кластера: dev, staging, prod
 | |
| # - Различные конфигурации для каждого окружения
 | |
| # - Полный стек мониторинга и service mesh
 | |
| # 
 | |
| # Использование: make lab-test SCENARIO=universal LAB_SPEC=molecule/presets/k8s-multi.yml
 | |
| # 
 | |
| # Автор: Сергей Антропов
 | |
| # Сайт: https://devops.org.ru
 | |
| 
 | |
| docker_network: labnet
 | |
| 
 | |
| kind_clusters:
 | |
|   - name: dev
 | |
|     workers: 1
 | |
|     api_port: 6443
 | |
|     addons:
 | |
|       ingress_nginx: true
 | |
|       metrics_server: true
 | |
|     ingress_host_http_port: 8081
 | |
|     ingress_host_https_port: 8443
 | |
| 
 | |
|   - name: staging
 | |
|     workers: 2
 | |
|     api_port: 6444
 | |
|     addons:
 | |
|       ingress_nginx: true
 | |
|       metrics_server: true
 | |
|       istio: true
 | |
|       kiali: true
 | |
|     ingress_host_http_port: 8082
 | |
|     ingress_host_https_port: 8444
 | |
| 
 | |
|   - name: prod
 | |
|     workers: 3
 | |
|     api_port: 6445
 | |
|     addons:
 | |
|       ingress_nginx: true
 | |
|       metrics_server: true
 | |
|       istio: true
 | |
|       kiali: true
 | |
|       prometheus_stack: true
 | |
|     ingress_host_http_port: 8083
 | |
|     ingress_host_https_port: 8445
 | |
| 
 | |
| images:
 | |
|   debian: "ghcr.io/ansible-community/molecule-ubuntu-systemd:jammy"
 | |
|   rhel: "quay.io/centos/centos:stream9-systemd"
 | |
| 
 | |
| systemd_defaults:
 | |
|   privileged: true
 | |
|   command: "/sbin/init"
 | |
|   volumes:
 | |
|     - "/sys/fs/cgroup:/sys/fs/cgroup:ro"
 | |
|   tmpfs:
 | |
|     - "/run"
 | |
|     - "/run/lock"
 | |
|   capabilities:
 | |
|     - "SYS_ADMIN"
 | |
| 
 | |
| hosts:
 | |
|   - name: k8s-dev-controller
 | |
|     group: controllers
 | |
|     family: debian
 | |
|     publish:
 | |
|       - "6443:6443"
 | |
| 
 | |
|   - name: k8s-staging-controller
 | |
|     group: controllers
 | |
|     family: rhel
 | |
|     publish:
 | |
|       - "6444:6444"
 | |
| 
 | |
|   - name: k8s-prod-controller
 | |
|     group: controllers
 | |
|     family: debian
 | |
|     publish:
 | |
|       - "6445:6445"
 |