New-AksHciLoadBalancerSetting

Synopsis

Create a load balancer object for the workload clusters.

Syntax

New-AksHciLoadBalancerSetting -name <String>
                              -loadBalancerSku {HAProxy, none}

Description

Create a load balancer object for the workload clusters.

Note

When you deploy an AKS cluster with no load balancer, you need to make sure that the Kubernetes API server is reachable. kube-vip is automatically deployed to handle requests to the API server, which allows you to continue to perform cluster operations. If you choose none as the load balancer SKU, then your applications will be unreachable until you configure your own load balancer.

Examples

Create a load balancer object

$loadbalancer = New-AksHciLoadBalancerObject -name mylb -loadBalancerSku none

Parameters

-name

The name of the load balancer object.

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

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

-loadBalancerSku

The load balancer SKU that is to be deployed. The value must be HAProxy or none.

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

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

Next steps

AksHci PowerShell Reference