MCP-K8s-Server is a Kotlin-based server that provides AI assistants with direct access to Kubernetes cluster management capabilities. Developed by Hari Ohm Prasath, it exposes a comprehensive set of tools for monitoring and managing Kubernetes resources including pods, deployments, services, storage, networking, and Helm releases. The server connects to Kubernetes clusters using the local kubeconfig file and leverages the official Kubernetes Java client to interact with the API server. Particularly valuable for DevOps engineers and platform administrators who need to diagnose cluster issues, analyze resource utilization, and manage deployments through natural language interactions without switching to kubectl or other management tools.
暂无评论. 成为第一个评论的人!
登录以参与讨论
Get the status of the Kubernetes cluster.
Show all pods in the specified namespace. Parameters: namespace (string, default is 'default').
Identify any failing pods in the specified namespace. Parameters: namespace (string, default is 'default').
Show which resources are being used the most in the cluster.
Provide a complete health check of the cluster.
Check for any nodes not in a Ready state.
Show pods in the specified namespace that have been running for more than a specified number of days. Parameters: days (integer, default is 7).
Identify any pods in the specified namespace with high restart counts. Parameters: namespace (string, default is 'default').
Show the logs for the specified payment service.
List all ingresses in the cluster.
Show all services and their endpoints.
Check if the specified service has any endpoints. Parameters: service_name (string).
Show all exposed services with external IPs.
List all persistent volumes in the cluster.
Show storage claims that are unbound.
List available storage classes in the cluster.
Identify which pods are using persistent storage.
Check for any storage volumes nearing capacity.
List all running jobs in the specified namespace. Parameters: namespace (string, default is 'batch').
Show failed jobs from the last 24 hours.
List CronJobs scheduled to run in the next hour.
Show the execution history of the specified job. Parameters: job_name (string).
List all Helm releases in the cluster.
Upgrade the specified Helm chart to a specific version. Parameters: chart_name (string), version (string).
Show the values configured for the specified Helm release. Parameters: release_name (string).
Rollback the specified failed Helm release. Parameters: release_name (string).
Show the revision history for the specified Helm release. Parameters: release_name (string).
Compare values between different Helm releases. Parameters: release_name_1 (string), release_name_2 (string).
Check for outdated Helm charts in the cluster.
Show the dependencies for the specified Helm chart. Parameters: chart_name (string).