Skip to main content
Glama

ingress_delete

Delete Kubernetes Ingress resources from specified namespaces to manage network access and routing rules in clusters.

Instructions

Delete an Ingress from the specified namespace.

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

Returns: Status of the deletion operation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
context_nameYes
namespaceYes
nameYes

Implementation Reference

  • The ingress_delete tool handler: deletes the specified Kubernetes Ingress resource in the given namespace using the Kubernetes NetworkingV1Api. Registered via @mcp.tool() decorator.
    @mcp.tool() @use_current_context @check_readonly_permission def ingress_delete(context_name: str, namespace: str, name: str): """ Delete an Ingress from the specified namespace. Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Ingress name Returns: Status of the deletion operation """ networking_v1: NetworkingV1Api = get_api_clients(context_name)["networking"] networking_v1.delete_namespaced_ingress(name=name, namespace=namespace) return {"name": name, "status": "Deleted"}

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