Data plane
The data plane is the node groups your workloads run on. Each group has a name, the machines its nodes use or the GPU they carry, how many nodes it runs, how they are bought, and optionally zones, disk size, labels and taints. A cluster needs at least one node group, except on EKS Auto Mode and GKE Autopilot, where the cloud provisions nodes from workload demand and the manifest leaves dataPlane out.
Before you start
- The machine types your region offers:
astroctl cloud <aws|gcp|azure> machines list -r <region>. - Room in your cloud account's quotas for each group at its largest size.
In the console
-
When you create a cluster, the wizard's Node groups step adds each group: select Add Node Group, pick the machines under Compute (Pick machine types, or Request GPU hardware), then set Nodes, Pricing and Name, and optionally Availability Zones.
-
On a running cluster, the Node groups tab lists each group with its Machine types, Accelerator, Capacity and node count. Modify changes a group and Remove removes it, each after a dry run.
-
To add a group to a running cluster, open the Update tab and select Change node groups: Update and upgrade.
Open zoom view
You should see
The Node groups tab lists each group with the nodes you set, and Running nodes below it lists every node on the cluster with its machine, capacity and zone.
Node counts
minNode and maxNode bound a group. minNode: 0 is allowed where something watches the group and brings nodes back when a pod cannot be placed: GKE, AKS pools after the first, and self-hosted clusters. The group then drains to nothing while idle, and you stop paying for its nodes; the control plane keeps running and is still billed.
- EKS managed node groups are fixed capacity: the console asks for Nodes, and
minNode: 0is refused. For elastic capacity, install the Node Autoscaling add-on. - AKS refuses
minNode: 0on the first node group, which runs cluster-critical workloads. Scale a later pool to zero instead. - A group holds at most 1000 nodes.
Machine types and disk
On eks a group draws from every machine type it lists. gke, aks and selfHosted groups run exactly one; a longer list is refused. machineTypes is optional when the group requests a GPU with accelerator: GPU node groups.
diskSizeGB is every node's root disk. It holds the operating system, the images the node pulls and anything written to local disk, including the model weight cache, which is why a GPU group usually needs more than the default. Changing it replaces the group's nodes, and is refused on gke, which cannot resize a node pool's disk in place.
How nodes are bought
instanceType cannot change on an existing group.
OnDemand: standard pricing. The default.Spot: discounted, and the cloud can take a node back.Reserved: capacity reservations the account already holds, then On-Demand when none covers a node.eksandgkeonly. AstroPulse never creates or buys a reservation.CapacityBlock: an EC2 Capacity Block for ML the account already holds, and nothing else. The group names exactly one machine type and one zone, the block's; the block must be active and reserve at leastmaxNodeinstances. The nodes end when the block ends.eksonly.
Other ways in
- Nova: ask, for example, "scale the platform node group on eks-prod to 3 nodes". Nova previews the change and applies it after you confirm.
- SDK and API:
clusterSpec.dataPlane.nodeGroupsin the cluster manifest. See the API reference.
With astroctl
dataPlane:
nodeGroups:
- name: example-group
minNode: 3
maxNode: 5
machineTypes: ["m5.xlarge", "m5.2xlarge"]
diskSizeGB: 200
labels:
"example-label": "example-value"
instanceType: OnDemand
# the node groups a cluster has, with their bounds
astroctl infra k8s scale <cluster> --list
# preview a scale without applying it
astroctl infra k8s scale <cluster> <node-group> --min 2 --max 6 --dry-run
# apply a node group again at the sizes it has, so AstroPulse labels its nodes
# and creates resources the cluster is missing (replaces the nodes on a self-hosted cluster)
astroctl infra k8s scale <cluster> <node-group> --min 2 --max 6 --reapply
# preview a removal without applying it
astroctl infra k8s update <cluster> --remove-node-group <node-group> --dry-run
# what the last operation did, step by step
astroctl infra k8s progress history <cluster>
List what a region offers with astroctl cloud aws regions list, astroctl cloud aws regions zones list -r us-west-2 and astroctl cloud aws machines list -r us-west-2 --cpuMin 2 --cpuMax 4. Every flag: astroctl cloud.
Settings
nameRequiredThe node group's name.
minNodeRequiredThe fewest nodes the group runs. On EKS the group runs at this count.
0 to maxNode. 0 is refused on EKS and on the first AKS node group.maxNodeRequiredThe most nodes the group runs.
minNode.machineTypesThe machine types nodes use. One on gke, aks and selfHosted; several on eks.
astroctl cloud <aws|gcp|azure> machines list -r <region>acceleratorA GPU request: AstroPulse resolves the machine types that carry it.
instanceTypeHow the nodes are bought.
OnDemandOn-Demand Uses capacity at the standard price, for as long as the nodes run.SpotSpot Uses discounted capacity that the cloud can reclaim at short notice.ReservedReserved Uses capacity reservations your account holds, then on-demand capacity.CapacityBlockCapacity Blocks for ML Uses only an EC2 Capacity Block for ML that your account holds.
OnDemand
availabilityZonesThe zones the group places nodes in.
diskSizeGBEvery node's root disk, in whole gigabytes.
eks and selfHosted, 20 to 65536 on gke, 30 to 2048 on aks.eks and gke, 20 on selfHosted, the machine type's own size on aks.labelsLabels on the group's nodes.
taintsTaints on the group's nodes.
If it's refused
<name>: maxNode must be at least 1", "node group <name>: minNode cannot be negative", or "node group <name>: minNode (<min>) cannot be greater than maxNode (<max>)"0 <= minNode <= maxNode and maxNode >= 1, then apply againmaxNode, or split the capacity across more node groups<name>: minNode 0 is not supported on eks. ..."minNode to at least 1, or install the Node Autoscaling add-on for capacity that scales to zero<name>: minNode 0 is not supported for the system pool on aks, which must keep at least one node. Scale a user pool to zero instead"minNode: 1 on the first pool and scale a later pool to zerodataPlane from the spec<name>: <machine> not offered in [<zones>] (offered in [<zones>])", with reasonCode MachineTypeUnavailable (AcceleratorUnavailable for a GPU group)<name> to zones that offer the hardware", or choose another machine type. List what a region offers with astroctl cloud aws machines list -r <region><machine> is offered in zones [...], but nodes will be placed in every one of [...] and the machine type must exist in each of them; ..."availabilityZones to zones that offer it, as the message advises<name>: quota ... limit ..., in use by other capacity ..., required ... at the most nodes it can grow to (maximum ...)", with reasonCode QuotaExceeded (AcceleratorQuotaExceeded for a GPU group)maxNodestatusReason starts with "Not enough capacity or quota"<min>) cannot be greater than --max (<max>)", or "node group '<name>' not found in cluster '<cluster>'"scale command was given no bounds, inverted bounds, or a name the cluster does not haveastroctl infra k8s scale <cluster> --list for the exact names<GKE, AKS or self-hosted> clusters yet, so node group <name> was not removed."<name> can't be removed: it's the last node group that can run AstroPulse's system pods. Keep or add a node group with a minNode of at least 1 and no taint other than CriticalAddonsOnly or PreferNoSchedule."<name> can't be combined with a Kubernetes version change: remove it first, then upgrade." or "Node group <name> is both removed and changed in this update: ..."NodeGroupRemovalBlocked: "AstroPulse can't check whether node group <name> exists in cluster <cluster>: AWS denied AstroPulse the read (...). Allow eks:ListNodegroups, eks:DescribeNodegroup, cloudformation:ListStacks and cloudformation:DescribeStacks ..."progress history shows "Cluster update failed (<state>): <error>"For a Pod that cannot be scheduled, the scheduler's message in
kubectl describe pod names the resource or rule it could not satisfy; see
Debug Pods
in the Kubernetes documentation. For an EKS node that never joins, see
Troubleshoot problems with Amazon EKS clusters and nodes.