Skip to main content
Glama

k8s_uncordon_node

Re-enables pod scheduling on a Kubernetes node by marking it as schedulable after maintenance or issues.

Instructions

Mark a node as schedulable (uncordon) — re-enables pod scheduling

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesNode name

Implementation Reference

  • The handler function that executes the node uncordon operation by patching the Kubernetes node object.
    export async function uncordonNode(args: Record<string, unknown>): Promise<string> {
      const api = getCoreV1Api();
      const name = args.name as string;
      if (!name) throw new Error("Node name is required");
    
      await api.patchNode(
        name,
        { spec: { unschedulable: false } },
        undefined,
        undefined,
        undefined,
        undefined,
        undefined,
        { headers: { "Content-Type": "application/strategic-merge-patch+json" } }
      );
    
      return `Node '${name}' uncordoned — scheduling is re-enabled.`;
    }
  • The MCP tool registration for 'k8s_uncordon_node', defining its schema and description.
    {
      name: "k8s_uncordon_node",
      description: "Mark a node as schedulable (uncordon) — re-enables pod scheduling",
      inputSchema: {
        type: "object" as const,
        properties: {
          name: { type: "string", description: "Node name" },
        },
        required: ["name"],
      },
    },

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/batu-sonmez/infraclaude'

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