
redhat-performance/openshift-mcp-server
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
OpenShift MCP Server - мониторинг и управление кластерами OpenShift/Kubernetes с помощью AI IDE
Обзор
Сервер Model Context Protocol (MCP) для мониторинга и управления кластерами OpenShift/Kubernetes. Этот сервер предоставляет кластерную информацию в режиме реального времени через помощников ИИ, позволяя задавать запросы на естественном языке о здоровье кластера, производительности и использовании ресурсов. - : Проверить общее состояние кластера и определить проблемы стабильности - : Восстановить показатели производительности в реальном времени для узлов и узлов - : Обнаружить узлы и узлы с проблемами распределения ресурсов - : Анализировать нарушения узлов и шаблоны перезапуска - : Проверить условия узла и идентифицировать проблемные узлы - : Мониторинг состояния развертывания и здоровья развертывания - : Проверить кубелет, статус CRI-O и проанализировать журналы Создавайте развертывания с гарантированным QoS и управлением ресурсами - развертывайте PostgreSQL, MySQL, MongoDB или Redis с постоянным хранением - Настройте горизонтальные автомасштаберы с ЦП / памятью - Создавайте и настраивайте сервисы (ClusterIP, NodePort, LoadBalancer) - Создавайте сетевые политики для безопасных под-под-систем.
Обзор (машинный перевод)
Сервер Model Context Protocol (MCP) для мониторинга и управления кластерами OpenShift/Kubernetes. Этот сервер предоставляет кластерную информацию в режиме реального времени через помощников ИИ, позволяя задавать запросы на естественном языке о здоровье кластера, производительности и использовании ресурсов.
Особенности
###Основные возможности мониторинга ** Мониторинг состояния здоровья кластера**: проверка общего состояния кластера и выявление проблем стабильности Метрика производительности: восстановить показатели производительности в реальном времени для узлов и под Обнаружение проблем с ресурсами: обнаружение блоков и узлов с проблемами распределения ресурсов ** Анализ сбоев в подаче**: анализ сбоев в подаче и моделей перезапуска ** Мониторинг состояния узла**: проверка условий узла и выявление проблемных узлов Мониторинг развертывания: мониторинг состояния развертывания и здоровья развертывания Системная диагностика: Проверьте кубелет, статус CRI-O и проанализируйте журнальные журналы
###Развертывание и управление конфигурацией ** Развертывание приложений**: Создание развертываний с гарантированным QoS и управлением ресурсами ** Услуги базы данных**: развертывание PostgreSQL, MySQL, MongoDB или Redis с постоянным хранением
- ** Автомасштабирование**: Установите горизонтальные автомасштаберы с ЦПУ / памятью
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
OpenShift MCP Server
A Model Context Protocol (MCP) server for monitoring and managing OpenShift/Kubernetes clusters. This server provides real-time cluster insights through AI assistants, enabling natural language queries about your cluster health, performance, and resource usage.
Features
Core Monitoring Capabilities
- Cluster Health Monitoring: Check overall cluster health and identify stability issues
- Performance Metrics: Retrieve real-time performance metrics for nodes and pods
- Resource Issue Detection: Detect pods and nodes with resource allocation problems
- Pod Disruption Analysis: Analyze pod disruptions and restart patterns
- Node Condition Monitoring: Check node conditions and identify problematic nodes
- Deployment Monitoring: Monitor deployment status and rollout health
- System Diagnostics: Check kubelet, CRI-O status and analyze journalctl logs
Deployment & Configuration Management
- Application Deployment: Create deployments with guaranteed QoS and resource management
- Database Services: Deploy PostgreSQL, MySQL, MongoDB, or Redis with persistent storage
- Auto-scaling: Set up horizontal pod autoscalers with CPU/memory targets
- Service Management: Create and configure services (ClusterIP, NodePort, LoadBalancer)
- Network Security: Create network policies for secure pod-to-pod communication
Performance Testing & Benchmarking
- Cluster Performance: Execute kube-burner density testing for application deployment performance
- Storage Benchmarks: Run FIO workloads for sequential/random read/write performance testing
- Network Testing: Test network throughput, latency, and packet loss with iperf3
- Resource Stress Testing: Perform CPU and memory stress testing on worker nodes
- Database Benchmarking: Execute PostgreSQL (pgbench) or MySQL (sysbench) performance tests
Remote Execution Capabilities for Advanced Performance Testing and Benchmarking
- Bastion Host Support: Execute tests on private clusters through jump hosts
- SSH Integration: Secure remote command execution with credential management
- Multi-Cluster Testing: Test across different OpenShift environments
- Automated Benchmarking: Schedule and run performance tests through AI assistants
- Remote Execution: Execute performance benchmarks and tools on remote clusters through bastion hosts
- Multi-Cluster Support: Manage and test across different OpenShift environments
Prerequisites
- Node.js 18+
- Access to an OpenShift/Kubernetes cluster
- Valid kubeconfig file or in-cluster configuration
- SSH access to bastion hosts (for remote deployments)
Bastion Host Setup
For remote cluster access through bastion hosts, follow these two setup phases:
Phase 1: Authentication Setup
For remote cluster access through bastion hosts, you can use either SSH key (recommended) or password authentication:
Option 1: SSH Key Authentication (Recommended)
Установка
docker run -v ~/.kube/config:/root/.kube/config openshift-mcp-serverКонфигурация
{
"mcpServers": {
"openshift-mcp-server": {
"command": "node",
"args": ["/path/to/openshift-mcp-server/remote-launcher.js"],
"env": {
"MCP_BASTION_HOST": "your-bastion-host.com",
"MCP_BASTION_USER": "your-username",
"MCP_SSH_KEY": "/path/to/your/ssh/key",
"MCP_REMOTE_PATH": "/opt/openshift-mcp-server",
"MCP_REMOTE_KUBECONFIG": "/path/to/remote/kubeconfig",
"MCP_REMOTE_NODE_ENV": "production"
},
"cwd": "/path/to/openshift-mcp-server"
}
}
}