Claude Code Plugins

Community-maintained marketplace

Feedback

cordon-node

@X-McKay/kubani
1
0

>

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name cordon-node
description Mark a node as unschedulable to prevent new pods from being scheduled. Use when a node is experiencing issues and needs maintenance. Existing pods continue running. Keywords: cordon, node maintenance, unschedulable, node issues.
metadata [object Object]

Cordon Node

Preconditions

Before applying this skill, verify:

  • Node name is known
  • Node is currently schedulable
  • Cordoning won't cause capacity issues

Actions

1. Verify Node Status

Check current node state before cordoning.

mcp_tool: kubernetes-mcp-server/resources_get
params:
  apiVersion: v1
  kind: Node
  name: $node_name
timeout: 30s

2. Cordon the Node

Mark node as unschedulable using patch.

mcp_tool: kubernetes-mcp-server/resources_create_or_update
params:
  resource: |
    apiVersion: v1
    kind: Node
    metadata:
      name: $node_name
    spec:
      unschedulable: true
timeout: 30s

3. Verify Cordon Status

Confirm node is now unschedulable.

mcp_tool: kubernetes-mcp-server/resources_get
params:
  apiVersion: v1
  kind: Node
  name: $node_name
timeout: 30s

Success Criteria

The skill succeeds when:

  • Node spec.unschedulable is true
  • Node shows SchedulingDisabled condition
  • Existing pods continue running

Failure Handling

If cordoning fails:

  1. Check node exists
  2. Verify cluster permissions
  3. Check for control plane issues

Examples

Input Context:

{
  "node_name": "worker-node-3"
}

Output:

{
  "node": "worker-node-3",
  "previous_state": "schedulable",
  "current_state": "unschedulable",
  "running_pods": 15,
  "success": true
}