你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ArmHybridContainerServiceModelFactory.HybridContainerServiceAgentPoolData 方法

定义

初始化 HybridContainerServiceAgentPoolData 的新实例。

public static Azure.ResourceManager.HybridContainerService.HybridContainerServiceAgentPoolData HybridContainerServiceAgentPoolData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, Azure.ResourceManager.HybridContainerService.Models.AgentPoolExtendedLocation extendedLocation = default, int? count = default, System.Collections.Generic.IEnumerable<string> availabilityZones = default, int? maxCount = default, int? maxPods = default, int? minCount = default, Azure.ResourceManager.HybridContainerService.Models.Mode? mode = default, System.Collections.Generic.IDictionary<string,string> nodeLabels = default, System.Collections.Generic.IEnumerable<string> nodeTaints = default, Azure.ResourceManager.HybridContainerService.Models.OSType? osType = default, string nodeImageVersion = default, string vmSize = default, Azure.ResourceManager.HybridContainerService.Models.CloudProviderProfile cloudProviderProfile = default, Azure.ResourceManager.HybridContainerService.Models.AgentPoolProvisioningState? provisioningState = default, Azure.ResourceManager.HybridContainerService.Models.AgentPoolProvisioningStatusStatus status = default);
static member HybridContainerServiceAgentPoolData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Azure.ResourceManager.HybridContainerService.Models.AgentPoolExtendedLocation * Nullable<int> * seq<string> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<Azure.ResourceManager.HybridContainerService.Models.Mode> * System.Collections.Generic.IDictionary<string, string> * seq<string> * Nullable<Azure.ResourceManager.HybridContainerService.Models.OSType> * string * string * Azure.ResourceManager.HybridContainerService.Models.CloudProviderProfile * Nullable<Azure.ResourceManager.HybridContainerService.Models.AgentPoolProvisioningState> * Azure.ResourceManager.HybridContainerService.Models.AgentPoolProvisioningStatusStatus -> Azure.ResourceManager.HybridContainerService.HybridContainerServiceAgentPoolData
Public Shared Function HybridContainerServiceAgentPoolData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional extendedLocation As AgentPoolExtendedLocation = Nothing, Optional count As Nullable(Of Integer) = Nothing, Optional availabilityZones As IEnumerable(Of String) = Nothing, Optional maxCount As Nullable(Of Integer) = Nothing, Optional maxPods As Nullable(Of Integer) = Nothing, Optional minCount As Nullable(Of Integer) = Nothing, Optional mode As Nullable(Of Mode) = Nothing, Optional nodeLabels As IDictionary(Of String, String) = Nothing, Optional nodeTaints As IEnumerable(Of String) = Nothing, Optional osType As Nullable(Of OSType) = Nothing, Optional nodeImageVersion As String = Nothing, Optional vmSize As String = Nothing, Optional cloudProviderProfile As CloudProviderProfile = Nothing, Optional provisioningState As Nullable(Of AgentPoolProvisioningState) = Nothing, Optional status As AgentPoolProvisioningStatusStatus = Nothing) As HybridContainerServiceAgentPoolData

参数

name
String

名称。

resourceType
ResourceType

resourceType。

systemData
SystemData

systemData。

tags
IDictionary<String,String>

标记。

location
AzureLocation

位置。

extendedLocation
AgentPoolExtendedLocation
count
Nullable<Int32>

计数 - 用于托管 docker 容器的代理数。 允许的值必须介于 1 到 100 之间, (非独占) 。 默认值为 1。

availabilityZones
IEnumerable<String>

AvailabilityZones - 用于节点的可用性区域列表。 建模为区域的数据中心机架。

maxCount
Nullable<Int32>

自动缩放的最大节点数。

maxPods
Nullable<Int32>

可在节点上运行的 Pod 的最大数目。

minCount
Nullable<Int32>

用于自动缩放的最小节点数。

mode
Nullable<Mode>

Mode - AgentPoolMode 表示代理池的模式。 可能的值包括:“System”、“LB”、“User”。 默认值为“User”。

nodeLabels
IDictionary<String,String>

NodeLabels - 代理池节点标签,将跨代理池中的所有节点持久保存。

nodeTaints
IEnumerable<String>

NodeTaints - 在节点池创建和缩放期间添加到新节点的污点。 例如,key=value:NoSchedule。

osType
Nullable<OSType>

OsType - 用于指定 os 类型的 OsType。 从 Linux 和 Windows 中进行选择。 默认为 Linux。 可能的值包括:“Linux”、“Windows”。

nodeImageVersion
String

节点映像的版本。

vmSize
String

VmSize - 代理池 VM 的大小。

cloudProviderProfile
CloudProviderProfile

基础云基础结构提供程序属性。

status
AgentPoolProvisioningStatusStatus

HybridAKSNodePoolStatus 定义观察到的 HybridAKSNodePool 状态。

返回

用于模拟的新 HybridContainerServiceAgentPoolData 实例。

适用于