你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
NamedAgentPoolProfile interface
默认代理池的配置文件以及名称参数
- Extends
继承属性
count | 代理池中的节点数。 默认值为 1。 |
enable |
是否启用自动缩放器。 默认值为“false” |
kubernetes |
代理池使用的 Kubernetes 版本。 这是从预配群集的 kubernetesVersion 继承的。 注意:此属性不会序列化。 它只能由服务器填充。 |
max |
自动缩放的最大节点数 |
max |
可在节点上运行的最大 Pod 数。 |
min |
用于自动缩放的最小节点数 |
name | 预配群集上下文中默认代理池的唯一名称。 默认值为 -nodepool1 |
node |
要跨代理池中所有节点持久保存的节点标签。 |
node |
在节点池创建和缩放期间添加到新节点的污点。 例如,key=value:NoSchedule。 |
osSKU | 指定代理池使用的 OS SKU。 如果 OSType 为 Linux,则默认值为 CBLMariner。 当 OSType 为 Windows 时,默认值为 Windows2019。 |
os |
特定的 KubernetesVersion 映像 OS 类型 (Linux、Windows) |
vm |
代理池节点 VM 的 VM SKU 大小。 |
继承属性详细信息
count
enableAutoScaling
是否启用自动缩放器。 默认值为“false”
enableAutoScaling?: boolean
属性值
boolean
kubernetesVersion
代理池使用的 Kubernetes 版本。 这是从预配群集的 kubernetesVersion 继承的。 注意:此属性不会序列化。 它只能由服务器填充。
kubernetesVersion?: string
属性值
string
maxCount
maxPods
minCount
name
nodeLabels
要跨代理池中所有节点持久保存的节点标签。
nodeLabels?: {[propertyName: string]: string}
属性值
{[propertyName: string]: string}
nodeTaints
在节点池创建和缩放期间添加到新节点的污点。 例如,key=value:NoSchedule。
nodeTaints?: string[]
属性值
string[]
osSKU
指定代理池使用的 OS SKU。 如果 OSType 为 Linux,则默认值为 CBLMariner。 当 OSType 为 Windows 时,默认值为 Windows2019。
osSKU?: string
属性值
string
osType
特定的 KubernetesVersion 映像 OS 类型 (Linux、Windows)
osType?: string
属性值
string