Set-AksHciNodePool

Synopsis

Scale a node pool within a Kubernetes cluster.

Syntax

Set-AksHciNodePool -clusterName <String>
                   -name <String>
                   -count <int>
                   [-autoScaler <boolean>]

Description

Scale a node pool within a Kubernetes cluster.

Configure the number of nodes in a node pool

Set-AksHciNodePool -clusterName mycluster -name nodepool1 -count 3

Enable horizontal node autoscaler for the node pool

Note

This will only work if the horizontal autoscaler is enabled for the cluster.

Set-AksHciNodePool -clusterName mycluster -name nodepool1 -autoScaler $true

Disable horizontal node autoscaler for the node pool

Note

This will only work if the horizontal autoscaler is enabled for the cluster.

Set-AksHciNodePool -clusterName mycluster -name nodepool1 -autoScaler $false

-clusterName

The name of the Kubernetes cluster.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-name

The name of your node pool.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-count

The number of nodes to scale to.

Type: System.Int32
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-autoScaler

Toggle the horizontal autoscaler for a node pool

Type: System.Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Next steps

AksHci PowerShell Reference