kubernetes-mcp

Query Kubernetes cluster state for pods, deployments, logs, events, and configmaps.

Updated Jul 15, 2024
One-click install
npx skills add https://github.com/christian-deleon/dotfiles --skill kubernetes-mcp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kubernetes-mcp
Source: https://github.com/christian-deleon/dotfiles/tree/main/ai/skills/kubernetes-mcp
Command: npx skills add https://github.com/christian-deleon/dotfiles --skill kubernetes-mcp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides secure access to the Kubernetes cluster state, enabling users to read live cluster state, perform kubectl-style queries, and get insights into the system's status.

Core Features & Use Cases

  • Cluster State Access: Read pod, deployment, logs, events, configmaps, and other resources within the cluster.
  • Kubectl-Style Queries: Execute commands similar to kubectl to retrieve and display information about the cluster.
  • Use Case: When diagnosing a deployment issue, you can use this Skill to quickly get the live logs of a pod or check the current state of a service.

Quick Start

Use the kubernetes-mcp skill to retrieve the logs of the pod named 'my-pod' in the namespace 'default'.

Frequently Asked Questions about kubernetes-mcp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query live Kubernetes cluster state and inspect pod logs?

You can retrieve live Kubernetes logs by using this Skill to perform kubectl-style queries that read and display pod logs, events, and configmaps. It is designed for debugging and monitoring purposes within your cluster.

Can I get live logs from a specific pod in a Kubernetes namespace?

Yes, you can retrieve live logs from a specific pod by providing the pod name and namespace in your query. The Skill accesses the Kubernetes cluster state through the MCP server to fetch the requested diagnostic information.

What Kubernetes resources can I inspect for diagnosing deployment issues?

You can inspect pods, deployments, logs, events, and configmaps to diagnose deployment issues. This allows you to quickly check the current state of a service or read live cluster data during troubleshooting.

Does this Kubernetes MCP server require kubectl installed to query cluster state?

No, the Skill provides kubectl-style queries natively through the Kubernetes MCP server without requiring the kubectl CLI directly. It executes commands to retrieve and display information about the cluster state securely.

What is the best way to monitor Kubernetes events and configmaps without kubectl?

Using a Kubernetes MCP server is an effective way to monitor events and configmaps without kubectl, as it enables live queries and state inspection directly. This approach provides secure access to read cluster resources for debugging.