Skip to main content

astroctl_infra_kubernetes_scale

astroctl infra kubernetes scale

Scale a node group

Synopsis

Scale a node group's minimum and maximum node count.

For complex updates (provider-specific settings, multiple changes), use: astroctl infra k8s update <cluster> -f update.yaml

astroctl infra kubernetes scale <cluster-name> [nodegroup-name] [flags]

Examples

# List node groups in a cluster
astroctl infra k8s scale my-cluster --list

# Scale node group ng-1 to min 3, max 10
astroctl infra k8s scale my-cluster ng-1 --min 3 --max 10

# Scale with dry-run to preview
astroctl infra k8s scale my-cluster ng-1 --min 5 --max 20 --dry-run

# Scale only minimum (keeps current max)
astroctl infra k8s scale my-cluster ng-1 --min 3

# Scale only maximum (keeps current min)
astroctl infra k8s scale my-cluster ng-1 --max 10

# Scale with rolling update controls
astroctl infra k8s scale my-cluster ng-1 --min 5 --max 20 --max-surge 2 --max-unavailable 1

# Scale with percentage-based rolling update
astroctl infra k8s scale my-cluster ng-1 --min 10 --max 50 --max-surge 25% --max-unavailable 10%

Options

--dry-run Preview scaling without applying changes
-h, --help help for scale
--list List available node groups in this cluster
--max int Maximum number of nodes (default -1)
--max-surge string Max nodes created above desired during rolling update (e.g. '2' or '25%')
--max-unavailable string Max nodes unavailable during rolling update (e.g. '1' or '10%')
--min int Minimum number of nodes (default -1)

Options inherited from parent commands

-o, --output string Output format (json|yaml) (default "yaml")

SEE ALSO