Skip to main content
Glama

daemonset_delete

Deletes a specified DaemonSet from a Kubernetes namespace in the chosen context using k8s-pilot MCP server. Simplifies cluster resource management with concise deletion operations.

Instructions

Delete a DaemonSet from the specified namespace.

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

Returns: Status of the deletion operation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
context_nameYes
nameYes
namespaceYes

Implementation Reference

  • The handler function that implements the daemonset_delete tool. It retrieves the AppsV1Api client and calls delete_namespaced_daemon_set to remove the specified DaemonSet.
    def daemonset_delete(context_name: str, namespace: str, name: str): """ Delete a DaemonSet from the specified namespace. Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The DaemonSet name Returns: Status of the deletion operation """ apps_v1: AppsV1Api = get_api_clients(context_name)["apps"] apps_v1.delete_namespaced_daemon_set(name=name, namespace=namespace) return {"name": name, "status": "Deleted"}
  • Decorators that register the daemonset_delete function as an MCP tool, apply the current context, and enforce read-only permissions.
    @mcp.tool() @use_current_context @check_readonly_permission

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