Share via


ArmHybridContainerServiceModelFactory.HybridContainerServiceNamedAgentPoolProfile Method

Definition

Initializes a new instance of HybridContainerServiceNamedAgentPoolProfile.

public static Azure.ResourceManager.HybridContainerService.Models.HybridContainerServiceNamedAgentPoolProfile HybridContainerServiceNamedAgentPoolProfile (Azure.ResourceManager.HybridContainerService.Models.HybridContainerServiceOSType? osType = default, Azure.ResourceManager.HybridContainerService.Models.HybridContainerServiceOSSku? osSku = default, System.Collections.Generic.IDictionary<string,string> nodeLabels = default, System.Collections.Generic.IEnumerable<string> nodeTaints = default, int? maxCount = default, int? minCount = default, bool? enableAutoScaling = default, int? maxPods = default, int? count = default, string vmSize = default, string kubernetesVersion = default, string name = default);
static member HybridContainerServiceNamedAgentPoolProfile : Nullable<Azure.ResourceManager.HybridContainerService.Models.HybridContainerServiceOSType> * Nullable<Azure.ResourceManager.HybridContainerService.Models.HybridContainerServiceOSSku> * System.Collections.Generic.IDictionary<string, string> * seq<string> * Nullable<int> * Nullable<int> * Nullable<bool> * Nullable<int> * Nullable<int> * string * string * string -> Azure.ResourceManager.HybridContainerService.Models.HybridContainerServiceNamedAgentPoolProfile
Public Shared Function HybridContainerServiceNamedAgentPoolProfile (Optional osType As Nullable(Of HybridContainerServiceOSType) = Nothing, Optional osSku As Nullable(Of HybridContainerServiceOSSku) = Nothing, Optional nodeLabels As IDictionary(Of String, String) = Nothing, Optional nodeTaints As IEnumerable(Of String) = Nothing, Optional maxCount As Nullable(Of Integer) = Nothing, Optional minCount As Nullable(Of Integer) = Nothing, Optional enableAutoScaling As Nullable(Of Boolean) = Nothing, Optional maxPods As Nullable(Of Integer) = Nothing, Optional count As Nullable(Of Integer) = Nothing, Optional vmSize As String = Nothing, Optional kubernetesVersion As String = Nothing, Optional name As String = Nothing) As HybridContainerServiceNamedAgentPoolProfile

Parameters

osType
Nullable<HybridContainerServiceOSType>

The particular KubernetesVersion Image OS Type (Linux, Windows).

osSku
Nullable<HybridContainerServiceOSSku>

Specifies the OS SKU used by the agent pool. The default is CBLMariner if OSType is Linux. The default is Windows2019 when OSType is Windows.

nodeLabels
IDictionary<String,String>

The node labels to be persisted across all nodes in agent pool.

nodeTaints
IEnumerable<String>

Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.

maxCount
Nullable<Int32>

The maximum number of nodes for auto-scaling.

minCount
Nullable<Int32>

The minimum number of nodes for auto-scaling.

enableAutoScaling
Nullable<Boolean>

Whether to enable auto-scaler. Default value is false.

maxPods
Nullable<Int32>

The maximum number of pods that can run on a node.

count
Nullable<Int32>

Number of nodes in the agent pool. The default value is 1.

vmSize
String

The VM sku size of the agent pool node VMs.

kubernetesVersion
String

Version of Kubernetes in use by the agent pool. This is inherited from the kubernetesVersion of the provisioned cluster.

name
String

Unique name of the default agent pool in the context of the provisioned cluster. Default value is <clusterName>-nodepool1.

Returns

A new HybridContainerServiceNamedAgentPoolProfile instance for mocking.

Applies to