Skip to main content
Glama

ingress_list

List all Kubernetes Ingress resources in a specified namespace to monitor and manage network traffic routing configurations.

Instructions

List all Ingresses in a given namespace.

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

Returns: List of Ingress basic information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
context_nameYes
namespaceYes

Implementation Reference

  • The handler function for the 'ingress_list' tool. It lists Ingress resources in a specified Kubernetes namespace using the NetworkingV1Api. Registered via @mcp.tool() decorator.
    @mcp.tool()
    @use_current_context
    def ingress_list(context_name: str, namespace: str):
        """
        List all Ingresses in a given namespace.
    
        Args:
            context_name: The Kubernetes context name
            namespace: The Kubernetes namespace
    
        Returns:
            List of Ingress basic information
        """
        networking_v1: NetworkingV1Api = get_api_clients(context_name)["networking"]
        ingresses = networking_v1.list_namespaced_ingress(namespace)
        result = [{"name": ingress.metadata.name} for ingress in ingresses.items]
        return result

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