cluster.provision-mgc-kubernetes ​
Provision a Magalu Cloud Kubernetes cluster, optional node pools, and return a Kubernetes credential payload.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-clusters |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Organization UUID for tenant isolation and parent cluster correlation. |
mgc_connection_uuid | uuid | Yes | — | Magalu CloudConnection UUID used for provider calls. |
cluster_name | string | Yes | — | Magalu Kubernetes cluster name. |
version | string | No | — | Requested Kubernetes version such as v1.30.0. |
description | string | No | — | Optional provider cluster description. |
node_pools | json | No | — | Optional list of node pools to create after cluster creation. |
nodepool_name | string | No | — | Convenience single node pool name when node_pools is omitted. |
flavor | string | No | — | Convenience single node pool flavor. |
replicas | integer | No | — | Convenience single node pool initial replica count. |
min_replicas | integer | No | — | Convenience single node pool autoscale minimum. |
max_replicas | integer | No | — | Convenience single node pool autoscale maximum. |
fetch_kubeconfig | boolean | No | — | Fetch kubeconfig after cluster readiness; defaults true. |
actor | string | No | — | Caller initiating the workflow. |
timeout_seconds | integer | No | — | Timeout while polling provider readiness. |
poll_interval | integer | No | — | Provider readiness polling interval. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | No | — | Organization UUID echoed from input. |
mgc_connection_uuid | uuid | No | — | Magalu CloudConnection UUID used. |
cluster_name | string | No | — | Magalu Kubernetes cluster name. |
version | string | No | — | Requested Kubernetes version. |
description | string | No | — | Provider cluster description. |
node_pools | json | No | — | Optional list of node pools to create after cluster creation. |
nodepool_name | string | No | — | Convenience single node pool name when node_pools is omitted. |
flavor | string | No | — | Convenience single node pool flavor. |
replicas | integer | No | — | Convenience single node pool initial replica count. |
min_replicas | integer | No | — | Convenience single node pool autoscale minimum. |
max_replicas | integer | No | — | Convenience single node pool autoscale maximum. |
fetch_kubeconfig | boolean | No | — | Fetch kubeconfig after cluster readiness; defaults true. |
actor | string | No | — | Caller initiating the workflow. |
timeout_seconds | integer | No | — | Timeout while polling provider readiness. |
poll_interval | integer | No | — | Provider readiness polling interval. |
create_cluster | json | No | — | Output from mgc.kubernetes.create_cluster. |
create_nodepools | json | No | — | Outputs from mgc.kubernetes.create_nodepool fanout. |
get_cluster | json | No | — | Last output from mgc.kubernetes.get_cluster. |
get_kubeconfig | json | No | — | Output from mgc.kubernetes.get_kubeconfig. |
cluster_id | string | No | — | Provider cluster id. |
provider_cluster_ref | string | No | — | Provider-neutral alias for cluster_id. |
cluster | json | No | — | Provider cluster object. |
nodepools | json | No | — | Created provider node pool objects. |
kubeconfig | json | No | — | Kubeconfig material returned by Magalu provider. |
credential_payload | json | No | — | Kubernetes credential payload for cluster.register-kubernetes-connection. |
status | string | No | — | Normalized provision status. |
phase | string | No | — | Raw or normalized provider phase. |
ready | boolean | No | — | True when provider status indicates the cluster is ready. |
completed_at | string | No | — | ISO completion timestamp. |
failure_reason | string | No | — | Human-readable failure reason. |
failed_step | json | No | — | Failed logical step or child workflow. |
failed_layer | json | No | — | Engine failed layer when applicable. |
failed_at_state | json | No | — | State where failure occurred. |
error | string | No | — | Error message. |
error_type | string | No | — | Error class. |
failed_at | string | No | — | ISO failure timestamp. |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | create_cluster | — |
creating_cluster | No | No | — | create_nodepools | — |
creating_nodepools | No | No | — | wait_cluster_ready | — |
fetching_kubeconfig | No | No | — | complete | — |
waiting_cluster_ready | No | No | — | fetch_kubeconfig | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | create_cluster | creating_cluster | — |
creating_cluster | create_nodepools | creating_nodepools | — |
creating_nodepools | wait_cluster_ready | waiting_cluster_ready | — |
waiting_cluster_ready | fetch_kubeconfig | fetching_kubeconfig | — |
fetching_kubeconfig | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "cluster.provision-mgc-kubernetes",
"initial_data": {
"organization_uuid": "value",
"mgc_connection_uuid": "value",
"cluster_name": "value"
}
}