Skip to main content
Glama

daemonset_get

Retrieve detailed information about a specific DaemonSet in a Kubernetes cluster using context name, namespace, and DaemonSet name to streamline resource management.

Instructions

Get details of a specific DaemonSet.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The DaemonSet name

Returns: Detailed information about the DaemonSet

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
context_nameYes
nameYes
namespaceYes

Implementation Reference

  • The daemonset_get tool handler: retrieves a specific DaemonSet's details (name, labels, container images) using Kubernetes AppsV1Api. Registered via @mcp.tool() decorator.
    @mcp.tool() @use_current_context def daemonset_get(context_name: str, namespace: str, name: str): """ Get details of a specific DaemonSet. Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The DaemonSet name Returns: Detailed information about the DaemonSet """ apps_v1: AppsV1Api = get_api_clients(context_name)["apps"] daemonset = apps_v1.read_namespaced_daemon_set(name=name, namespace=namespace) return {"name": daemonset.metadata.name, "labels": daemonset.metadata.labels, "containers": [c.image for c in daemonset.spec.template.spec.containers]}

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bourbonkk/k8s-pilot'

If you have feedback or need assistance with the MCP directory API, please join our Discord server