- Исправлена незакрытая скобка в _build_test_command (строка 745) - Добавлена поддержка k8s preset'ов: выполнение create_k8s_cluster.py перед create.yml - Обновлены образы в k8s preset'ах: заменен недоступный ghcr.io/ansible-community/molecule-ubuntu-systemd:jammy на inecs/ansible-lab:ubuntu22-latest - Обновлены preset'ы в базе данных через SQL - Обновлены файлы: k8s-single.yml, k8s-multi.yml, k8s-istio-full.yml
84 lines
1.9 KiB
YAML
84 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: "inecs/ansible-lab:ubuntu22-latest"
|
|
ubuntu: "inecs/ansible-lab:ubuntu22-latest"
|
|
rhel: "inecs/ansible-lab:rhel-latest"
|
|
centos: "inecs/ansible-lab:centos9-latest"
|
|
|
|
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"
|