create_morpheus_cluster
Create and provision a new Kubernetes cluster on HPE Morpheus. Requires an HPE Morpheus credential, an SSH key credential, and the numeric Morpheus placement ids (group, cloud, network, layout) plus service-plan ids for the bastion, control plane, and workers. Use list_morpheus_options to resolve every id. The cluster will begin provisioning immediately after confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cni | No | Cluster CNI. Default: 'flannel'. | |
| name | Yes | Cluster name. Must be unique within the organisation. | |
| cloud_id | Yes | Morpheus cloud id (from list_morpheus_options). | |
| group_id | Yes | Morpheus group id (from list_morpheus_options). | |
| layout_id | Yes | Morpheus instance layout id (from list_morpheus_options). | |
| network_id | Yes | Morpheus network id (from list_morpheus_options). | |
| description | No | Optional cluster description. | |
| node_groups | No | Optional heterogeneous worker pools. When provided, worker_count and worker_plan_id are ignored. Each entry creates `count` workers on the given service plan with the given labels and taints. | |
| distribution | No | Kubernetes distribution. Default: 'kubeadm'. | |
| etcd_plan_id | No | Optional service-plan id for external etcd nodes. Falls back to control_plane_plan_id. | |
| worker_count | No | Number of worker nodes when node_groups is not provided. Must be at least 1 unless node_groups is supplied. Default: 1. | |
| credential_id | Yes | UUID of the HPE Morpheus credential. | |
| etcd_topology | No | etcd topology. 'external' requires distribution 'kubeadm'. Default: 'stacked'. | |
| worker_plan_id | Yes | Service-plan id for worker nodes (from list_morpheus_options). | |
| bastion_plan_id | Yes | Service-plan id for the bastion VM (from list_morpheus_options). | |
| etcd_node_count | No | Number of external etcd nodes (3 or 5). Only used when etcd_topology is 'external'. Default: 3. | |
| virtual_image_id | No | Optional Morpheus virtual image id to clone the VMs from. | |
| include_networking | No | Publish the Ankra networking stack after bootstrap (disables the k3s-bundled Traefik). Default: true. | |
| kubernetes_version | No | Kubernetes version. If not specified, uses the latest stable version. | |
| control_plane_count | No | Number of control plane nodes (1 or 3 for HA). Default: 1. | |
| control_plane_plan_id | Yes | Service-plan id for control plane nodes (from list_morpheus_options). | |
| ssh_key_credential_id | Yes | UUID of the SSH key credential to authorise on the cluster servers. |