Skip to main content

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​

  1. 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.

  2. 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.

  3. To add a group to a running cluster, open the Update tab and select Change node groups: Update and upgrade.

    Open zoom view

    The Node groups tab with a system and a platform group, each with Modify and Remove

    The Node groups tab with a system and a platform group, each with Modify and RemoveThe Node groups tab with a system and a platform group, each with Modify and Remove

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: 0 is refused. For elastic capacity, install the Node Autoscaling add-on.
  • AKS refuses minNode: 0 on 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. eks and gke only. 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 least maxNode instances. The nodes end when the block ends. eks only.

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.nodeGroups in the cluster manifest. See the API reference.

With astroctl​

YAML
dataPlane:
nodeGroups:
- name: example-group
minNode: 3
maxNode: 5
machineTypes: ["m5.xlarge", "m5.2xlarge"]
diskSizeGB: 200
labels:
"example-label": "example-value"
instanceType: OnDemand
Terminal
# 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​

NamenameRequired

The node group's name.

Accepts
A DNS name.
NodesminNodeRequired

The fewest nodes the group runs. On EKS the group runs at this count.

Accepts
0 to maxNode. 0 is refused on EKS and on the first AKS node group.
maxNodeRequired

The most nodes the group runs.

Accepts
1 to 1000, at least minNode.
Machine typesmachineTypes

The machine types nodes use. One on gke, aks and selfHosted; several on eks.

See
astroctl cloud <aws|gcp|azure> machines list -r <region>
Request GPU hardwareaccelerator

A GPU request: AstroPulse resolves the machine types that carry it.

PricinginstanceType

How the nodes are bought.

Accepts
  • OnDemand On-Demand Uses capacity at the standard price, for as long as the nodes run.
  • Spot Spot Uses discounted capacity that the cloud can reclaim at short notice.
  • Reserved Reserved Uses capacity reservations your account holds, then on-demand capacity.
  • CapacityBlock Capacity Blocks for ML Uses only an EC2 Capacity Block for ML that your account holds.
Default

OnDemand

Availability ZonesavailabilityZones

The zones the group places nodes in.

Default
Zones AstroPulse picks for the region and provider.
diskSizeGB

Every node's root disk, in whole gigabytes.

Accepts
20 to 16384 on eks and selfHosted, 20 to 65536 on gke, 30 to 2048 on aks.
Default
100 on eks and gke, 20 on selfHosted, the machine type's own size on aks.
labels

Labels on the group's nodes.

taints

Taints on the group's nodes.

If it's refused​

"node group <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>)"
Cause
The group's bounds are invalid. Nothing was changed
Fix
Set 0 <= minNode <= maxNode and maxNode >= 1, then apply again
"maxNode cannot exceed 1000 nodes per node group"
Cause
A single group is capped at 1000 nodes
Fix
Lower maxNode, or split the capacity across more node groups
"node group <name>: minNode 0 is not supported on eks. ..."
Cause
An EKS managed node group is fixed capacity, so nothing would bring it back from zero
Fix
Set minNode to at least 1, or install the Node Autoscaling add-on for capacity that scales to zero
"node group <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"
Cause
The first AKS pool runs cluster-critical workloads
Fix
Keep minNode: 1 on the first pool and scale a later pool to zero
"node groups must be omitted for EKS Auto Mode, which provisions nodes from workload demand"
Cause
An EKS cluster in Auto Mode has no node groups
Fix
Remove dataPlane from the spec
Dry run fails the "Zone Offering" check: "node group <name>: <machine> not offered in [<zones>] (offered in [<zones>])", with reasonCode MachineTypeUnavailable (AcceleratorUnavailable for a GPU group)
Cause
The machine type does not exist in every zone the group would use
Fix
Do what the check's remediation says: "Set availabilityZones on node 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 type <machine> is offered in zones [...], but nodes will be placed in every one of [...] and the machine type must exist in each of them; ..."
Cause
Same cause, found while validating the spec
Fix
Pin availabilityZones to zones that offer it, as the message advises
Dry run fails the "Quota Headroom" check: "node group <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)
Cause
The cloud account's quota cannot hold the group at its maximum nodes. For a group without accelerators it is a warning everywhere except AKS, which enforces each VM family's quota
Fix
Request the quota the check names, in the cluster's region, or lower maxNode
The cluster's statusReason starts with "Not enough capacity or quota"
Cause
The cloud had no capacity for that machine type, or a quota ran out, while nodes were created
Fix
Raise the quota, or choose other machine types or zones, then apply again
CLI: "must specify --min and/or --max", "--min (<min>) cannot be greater than --max (<max>)", or "node group '<name>' not found in cluster '<cluster>'"
Cause
The scale command was given no bounds, inverted bounds, or a name the cluster does not have
Fix
Run astroctl infra k8s scale <cluster> --list for the exact names
"Removing a node group is not available for <GKE, AKS or self-hosted> clusters yet, so node group <name> was not removed."
Cause
Removing node groups is supported on EKS only
Fix
Scale the group to its smallest allowed size instead
"Node group <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."
Cause
The cluster would be left with nowhere to run its system pods
Fix
Add or keep a group that matches, then remove this one
"Removing node group <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: ..."
Cause
One update cannot both remove a group and change it or the cluster's version
Fix
Send the removal as its own update
HTTP 409 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 ..."
Cause
AstroPulse's role in your AWS account lacks the read permissions it needs
Fix
Add the four permissions to AstroPulse's role, then remove the node group again
The cluster reads Ready but the new bounds are not there. progress history shows "Cluster update failed (<state>): <error>"
Cause
A failed scale is recorded only in the operation's events
Fix
Fix the cause the event names, then scale again

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.

Next​