Skip to main content
Glama

replicaset_delete

Remove a ReplicaSet from a specified Kubernetes namespace. Specify context, namespace, and ReplicaSet name to execute the deletion operation and receive status confirmation.

Instructions

Delete a ReplicaSet from the specified namespace.

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

Returns: Status of the deletion operation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
context_nameYes
nameYes
namespaceYes

Implementation Reference

  • The main handler function for the 'replicaset_delete' tool. It is decorated with @mcp.tool() which registers it as an MCP tool. The function deletes the specified ReplicaSet using the Kubernetes AppsV1Api and returns a status message.
    @mcp.tool() @use_current_context @check_readonly_permission def replicaset_delete(context_name: str, namespace: str, name: str): """ Delete a ReplicaSet from the specified namespace. Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The ReplicaSet name Returns: Status of the deletion operation """ apps_v1: AppsV1Api = get_api_clients(context_name)["apps"] apps_v1.delete_namespaced_replica_set(name=name, namespace=namespace) return {"name": name, "status": "Deleted"}

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