Skip to content
Proud to collaborate with Microsoft for Startups

mgc.kubernetes.create_nodepool ​

Create a node pool in a Magalu Cloud Kubernetes cluster.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryBase-mgc
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidYes—CloudConnection UUID for the target Magalu account.
workflow_run_idstringNo—Engine DAG run ID stamped onto child steps.
cluster_idstringYes—Cluster id the node pool belongs to.
namestringYes—Node pool name.
flavorstringYes—Node flavor name (CPU/RAM/storage).
replicasintegerYes—Initial node count.
min_replicasintegerNo—Autoscale minimum.
max_replicasintegerNo—Autoscale maximum.

Output Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo—CloudConnection UUID echoed from input.
cluster_idstringNo—Cluster id.
nodepool_idstringNo—Provider node pool id.
nodepooljsonNo—Provider node pool object.
failure_reasonstringNo—Human-readable failure reason.
failed_stepstringNo—Failed logical step.
failed_layerstringNo—DAG layer where failure occurred.
failed_at_statestringNo—State where failure occurred.
errorstringNo—Error message.
error_typestringNo—Error class.
failed_atstringNo—ISO failure timestamp.

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": "mgc.kubernetes.create_nodepool",
  "initial_data": {
    "connection_uuid": "value",
    "cluster_id": "value",
    "name": "value",
    "flavor": "value"
  }
}