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
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Node name |
Implementation Reference
- src/tools/kubernetes/nodes.ts:105-122 (handler)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.`; } - src/tools/kubernetes/index.ts:176-186 (registration)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"], }, },