Skip to content
Proud to collaborate with Microsoft for Startups

kubernetes.node.cordon ​

Mark a Node as unschedulable (kubectl cordon equivalent)

Marks a Kubernetes Node as unschedulable by setting spec.unschedulable: true, equivalent to kubectl cordon <node>. The operation is idempotent: cordoning an already-cordoned node succeeds silently.

Inputs:

  • connection_uuid: Cloud connection UUID (required)
  • name: Node name (required)

Outputs:

  • previously_schedulable: True if the node was schedulable before this call, False if it was already cordoned.

Plugin required: context.get_plugin("connection").kubernetes_runner_clients(connection_uuid, organization_uuid) must expose core_v1 (a CoreV1Api instance) with read_node and patch_node.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-kubernetes
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidYes——
namestringYes——
organization_uuiduuidNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo——
organization_uuiduuidNo——
namestringNo——
previously_schedulablebooleanNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "kubernetes.node.cordon",
  "initial_data": {
    "connection_uuid": "value",
    "name": "value"
  }
}