Set-AksHciCluster

Synopsis

Scale the number of control plane nodes or worker nodes in a cluster.

Syntax

Scale control plane nodes

Set-AksHciCluster -name <String>
                  -controlPlaneNodeCount <int> 

Scale worker nodes

Set-AksHciCluster -name <String>
                  -linuxNodeCount <int>
                  -windowsNodeCount <int>

Note

The parameter set above for the worker nodes will be deprecated in a future release. AKS on Azure Stack HCI is introducing node pools in workload clusters. To scale worker nodes in a node pool, use the Set-AksHciNodePool command.

Description

Scale the number of control plane nodes or worker nodes in a cluster. The control plane nodes and the worker nodes must be scaled independently.

Examples

Scale control plane nodes

PS C:\> Set-AksHciCluster -name myCluster -controlPlaneNodeCount 3

Scale worker nodes

PS C:\> Set-AksHciCluster -name myCluster -linuxNodeCount 2 -windowsNodeCount 2

Parameters

-name

The alphanumeric name of your Kubernetes cluster.

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

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

-controlPlaneNodeCount

The number of nodes in your control plane. Default is 1.

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

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

-linuxNodeCount

The number of Linux nodes in your Kubernetes cluster. Default is 1.

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

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

-windowsNodeCount

The number of Windows nodes in your Kubernetes cluster. Default is 1.

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

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

Next steps

AksHci PowerShell Reference