Skip to Content

Kubernetes

Connect to Kubernetes clusters to use cluster operation features such as resource management, monitoring, and log viewing.

Key Features

  • Kubernetes resource viewing and management
  • Pod log viewing
  • Cluster metrics monitoring
  • Event viewing
  • Resource creation, modification, and deletion

Basic Information

Authentication Method

Authenticate using Kubeconfig files or service account tokens.

Input Parameters

  • API Server Endpoint (required): Kubernetes API server endpoint
  • Skip Insecure Certificates Verify (optional): Whether to skip certificate verification
  • Root CA Certificate (optional): Root CA certificate
  • Service Account Token (required): Service account token

Supported MCP Tools

Resource Query Tools

list_api_resources

Query all API resources in the Kubernetes cluster.

Input Parameters:

  • includeNamespaceScoped (optional): Whether to include namespace-scoped resources
  • includeClusterScoped (optional): Whether to include cluster-scoped resources

list_resources

Query the list of resources in the Kubernetes cluster.

Input Parameters:

  • kind (required): Resource type (Pod, Service, Deployment, etc.)
  • namespace (optional): Namespace
  • labelSelector (optional): Label selector

get_resource

Query a specific Kubernetes resource.

Input Parameters:

  • kind (required): Resource type
  • name (required): Resource name
  • namespace (optional): Namespace

describe_resource

Query detailed information about a Kubernetes resource.

Input Parameters:

  • kind (required): Resource type
  • name (required): Resource name
  • namespace (optional): Namespace

Logging and Monitoring Tools

get_pod_logs

Query logs of a specific Pod.

Input Parameters:

  • namespace (required): Namespace
  • name (required): Pod name

get_node_metrics

Query metrics of a specific node.

Input Parameters:

  • name (required): Node name

get_pod_metrics

Query metrics of a specific Pod.

Input Parameters:

  • namespace (required): Namespace
  • name (required): Pod name

get_events

Query events in the Kubernetes cluster.

Input Parameters:

  • namespace (optional): Namespace

Resource Management Tools

create_or_update_resource

Create or update Kubernetes resources.

Input Parameters:

  • manifest (required): YAML manifest content

delete_resource

Delete Kubernetes resources.

Input Parameters:

  • kind (required): Resource type
  • name (required): Resource name
  • namespace (optional): Namespace

Usage Example

For example,

  • When you input the prompt “Show me all Pods in the default namespace”,
  • The LLM will call the list_resources tool through MCP to query the Pod list.
  • Then, it responds in the chat based on the tool call results.

Precautions

  • Manage cluster access permissions securely.
  • Read-only permissions are recommended for production environments.
  • Carefully review resource creation/modification/deletion operations.
  • Check network connection status.
Last updated on