你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
- Latest
- 2026-08-02-预览
- 2026-08-01
- 2026-07-02-预览
- 2026-07-01
- 2026-06-02-预览
- 2026-06-01
- 2026-05-02-预览
- 2026-05-01
- 2026-04-02-预览
- 2026-04-01
- 2026-03-02-预览
- 2026-03-01
- 2026-02-02-预览
- 2026-02-01
- 2026-01-02-预览
- 2026-01-01
- 2025-10-02-预览
- 2025-10-01
- 2025-09-02-预览
- 2025-09-01
- 2025-08-02-预览
- 2025-08-01
- 2025-07-02-预览
- 2025-07-01
- 2025-06-02-预览
- 2025-05-02-preview
- 2025-05-01
- 2025-04-02-preview
- 2025-04-01
- 2025-03-02-preview
- 2025-03-01
- 2025-02-02-preview
- 2025-02-01
- 2025-01-02-preview
- 2025-01-01
- 2024-10-02-preview
- 2024-10-01
- 2024-09-02-preview
- 2024-09-01
- 2024-08-01
- 2024-07-02-preview
- 2024-07-01
- 2024-06-02-preview
- 2024-05-02-preview
- 2024-05-01
- 2024-04-02-preview
- 2024-03-02-preview
- 2024-02-02-preview
- 2024-02-01
- 2024-01-02-preview
- 2024-01-01
- 2023-11-02-preview
- 2023-11-01
- 2023-10-02-preview
- 2023-10-01
- 2023-09-02-preview
- 2023-09-01
- 2023-08-02-preview
- 2023-08-01
- 2023-07-02-preview
- 2023-07-01
- 2023-06-02-preview
- 2023-06-01
- 2023-05-02-preview
- 2023-05-01
- 2023-04-02-preview
- 2023-04-01
- 2023-03-02-preview
- 2023-03-01
- 2023-02-02-preview
- 2023-02-01
- 2023-01-02-preview
- 2023-01-01
- 2022-11-02-preview
- 2022-11-01
- 2022-10-02-preview
- 2022-09-02-preview
- 2022-09-01
- 2022-08-03-preview
- 2022-08-02-preview
- 2022-07-02-preview
- 2022-07-01
- 2022-06-02-preview
- 2022-06-01
- 2022-05-02-preview
- 2022-04-02-preview
- 2022-04-01
- 2022-03-02-preview
- 2022-03-01
- 2022-02-02-preview
- 2022-02-01
- 2022-01-02-preview
- 2022-01-01
- 2021-11-01-preview
- 2021-10-01
- 2021-09-01
- 2021-08-01
- 2021-07-01
- 2021-05-01
- 2021-03-01
- 2021-02-01
- 2020-12-01
- 2020-11-01
- 2020-09-01
- 2020-07-01
- 2020-06-01
- 2020-04-01
- 2020-03-01
- 2020-02-01
- 2020-01-01
- 2019-11-01
- 2019-10-01
- 2019-08-01
- 2019-06-01
- 2019-04-01
- 2019-02-01
- 2018-08-01-preview
- 2018-03-31
- 2017-08-31
Remarks
有关可用插件的信息,请参见插件、扩展及与Azure Kubernetes 服务的其他集成。
Bicep 资源定义
可以使用目标作部署 managedClusters 资源类型:
- 资源组 - 参见 资源组部署命令
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
用法示例
Bicep 示例
一个部署托管Kubernetes 集群(也称为 AKS / Azure Kubernetes 服务)的基本示例。
param resourceName string = 'acctest0001'
param location string = 'westeurope'
resource managedCluster 'Microsoft.ContainerService/managedClusters@2023-04-02-preview' = {
name: resourceName
location: location
properties: {
agentPoolProfiles: [
{
count: 1
mode: 'System'
name: 'default'
vmSize: 'Standard_DS2_v2'
}
]
dnsPrefix: resourceName
}
}
Azure verified modules
以下 Azure 验证模块可用于部署该资源类型。
| Module | Description |
|---|---|
| Azure Kubernetes Service (AKS) Managed Cluster | AVM Resource Module for Azure Kubernetes Service (AKS) Managed Cluster |
Azure 快速入门示例
以下Azure快速启动模板包含用于部署该资源类型的Bicep示例。
| Bicep 文件 | Description |
|---|---|
| AKS集群,带有NAT网关和Application Gateway | 本示例展示了如何部署带有NAT网关用于出站连接和使用Application Gateway进行入站连接的AKS集群。 |
| AKS集群,配备Application Gateway入口控制器 | 本示例展示了如何部署包含 Application Gateway、Application Gateway Ingress Controller、Azure 容器注册表、Log Analytics 和 密钥保管库 的 AKS 集群 |
| Azure 集装箱服务(AKS) | Deploying a managed cluster with Azure Container Service (AKS) using Azure Linux container hosts |
| Azure 集装箱服务(AKS) | Deploy a managed cluster with Azure Container Service (AKS) |
| Deploy a managed cluster with Azure Container Service (AKS) with Helm | |
| Azure Kubernetes Service (AKS) | Deploying a managed cluster with Azure Kubernetes Service (AKS) using Azure Linux with OS Guard |
| Azure Kubernetes Service (AKS) | Deploys a managed Kubernetes cluster through Azure Kubernetes Service (AKS) |
| Azure Kubernetes Service (AKS) with Azure Container Linux | Deploying a managed cluster with Azure Kubernetes Service (AKS) using Azure Container Linux |
| Azure 机器学习端到端安全设置 | 这套 Bicep 模板演示了如何在安全环境中端到端地设置 Azure 机器学习。 此参考实现包括工作区、计算群集、计算实例和附加的专用 AKS 群集。 |
| Azure 机器学习端到端安全设置(遗留) | 这套 Bicep 模板演示了如何在安全环境中端到端地设置 Azure 机器学习。 此参考实现包括工作区、计算群集、计算实例和附加的专用 AKS 群集。 |
| Create a private AKS Cluster | 本示例展示了如何在virtual network中创建一个私有AKS集群,同时使用跳板虚拟机。 |
| 这将创建一个 Azure grafana、AKS,并在 Azure Kubernetes Service(AKS)集群上安装 Prometheus,这是一个开源的监控和警报工具包。 然后你用 Azure 托管 Grafana 的私有终端连接到这个 Prometheus 服务器,并在 Grafana 仪表盘中显示 Prometheus 数据 |
资源格式
若要创建 Microsoft.ContainerService/managedClusters 资源,请将以下 Bicep 添加到模板。
resource symbolicname 'Microsoft.ContainerService/managedClusters@2026-08-02-preview' = {
extendedLocation: {
name: 'string'
type: 'string'
}
identity: {
delegatedResources: {
{customized property}: {
location: 'string'
referralResource: 'string'
resourceId: 'string'
tenantId: 'string'
}
}
type: 'string'
userAssignedIdentities: {
{customized property}: {}
}
}
kind: 'string'
location: 'string'
name: 'string'
properties: {
aadProfile: {
adminGroupObjectIDs: [
'string'
]
clientAppID: 'string'
enableAzureRBAC: bool
managed: bool
serverAppID: 'string'
serverAppSecret: 'string'
tenantID: 'string'
}
addonProfiles: {
{customized property}: {
config: {
{customized property}: 'string'
}
enabled: bool
}
}
agentPoolProfiles: [
{
artifactStreamingProfile: {
enabled: bool
}
availabilityZones: [
'string'
]
capacityReservationGroupID: 'string'
count: int
creationData: {
sourceResourceId: 'string'
}
enableAutoScaling: bool
enableEncryptionAtHost: bool
enableFIPS: bool
enableNodePublicIP: bool
enableOSDiskFullCaching: bool
enableUltraSSD: bool
gatewayProfile: {
publicIPPrefixSize: int
}
gpuInstanceProfile: 'string'
gpuProfile: {
driver: 'string'
driverType: 'string'
nvidia: {
driverMode: 'string'
managementMode: 'string'
migProfiles: [
'string'
]
migStrategy: 'string'
}
}
hostGroupID: 'string'
kubeletConfig: {
allowedUnsafeSysctls: [
'string'
]
containerLogMaxFiles: int
containerLogMaxSizeMB: int
cpuCfsQuota: bool
cpuCfsQuotaPeriod: 'string'
cpuManagerPolicy: 'string'
evictionMaxPodGracePeriodInSeconds: int
failSwapOn: bool
hardEvictionThreshold: {
memoryAvailable: 'string'
nodeFsAvailable: 'string'
nodeFsInodesFree: 'string'
}
imageGcHighThreshold: int
imageGcLowThreshold: int
kubeReserved: {
cpuMillicores: int
memoryMB: int
}
podMaxPids: int
seccompDefault: 'string'
softEvictionGracePeriod: {
memoryAvailable: 'string'
nodeFsAvailable: 'string'
nodeFsInodesFree: 'string'
}
softEvictionThreshold: {
memoryAvailable: 'string'
nodeFsAvailable: 'string'
nodeFsInodesFree: 'string'
}
topologyManagerPolicy: 'string'
}
kubeletDiskType: 'string'
linuxOSConfig: {
swapFileSizeMB: int
sysctls: {
fsAioMaxNr: int
fsFileMax: int
fsInotifyMaxUserWatches: int
fsNrOpen: int
kernelThreadsMax: int
netCoreNetdevMaxBacklog: int
netCoreOptmemMax: int
netCoreRmemDefault: int
netCoreRmemMax: int
netCoreSomaxconn: int
netCoreWmemDefault: int
netCoreWmemMax: int
netIpv4IpLocalPortRange: 'string'
netIpv4NeighDefaultGcThresh1: int
netIpv4NeighDefaultGcThresh2: int
netIpv4NeighDefaultGcThresh3: int
netIpv4TcpFinTimeout: int
netIpv4TcpkeepaliveIntvl: int
netIpv4TcpKeepaliveProbes: int
netIpv4TcpKeepaliveTime: int
netIpv4TcpMaxSynBacklog: int
netIpv4TcpMaxTwBuckets: int
netIpv4TcpTwReuse: bool
netNetfilterNfConntrackBuckets: int
netNetfilterNfConntrackMax: int
vmMaxMapCount: int
vmSwappiness: int
vmVfsCachePressure: int
}
transparentHugePageDefrag: 'string'
transparentHugePageEnabled: 'string'
}
localDNSProfile: {
kubeDNSOverrides: {
{customized property}: {
cacheDurationInSeconds: int
forwardDestination: 'string'
forwardPolicy: 'string'
maxConcurrent: int
protocol: 'string'
queryLogging: 'string'
serveStale: 'string'
serveStaleDurationInSeconds: int
}
}
mode: 'string'
vnetDNSOverrides: {
{customized property}: {
cacheDurationInSeconds: int
forwardDestination: 'string'
forwardPolicy: 'string'
maxConcurrent: int
protocol: 'string'
queryLogging: 'string'
serveStale: 'string'
serveStaleDurationInSeconds: int
}
}
}
maxCount: int
maxPods: int
messageOfTheDay: 'string'
minCount: int
mode: 'string'
name: 'string'
networkProfile: {
allowedHostPorts: [
{
portEnd: int
portStart: int
protocol: 'string'
}
]
applicationSecurityGroups: [
'string'
]
dranet: {
mode: 'string'
}
nodePublicIPPrefixIDs: [
'string'
]
nodePublicIPTags: [
{
ipTagType: 'string'
tag: 'string'
}
]
secondaryNetworkInterfaces: [
{
enableAcceleratedNetworking: bool
publicIPAddressConfiguration: {
ipTags: [
{
ipTagType: 'string'
tag: 'string'
}
]
publicIPAddressVersion: 'string'
publicIPPrefixID: 'string'
}
type: 'string'
vnetSubnetId: 'string'
}
]
}
nodeImageVersion: 'string'
nodeInitializationTaints: [
'string'
]
nodeLabels: {
{customized property}: 'string'
}
nodePublicIPPrefixID: 'string'
nodeTaints: [
'string'
]
orchestratorVersion: 'string'
osDiskSizeGB: int
osDiskType: 'string'
osSKU: 'string'
osType: 'string'
podIPAllocationMode: 'string'
podSubnetID: 'string'
powerState: {
code: 'string'
}
preparedImageSpecificationProfile: {
preparedImageSpecificationId: 'string'
}
proximityPlacementGroupID: 'string'
scaleDownMode: 'string'
scaleSetEvictionPolicy: 'string'
scaleSetPriority: 'string'
securityProfile: {
enableSecureBoot: bool
enableVTPM: bool
sshAccess: 'string'
}
spotMaxPrice: int
status: {}
tags: {
{customized property}: 'string'
}
type: 'string'
upgradeSettings: {
drainTimeoutInMinutes: int
maxBlockedNodes: 'string'
maxSurge: 'string'
maxUnavailable: 'string'
nodeSoakDurationInMinutes: int
undrainableNodeBehavior: 'string'
upgradeGateSettings: {
enabled: bool
}
}
upgradeSettingsBlueGreen: {
batchSoakDurationInMinutes: int
drainBatchSize: 'string'
drainTimeoutInMinutes: int
finalSoakDurationInMinutes: int
}
upgradeStrategy: 'string'
virtualMachineNodesStatus: [
{
count: int
size: 'string'
}
]
virtualMachinesProfile: {
scale: {
autoscale: [
{
maxCount: int
minCount: int
size: 'string'
}
]
manual: [
{
count: int
size: 'string'
}
]
}
}
vmSize: 'string'
vnetSubnetID: 'string'
windowsProfile: {
disableOutboundNat: bool
}
workloadRuntime: 'string'
}
]
agentSandboxProfile: {
enabled: bool
}
aiToolchainOperatorProfile: {
enabled: bool
}
apiServerAccessProfile: {
authorizedIPRanges: [
'string'
]
disableRunCommand: bool
enablePrivateCluster: bool
enablePrivateClusterPublicFQDN: bool
enableVnetIntegration: bool
privateDNSZone: 'string'
subnetId: 'string'
}
autoScalerProfile: {
balance-similar-node-groups: 'string'
daemonset-eviction-for-empty-nodes: bool
daemonset-eviction-for-occupied-nodes: bool
expander: 'string'
ignore-daemonsets-utilization: bool
max-empty-bulk-delete: 'string'
max-graceful-termination-sec: 'string'
max-node-provision-time: 'string'
max-total-unready-percentage: 'string'
new-pod-scale-up-delay: 'string'
ok-total-unready-count: 'string'
scale-down-delay-after-add: 'string'
scale-down-delay-after-delete: 'string'
scale-down-delay-after-failure: 'string'
scale-down-unneeded-time: 'string'
scale-down-unready-time: 'string'
scale-down-utilization-threshold: 'string'
scan-interval: 'string'
skip-nodes-with-local-storage: 'string'
skip-nodes-with-system-pods: 'string'
}
autoUpgradeProfile: {
nodeOSUpgradeChannel: 'string'
upgradeChannel: 'string'
}
azureMonitorProfile: {
appMonitoring: {
autoInstrumentation: {
enabled: bool
}
openTelemetryLogsAndTraces: {
enabled: bool
grpcPort: int
httpPort: int
}
openTelemetryMetrics: {
enabled: bool
grpcPort: int
httpPort: int
}
}
containerInsights: {
containerNetworkLogs: 'string'
disablePrometheusMetricsScraping: bool
enabled: bool
logAnalyticsWorkspaceResourceId: 'string'
syslogPort: int
}
metrics: {
controlPlane: {
enabled: bool
}
enabled: bool
kubeStateMetrics: {
metricAnnotationsAllowList: 'string'
metricLabelsAllowlist: 'string'
}
}
}
bootstrapProfile: {
artifactSource: 'string'
containerRegistryId: 'string'
}
controlPlaneScalingProfile: {
scalingSize: 'string'
}
creationData: {
sourceResourceId: 'string'
}
disableLocalAccounts: bool
diskEncryptionSetID: 'string'
dnsPrefix: 'string'
enableFIPS: bool
enableNamespaceResources: bool
enableNodeHardening: bool
enableRBAC: bool
fqdnSubdomain: 'string'
healthMonitorProfile: {
enableContinuousControlPlaneAndAddonMonitor: bool
enableOnDemandMonitor: bool
}
hostedSystemProfile: {
enabled: bool
nodeSubnetID: 'string'
systemNodeSubnetID: 'string'
}
httpProxyConfig: {
enabled: bool
httpProxy: 'string'
httpsProxy: 'string'
noProxy: [
'string'
]
trustedCa: 'string'
}
identityProfile: {
{customized property}: {
clientId: 'string'
objectId: 'string'
resourceId: 'string'
}
}
ingressProfile: {
applicationLoadBalancer: {
enabled: bool
}
gatewayAPI: {
installation: 'string'
}
webAppRouting: {
defaultDomain: {
enabled: bool
}
dnsZoneResourceIds: [
'string'
]
enabled: bool
gatewayAPIImplementations: {
appRoutingIstio: {
mode: 'string'
}
}
nginx: {
defaultIngressControllerType: 'string'
}
}
}
kubernetesVersion: 'string'
linuxProfile: {
adminUsername: 'string'
ssh: {
publicKeys: [
{
keyData: 'string'
}
]
}
}
metricsProfile: {
costAnalysis: {
enabled: bool
}
}
networkProfile: {
advancedNetworking: {
enabled: bool
observability: {
enabled: bool
}
performance: {
accelerationMode: 'string'
}
security: {
advancedNetworkPolicies: 'string'
enabled: bool
transitEncryption: {
type: 'string'
}
}
}
clusterAPIConnectivityProfile: {
bastion: {
enabled: bool
publicIpAddressId: 'string'
scaleUnits: int
sku: 'string'
}
cloudShell: {
mode: 'string'
network: {
relayNamespaceId: 'string'
subnetId: 'string'
}
storage: {
fileShareName: 'string'
mode: 'string'
storageAccountId: 'string'
}
}
}
dnsServiceIP: 'string'
ipFamilies: [
'string'
]
kubeProxyConfig: {
enabled: bool
ipvsConfig: {
scheduler: 'string'
tcpFinTimeoutSeconds: int
tcpTimeoutSeconds: int
udpTimeoutSeconds: int
}
mode: 'string'
}
loadBalancerProfile: {
allocatedOutboundPorts: int
backendPoolType: 'string'
clusterServiceLoadBalancerHealthProbeMode: 'string'
enableMultipleStandardLoadBalancers: bool
idleTimeoutInMinutes: int
managedOutboundIPs: {
count: int
countIPv6: int
}
outboundIPPrefixes: {
publicIPPrefixes: [
{
id: 'string'
}
]
}
outboundIPs: {
publicIPs: [
{
id: 'string'
}
]
}
}
loadBalancerSku: 'string'
natGatewayId: 'string'
natGatewayProfile: {
idleTimeoutInMinutes: int
managedOutboundIPProfile: {
count: int
countIPv6: int
}
outboundIPPrefixes: {
publicIPPrefixes: [
'string'
]
}
outboundIPs: {
publicIPs: [
'string'
]
}
sku: 'string'
}
networkDataplane: 'string'
networkMode: 'string'
networkPlugin: 'string'
networkPluginMode: 'string'
networkPolicy: 'string'
outboundType: 'string'
podCidr: 'string'
podCidrs: [
'string'
]
podLinkLocalAccess: 'string'
serviceCidr: 'string'
serviceCidrs: [
'string'
]
staticEgressGatewayProfile: {
enabled: bool
}
}
nodeDisruptionProfile: {
nodeDisruptionPolicy: 'string'
}
nodeProvisioningProfile: {
defaultNodePools: 'string'
mode: 'string'
}
nodeResourceGroup: 'string'
nodeResourceGroupProfile: {
restrictionLevel: 'string'
}
oidcIssuerProfile: {
enabled: bool
}
podIdentityProfile: {
allowNetworkPluginKubenet: bool
enabled: bool
userAssignedIdentities: [
{
bindingSelector: 'string'
identity: {
clientId: 'string'
objectId: 'string'
resourceId: 'string'
}
name: 'string'
namespace: 'string'
}
]
userAssignedIdentityExceptions: [
{
name: 'string'
namespace: 'string'
podLabels: {
{customized property}: 'string'
}
}
]
}
podSnapshotProfile: {
enabled: bool
}
privateLinkResources: [
{
groupId: 'string'
id: 'string'
name: 'string'
requiredMembers: [
'string'
]
type: 'string'
}
]
publicNetworkAccess: 'string'
schedulerProfile: {
upstream: {
schedulerConfigMode: 'string'
}
}
securityProfile: {
azureKeyVaultKms: {
enabled: bool
keyId: 'string'
keyVaultNetworkAccess: 'string'
keyVaultResourceId: 'string'
}
customCATrustCertificates: [
any(...)
]
defender: {
logAnalyticsWorkspaceResourceId: 'string'
securityGating: {
allowSecretAccess: bool
enabled: bool
identities: [
{
azureContainerRegistry: 'string'
identity: {
clientId: 'string'
objectId: 'string'
resourceId: 'string'
}
}
]
}
securityMonitoring: {
enabled: bool
}
}
imageCleaner: {
enabled: bool
intervalHours: int
}
imageIntegrity: {
enabled: bool
}
kubernetesResourceObjectEncryptionProfile: {
infrastructureEncryption: 'string'
}
nodeRestriction: {
enabled: bool
}
serviceAccountImagePullProfile: {
defaultManagedIdentityId: 'string'
enabled: bool
}
workloadIdentity: {
enabled: bool
}
}
serviceMeshProfile: {
istio: {
certificateAuthority: {
plugin: {
certChainObjectName: 'string'
certObjectName: 'string'
keyObjectName: 'string'
keyVaultId: 'string'
rootCertObjectName: 'string'
}
}
components: {
egressGateways: [
{
enabled: bool
gatewayConfigurationName: 'string'
name: 'string'
namespace: 'string'
}
]
ingressGateways: [
{
enabled: bool
mode: 'string'
}
]
proxyRedirectionMechanism: 'string'
}
revisions: [
'string'
]
}
mode: 'string'
}
servicePrincipalProfile: {
clientId: 'string'
secret: 'string'
}
status: {}
storageProfile: {
blobCSIDriver: {
enabled: bool
}
diskCSIDriver: {
enabled: bool
quickAttachDetach: {
enabled: bool
}
}
fileCSIDriver: {
enabled: bool
}
snapshotController: {
enabled: bool
}
}
supportPlan: 'string'
upgradeSettings: {
overrideSettings: {
forceUpgrade: bool
until: 'string'
}
upgradeGateSettings: {
enabled: bool
}
}
windowsProfile: {
adminPassword: 'string'
adminUsername: 'string'
enableCSIProxy: bool
gmsaProfile: {
dnsServer: 'string'
enabled: bool
rootDomainName: 'string'
}
licenseType: 'string'
}
workloadAutoScalerProfile: {
keda: {
enabled: bool
}
verticalPodAutoscaler: {
addonAutoscaling: 'string'
enabled: bool
}
}
}
sku: {
name: 'string'
tier: 'string'
}
tags: {
{customized property}: 'string'
}
}
属性值
Microsoft.ContainerService/managedClusters
| Name | Description | Value |
|---|---|---|
| extendedLocation | 虚拟机的扩展位置。 | ExtendedLocation |
| 标识 | 托管群集的标识(如果已配置)。 | ManagedClusterIdentity |
| kind | 这主要用于在门户中为不同类型的公开不同的 UI 体验 | 字符串 |
| 位置 | 资源所在的地理位置 | string (必需) |
| name | 资源名称 | string Constraints: 最小长度 = 1 最大长度 = 63 模式 = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$ (必需) |
| properties | 托管群集的属性。 | ManagedClusterProperties |
| sku | 托管群集 SKU。 | ManagedClusterSKU |
| tags | 资源标记 | 标记名称和值的字典。 请参见模板中的标签 |
AdvancedNetworking
| Name | Description | Value |
|---|---|---|
| enabled | 指示在 AKS 群集上启用可观测性和安全性的高级网络功能。 如果设置为 true,除非显式禁用,否则所有可观测性和安全功能都将设置为启用。 如果未指定,则默认值为 false。 | bool |
| 可观测性 | 可观测性配置文件,用于启用具有历史上下文的高级网络指标和流日志。 | AdvancedNetworkingObservability |
| 性能 | 配置文件以启用使用 Cilium 驱动的 Azure CNI 集群的性能增强功能。 | 高级网络性能 |
| 安全 | 用于在基于 cilium 的群集上启用安全功能的安全配置文件。 | AdvancedNetworkingSecurity |
AdvancedNetworkingObservability
| Name | Description | Value |
|---|---|---|
| enabled | 指示在群集上启用高级网络可观测性功能。 | bool |
高级网络性能
| Name | Description | Value |
|---|---|---|
| 加速模式 | 启用高级网络加速选项。 这允许用户使用 BPF 主机路由配置加速。 这只能通过 Cilium 数据平面启用。 如果未指定,则默认值为 None(无加速)。 可以在预先存在的集群上更改加速模式。 详见 https://aka.ms/acnsperformance 说明 | “BpfVeth” 'None' |
AdvancedNetworkingSecurity
| Name | Description | Value |
|---|---|---|
| advancedNetworkPolicies | 启用高级网络策略。 这允许用户配置第 7 层网络策略(FQDN、HTTP、Kafka)。 必须通过 Cilium 网络策略资源配置策略本身,请参阅 https://docs.cilium.io/en/latest/security/policy/index.html。 这只能在基于 cilium 的群集上启用。 如果未指定,则默认值为 FQDN(如果 security.enabled 设置为 true)。 | 'FQDN' 'L7' 'None' |
| enabled | 此功能允许用户基于 DNS(FQDN)名称配置网络策略。 只能在基于 cilium 的群集上启用它。 如果未指定,则默认值为 false。 | bool |
| transitEncryption | 基于 Cilium 的集群的加密配置。 启用后,Cilium 托管的 Pod 之间的所有流量在离开节点边界时都将被加密。 | AdvancedNetworkingSecurityTransitEncryption |
AdvancedNetworkingSecurityTransitEncryption
| Name | Description | Value |
|---|---|---|
| 类型 | 配置 Pod 到 Pod 加密。 这只能在基于 Cilium 的群集上启用。 如果未指定,则默认值为 None。 | 'mTLS' 'None' 'WireGuard' |
AgentPoolArtifactStreamingProfile
| Name | Description | Value |
|---|---|---|
| enabled | 项目流式处理通过按需映像加载加快节点上容器的冷启动速度。 若要使用此功能,容器映像还必须在 ACR 上启用项目流式处理。 如果未指定,则默认值为 false。 | bool |
AgentPoolBlueGreenUpgradeSettings
| Name | Description | Value |
|---|---|---|
| batchSoakDurationInMinutes | 清空一批节点后的浸泡持续时间,即在清空一批节点后等待的时间(以分钟为单位)再继续下一批。 如果未指定,则默认值为 15 分钟。 | int Constraints: 最小值 = 0 最大值 = 1440 |
| 排水批量大小 | 蓝绿升级期间要批量清空的节点数或百分比。 必须是非零数字。 这可以设置为整数(例如'5')或百分比(例如'50%')。 如果指定了百分比,则该百分比占初始升级作的蓝色节点总数的百分比。 对于百分比,小数节点向上舍入。 如果未指定,则默认值为 10%。 更多信息,包括最佳实践,请参见:/azure/aks/upgrade-cluster | 字符串 |
| drainTimeoutInMinutes | 节点的 drain 超时,即等待 Pod 逐出和每个节点正常终止的时间(以分钟为单位)。 此逐出等待时间遵循等待 Pod 中断预算。 如果超过此时间,升级将失败。 如果未指定,则默认值为 30 分钟。 | int Constraints: 最小值 = 1 最大值 = 1440 |
| finalSoak持续时间在分钟 | 节点池的浸泡持续时间,即在所有旧节点被清空后,在删除旧节点之前等待的时间(以分钟为单位)。 如果未指定,则默认值为 60 分钟。 仅适用于蓝绿升级策略。 | int Constraints: 最小值 = 0 最大值 = 10080 |
AgentPoolGatewayProfile
| Name | Description | Value |
|---|---|---|
| publicIPPrefixSize | 网关代理池为每个静态出口网关关联一个公共 IPPrefix,以提供公共出口。 用户应选择公共 IPPrefix 的大小。 代理池中的每个节点都分配有 IPPrefix 中的一个 IP。 因此,IPPrefix 大小充当网关代理池大小的上限。 由于 Azure 公共 IPPrefix 大小限制,有效值范围为 [28, 31](/31 = 2 个节点/IP,/30 = 4 个节点/IP,/29 = 8 个节点/IP,/28 = 16 个节点/IP)。 默认值为 31。 | int Constraints: 最小值 = 28 最大值 = 31 |
AgentPoolNetworkInterface
| Name | Description | Value |
|---|---|---|
| enableAcceleratedNetworking | 该次级网卡是否启用了加速网络。 如果省略,只有当代理池虚拟机 SKU 支持加速网络时,这个默认才会变为真。 如果验证在不支持的SKU或NIC配置上被启用,验证将失败。 | bool |
| publicIPAddress配置 | 这个次级网卡的公共IP配置。 仅当 type 为 Standard. 设置为 publicIPAddressVersion 为每个虚拟机配置一个实例级的公共 IP,然后可选地用 ipTags 或 publicIPPrefixID来塑造。 如果省略,则不会设置公共IP。 空闲超时不可配置。 有关详细信息,请参阅 https://aka.ms/aks/multi-nic |
AgentPoolNICPublicIPAddressConfiguration |
| 类型 | 虚拟机上要配置的网卡类型。 | “Dynamic” 'Standard' |
| vnetSubnetId | 将连接到次级网络接口的子网资源ID。 当 type 是 Standard必需的;必须是空字符串()""或当 type 时 Dynamic省略。 |
字符串 |
AgentPoolNetworkProfile
| Name | Description | Value |
|---|---|---|
| allowedHostPorts | 允许access的端口范围。 允许指定的范围重叠。 | PortRange[] |
| applicationSecurityGroups | 创建代理池时将关联的应用程序安全组的 ID。 | string[] |
| 德拉内特 | 代理池的DRANET设置。 | 德拉内特档案 |
| nodePublicIPPrefixIDs | 节点公共IP前缀的资源ID。 最多只能指定一个IPv4和一个IPv6前缀。 顺序无关紧要;RP通过引用资源的publicIPAddressVersion确定IP版本。 要求 enableNodePublicIP 在代理池上为真。 与顶层nodePublicIPPrefixID属性互斥。 节点池创建后不可变。 要更改前缀,请删除并重新创建节点池。 有关详细信息,请参阅 https://aka.ms/aks/ipv6-ilpip | string[] |
| nodePublicIPTags | 实例级公共 IP 的 IPTag。 | IPTag[] |
| 次级网络接口 | 代理池中每个虚拟机的二级网络接口配置。 每个条目都是一个模板:每个条目在每个虚拟机实例上配置一个物理网卡。 这些接口是在代理池创建时创建的,且是不可变的。 列表长度必须小于NIC容量减去代理池虚拟机大小的1(AKS管理主网卡)。 例如,Standard_D8a_v4虚拟机最多支持4个网卡,因此允许的最大次级接口数为3个。 对于混合 SKU 虚拟机池,有效容量为所有 SKU 的最小值:count(次级网络接口)+ 1 <= 最小(maxNIC)。 有关详细信息,请参阅 https://aka.ms/aks/multi-nic | 代理池网络接口[] |
AgentPoolNICPublicIPAddressConfiguration
| Name | Description | Value |
|---|---|---|
| ip标签 | IP标签,用于附加到该网卡分配的公共IP。 每个标签 ipTagType 必须是 FirstPartyUsage、 NetworkDomain或 RoutingPreference。 与 publicIPPrefixID 互斥。 |
IPTag[] |
| publicIPAddress版本 | 为该网卡配置的公共IP版本。 必需:其存在是实现公共IP配置的关键,因此空配置不分配任何内容。
IPv4 是唯一被接受的数值。 |
“IPv4”(必填) |
| publicIPPrefixID | 公共IP前缀的资源ID,用于提取该网卡的公共IP。 与 ipTags 互斥。 |
字符串 |
AgentPoolSecurityProfile
| Name | Description | Value |
|---|---|---|
| enableSecureBoot | 安全启动是受信任的启动的一项功能,可确保只有已签名的作系统和驱动程序才能启动。 有关详细信息,请参阅 aka.ms/aks/trustedlaunch。 如果未指定,则默认值为 false。 | bool |
| enableVTPM | vTPM 是一项受信任的启动功能,用于为节点上本地保留的密钥和度量配置专用安全保管库。 有关详细信息,请参阅 aka.ms/aks/trustedlaunch。 如果未指定,则默认值为 false。 | bool |
| sshAccess | 代理池的SSH access方法。 | 'Disabled' “EntraId” 'LocalUser' |
AgentPoolStatus
| Name | Description | Value |
|---|
AgentPoolUpgradeSettings
| Name | Description | Value |
|---|---|---|
| drainTimeoutInMinutes | 节点的耗尽超时。 在逐出 Pod 时等待的时间量(以分钟为单位),以及每个节点的正常终止时间。 此逐出等待时间遵循等待 Pod 中断预算。 如果超过此时间,升级将失败。 如果未指定,则默认值为 30 分钟。 | int Constraints: 最小值 = 1 最大值 = 1440 |
| maxBlockedNodes | 升级期间允许在升级期间在代理池中阻止的额外节点的最大数量或百分比为 Cordon。 这可以设置为整数(例如'5')或百分比(例如'50%')。 如果指定了百分比,则它是升级时代理池大小总数的百分比。 对于百分比,小数节点向上舍入。 如果未指定,则默认值为 maxSurge。 这必须始终大于或等于 maxSurge。 更多信息,包括最佳实践,请参见:/azure/aks/upgrade-cluster | 字符串 |
| maxSurge | 升级期间激增的最大节点数或百分比。 这可以设置为整数(例如'5')或百分比(例如'50%')。 如果指定了百分比,则它是升级时代理池大小总数的百分比。 对于百分比,小数节点向上舍入。 如果未指定,则默认值为 10%。 更多信息,包括最佳实践,请参见:/azure/aks/upgrade-cluster | 字符串 |
| maxUnavailable | 升级期间可同时不可用的最大节点数或百分比。 这可以设置为整数(例如'1')或百分比(例如'5%')。 如果指定了百分比,则它是升级时代理池大小总数的百分比。 对于百分比,小数节点向上舍入。 如果未指定,则默认值为 0。 更多信息,包括最佳实践,请参见:/azure/aks/upgrade-cluster | 字符串 |
| nodeSoakDurationInMinutes | 节点的 soak 持续时间。 清空节点后以及重新映像节点并转到下一个节点之前等待的时间(以分钟为单位)。 如果未指定,则默认值为 0 分钟。 | int Constraints: 最小值 = 0 最大值 = 30 |
| undrainableNodeBehavior | 定义升级期间不可透支节点的行为。 不透支节点的最常见原因是 Pod 中断预算(PDB),但其他问题(例如 Pod 终止宽限期超出剩余的每节点排空超时或 Pod 仍在运行状态)也可能导致无法执行的节点。 | 'Cordon' 'Schedule' |
| 升级门设置 | 关于该代理池升级门槛的设置。 健康信号是由 HealthSignal 集群中运行的监控组件发布的自定义资源。 当集群层 enabled 级未设置或 false时,该代理池可以独立选择加入。 当集群层enabled为 时,门控被继承,且将该代理池enabled设置为 被false拒绝;新创建的代理池中省略的值默认为 truetrue。 |
升级门设置 |
AgentPoolWindowsProfile
| Name | Description | Value |
|---|---|---|
| disableOutboundNat | 是否在 Windows 节点中禁用 OutboundNAT。 默认值为 false。 仅当群集 outboundType 为 NAT 网关且 Windows 代理池未启用节点公共 IP 时,才能禁用出站 NAT。 | bool |
AutoScaleProfile
| Name | Description | Value |
|---|---|---|
| maxCount | 指定大小的最大节点数。 | int |
| minCount | 指定大小的最小节点数。 | int |
| size | AKS 在创建和缩放时将使用的 VM 大小,例如“Standard_E4s_v3”、“Standard_E16s_v3”或“Standard_D16s_v5”。 | 字符串 |
AzureKeyVaultKms
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 Azure 密钥保管库 密钥管理服务。 默认值为 false。 | bool |
| keyId | Azure 密钥保管库 密钥的标识符。 欲了解更多信息,请参见 Azure 密钥保管库 密钥标识符。 当启用 Azure 密钥保管库 密钥管理服务时,该属性是必需的;当服务被禁用时,必须省略。 从API版本2026-07-01和2026-07-02-preview开始,版本化密钥标识符使用旧版KMS体验,而无版本密钥标识符使用新的KMS体验。 更多信息请参见 KMS数据加密概念。 | 字符串 |
| keyVaultNetworkAccess | key vault的网络access。 key vault的网络access。 可能的值为 Public 和 Private。
Public表示key vault允许所有网络的公共access。
Private 表示key vault关闭公共access并启用private link。 默认值为 Public。 |
'Private' 'Public' |
| keyVaultResourceId | key vault 的资源 ID。 keyVaultNetworkAccess Private时,此字段是必需的,并且必须是有效的资源 ID。 如果 keyVaultNetworkAccess 为 Public,请将字段留空。 |
字符串 |
堡垒简介
| Name | Description | Value |
|---|---|---|
| enabled | 指示是否启用了管理堡垒。 | bool |
| 公共 IpAddressId | 与托管堡垒关联的公共IP地址的资源ID。 在创建时提供时,托管堡垒会引用这个现有的公共IP地址,而不是新建一个。 所引用的公共IP地址必须与托管集群处于同一订阅和区域。 如果创建时未提供,AKS 会自动创建一个新的公共 IP 地址。 此字段无法更新。 创建后要更改 IP 地址,请禁用并重新启用新的公共 IP 地址的托管堡垒。 |
字符串 |
| scaleUnits | 管理堡垒的比例单位。 默认值为 2。 | int Constraints: 最小值 = 2 最大值 = 50 |
| sku | 管理堡垒的SKU。 仅支持标准和高级SKU。 不允许SKU降级。 要降级SKU,请先禁用并重新启用管理堡垒并使用新的SKU。 有关详细信息,请参阅 https://aka.ms/aks/BastionSKUs。 |
'Premium' 'Standard' |
CloudShellNetworkProfile
| Name | Description | Value |
|---|---|---|
| relayNamespaceID | Azure 中继 命名空间由 Cloud Shell 使用。 对于自定义网络,必须使用现有命名空间 带有 subnetId。 Grant the cluster identity Reader and the Azure Container Instance service principal Contributor 在命名空间上。 当Cloud Shell模式为自定义时,必须使用。 |
字符串 |
| subnetId | Cloud Shell 容器使用的专用 IPv4 子网。 对于自定义网络,该子网必须是 委派给 Microsoft。ContainerInstance/containerGroups,且为 /24 或更大。 赋予簇身份 包含虚拟网络的Network Contributor,并授予Azure Container Instance服务主体 该子网或其包含虚拟网络的网络贡献者。 当Cloud Shell模式为自定义时,必须使用。 |
字符串 |
CloudShell配置文件
| Name | Description | Value |
|---|---|---|
| mode | 无论Cloud Shell连接被禁用、使用AKS管理的网络资源,还是使用用户提供 建立网络资源。 创建时省略时默认为禁用。 更新时,省略保留了现有内容 模式。 将该属性设置为禁用会移除 AKS 创建的资源和连接伪影。 对于习俗 模式中,AKS 取消注册用户提供的资源,但不删除它们。 |
'Custom' 'Disabled' 'Managed' |
| 网络 | Cloud Shell 使用的网络资源。 在配置自定义网络时,用户必须提供 subnetId 和 relayNamespaceId。 在更新现有的自定义配置时,任一资源ID都可以是 独立更改;省略字段保持其现有值。 在自定义模式下,AKS返回用户提供的 价值观。 在托管模式下,AKS 会填充有效值。 用户可以省略管理值或重新提交值 GET返回时保持不变;不同的值被拒绝。 当模式被禁用时,必须省略该属性。 参见 https://aka.ms/aks/CloudShellConnect “自定义网络需求”。 |
CloudShellNetworkProfile |
| 存储 | 用于 Cloud Shell 文件持久化的存储资源。 在配置自定义存储时,用户 必须同时提供storageAccountId和fileShareName。 在更新现有的自定义配置时,以下 属性可以独立更改;省略字段保留其现有值。 自定义模式下,AKS回归 用户提供的值。 在托管模式下,AKS 会填充有效值。 用户可以省略管理值或 重新提交由GET返回的值不变;不同的值被拒绝。 当 模式为禁用。 参见 https://aka.ms/aks/CloudShellConnect “定制存储需求”。 |
CloudShellStorageProfile |
CloudShellStorageProfile
| Name | Description | Value |
|---|---|---|
| fileShareName | 用于Cloud Shell文件的文件共享。 自定义模式时必须使用。 | string Constraints: 最小长度 = 3 最大长度 = 63 图案 = ^[a-z0-9]+(?:-[a-z0-9]+)*$ |
| mode | 无论持久存储是被禁用的、由AKS管理,还是由用户提供。 当 在最初启用 Cloud Shell 时省略了。 更新时,省略模式保留了现有模式。 |
'Custom' 'Disabled' 'Managed' |
| storageAccountId | 用于Cloud Shell文件的存储账户。 对于自定义存储,授予集群身份 存储文件数据 SMB 共享贡献者在此现有存储账户上。 自定义模式时必须使用。 |
字符串 |
ClusterAPIConnectivityProfile
| Name | Description | Value |
|---|---|---|
| 堡垒 | Azure Bastion connectivity settings. 有关详细信息,请参阅 https://aka.ms/aks/BastionConnect。 |
堡垒简介 |
| 云壳 | Cloud Shell 连接设置。 有关详细信息,请参阅 https://aka.ms/aks/CloudShellConnect。 |
CloudShell配置文件 |
ClusterUpgradeSettings
| Name | Description | Value |
|---|---|---|
| overrideSettings | 替代的设置。 | UpgradeOverrideSettings |
| 升级门设置 | 在这个托管集群中升级门禁的设置。 健康信号是由 HealthSignal 集群中运行的监控组件发布的自定义资源。
enabled这里true设置为一个集群范围的选择加入,适用于该集群中所有代理池升级;代理池不能选择退出。 |
升级门设置 |
ContainerServiceLinuxProfile
| Name | Description | Value |
|---|---|---|
| adminUsername | 用于 Linux VM 的管理员用户名。 | string Constraints: 模式 = ^[A-Za-z][-A-Za-z0-9_]*$ (必需) |
| ssh | 运行在 Azure 上的基于 Linux 虚拟机的 SSH 配置。 | ContainerServiceSshConfiguration (必需) |
ContainerServiceNetworkProfile
| Name | Description | Value |
|---|---|---|
| advancedNetworking | 用于在群集上启用可观测性和安全功能套件的高级网络配置文件。 有关详细信息,请参阅 aka.ms/aksadvancednetworking。 | AdvancedNetworking |
| clusterAPIConnectivityProfile | 配置通过 Bastion 或 Cloud Shell 访问托管集群 API。 | ClusterAPIConnectivityProfile |
| dnsServiceIP | 分配给 Kubernetes DNS 服务的 IP 地址。 它必须位于 serviceCidr 中指定的 Kubernetes 服务地址范围内。 | string Constraints: 图案 = ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$ |
| ipFamilies | 用于指定群集可用的 IP 版本的 IP 系列。 IP 系列用于确定单堆栈或双堆栈群集。 对于单堆栈,预期值为 IPv4。 对于双堆栈,预期值为 IPv4 和 IPv6。 | 包含任一项的字符串数组: 'IPv4' 'IPv6' |
| kubeProxyConfig | 保留 kube-proxy 的配置自定义。 未定义的任何值都将使用 kube-proxy 默认行为。 请参阅 https://v<version.docs.kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/>,其中<版本>由<主版本次要版本><>字符串表示。 Kubernetes 版本 1.23 将是“1-23”。 | ContainerServiceNetworkProfileKubeProxyConfig |
| loadBalancerProfile | 集群load balancer的配置文件。 | ManagedClusterLoadBalancerProfile |
| loadBalancerSku | 管理集群的load balancer sku。 默认值为“standard”。 有关load balancer SKU之间的差异,请参见Azure 负载均衡器 SKUs。 | 'basic' “服务” 'standard' |
| natGatewayId | 当 outboundType 用于集群启动时用于出口的 NAT 网关的 Azure 资源 ID 是 'userAssignedNATGateway',使用 StandardV2 公共 IP,后端池类型是 podIP,负载均衡器类型是服务 SKU。 这种形式为:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways/{natGatewayName}'. 使用托管NATGateway时,该字段会自动填充。 有关详细信息,请参阅 https://aka.ms/aks/container-native-slb | 字符串 |
| natGatewayProfile | 群集 NAT 网关的配置文件。 | ManagedClusterNATGatewayProfile |
| networkDataplane | Kubernetes 群集中使用的网络数据平面。 | “azure” 'cilium' |
| networkMode | Azure CNI 配置的网络模式。 如果 networkPlugin 不是 'azure',则无法指定。 | 'bridge' 'transparent' |
| networkPlugin | 用于生成 Kubernetes 网络的网络插件。 | “azure” 'kubenet' 'none' |
| networkPluginMode | 网络插件应使用的模式。 | 'overlay' |
| networkPolicy | 用于生成 Kubernetes 网络的网络策略。 | “azure” 'calico' 'cilium' 'none' |
| outboundType | 出站(出口)路由方法。 这只能在群集创建时设置,以后无法更改。 更多信息请参见出站类型。 | 'loadBalancer' 'managedNATGateway' 'none' 'userAssignedNATGateway' 'userDefinedRouting' |
| podCidr | 使用 kubenet 时分配 Pod IP 的 CIDR 表示法 IP 范围。 | string Constraints: 图案 = ^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$ |
| podCidrs | CIDR 表示法 IP 范围,从中分配 Pod IP。 单堆栈网络需要一个 IPv4 CIDR。 对于双堆栈网络,每个 IP 系列(IPv4/IPv6)都有两个CIDR。 | string[] |
| podLinkLocalAccess | 定义access为带有 hostNetwork=false 的 pod 特殊链接本地地址(Azure 实例元数据服务,即 IMDS)。 如果未指定,则默认值为“IMDS”。 | 'IMDS' 'None' |
| serviceCidr | 从中分配服务群集 IP 的 CIDR 表示法 IP 范围。 它不得与任何子网 IP 范围重叠。 | string Constraints: 图案 = ^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$ |
| serviceCidrs | CIDR 表示法 IP 范围,从中分配服务群集 IP。 单堆栈网络需要一个 IPv4 CIDR。 对于双堆栈网络,每个 IP 系列(IPv4/IPv6)都有两个CIDR。 它们不得与任何子网 IP 范围重叠。 | string[] |
| staticEgressGatewayProfile | 静态出口网关加载项的配置文件。 有关静态出口网关的更多详细信息,请参阅 https://aka.ms/aks/static-egress-gateway。 | ManagedClusterStaticEgressGatewayProfile |
ContainerServiceNetworkProfileKubeProxyConfig
| Name | Description | Value |
|---|---|---|
| enabled | 是否在群集上的 kube-proxy 上启用(如果没有“kubeProxyConfig”存在),则默认情况下在 AKS 中启用 kube-proxy,而无需进行这些自定义。 | bool |
| ipvsConfig | 保存 IPVS 的配置自定义。 仅当“mode”设置为“IPVS”时,才能指定。 | ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig |
| mode | 指定要使用的代理模式(“IPTABLES”、“IPVS”或“NFTABLES”) | 'IPTABLES' 'IPVS' “国家电影表” |
ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig
| Name | Description | Value |
|---|---|---|
| scheduler | IPVS 计划程序,有关详细信息,请参阅 http://www.linuxvirtualserver.org/docs/scheduling.html。 | 'LeastConnection' 'RoundRobin' |
| tcpFinTimeoutSeconds | 接收 FIN 后用于 IPVS TCP 会话的超时值(以秒为单位)。 必须是正整数值。 | int |
| tcpTimeoutSeconds | 用于空闲 IPVS TCP 会话的超时值(以秒为单位)。 必须是正整数值。 | int |
| udpTimeoutSeconds | 用于 IPVS UDP 数据包的超时值(以秒为单位)。 必须是正整数值。 | int |
ContainerServiceSshConfiguration
| Name | Description | Value |
|---|---|---|
| publicKeys | 用于通过基于 Linux 的 VM 进行身份验证的 SSH 公钥列表。 最多可以指定 1 个键。 | ContainerServiceSshPublicKey[](必需) |
ContainerServiceSshPublicKey
| Name | Description | Value |
|---|---|---|
| keyData | 用于通过 SSH 向 VM 进行身份验证的证书公钥。 证书必须采用 PEM 格式(带或不带标头)。 | string (必需) |
CreationData
| Name | Description | Value |
|---|---|---|
| sourceResourceId | 这是用于创建目标对象的源对象的 ARM ID。 | 字符串 |
DelegatedResource
| Name | Description | Value |
|---|---|---|
| 位置 | 源资源位置 - 仅供内部使用。 | 字符串 |
| referralResource | 引荐委派(可选)的委托 ID - 仅供内部使用。 | 字符串 |
| resourceId | 委派资源的 ARM 资源 ID - 仅供内部使用。 | 字符串 |
| tenantId | 委托资源的租户 ID - 仅供内部使用。 | string Constraints: 最小长度 = 36 最大长度 = 36 图案 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
德拉内特档案
| Name | Description | Value |
|---|---|---|
| mode | 特工池的DRANET模式。 | 'Managed' 'Unmanaged' |
ExtendedLocation
| Name | Description | Value |
|---|---|---|
| name | 扩展位置的名称。 | 字符串 |
| 类型 | 扩展位置的类型。 | 'EdgeZone' |
GPUProfile
| Name | Description | Value |
|---|---|---|
| driver | 是否安装 GPU 驱动程序。 如果未指定,则默认为“安装”。 | 'Install' 'None' |
| driverType | 指定要在创建 Windows 代理池时安装的 GPU 驱动程序的类型。 如果未提供,AKS 会根据系统兼容性选择驱动程序。 创建 AgentPool 后,无法更改此更改。 这不能在 Linux AgentPools 上设置。 对于 Linux AgentPools,根据系统兼容性选择驱动程序。 | 'CUDA' 'GRID' |
| nvidia | NVIDIA 专用的显卡设置。 | NvidiaGPUProfile |
硬驱逐阈值
| Name | Description | Value |
|---|---|---|
| 内存可用 | 即在该内存以下触发驱逐的门槛。 接受绝对值(例如“500英里”)或百分比值(例如“5%”)。 绝对值必须大于或等于100英里。 百分比值必须大于或等于2%。 | 字符串 |
| nodeFsAvailable | 即触发 pod 驱逐的可用节点文件系统空间阈值。 接受绝对值(例如“1Gi”)或百分比值(例如“10%”)。 必须大于或等于系统默认值10%。 | 字符串 |
| nodeFsInodesFree(节点自由) | 节点文件系统中可用inode的阈值低于该阈值触发了Pod驱逐。 接受绝对inode计数(例如“100000”)或百分比值(例如“5%”)。 百分比值必须大于或等于系统默认值5%。 | 字符串 |
IPTag
| Name | Description | Value |
|---|---|---|
| ipTagType | IP 标记类型。 示例:RoutingPreference。 | 字符串 |
| 标签 | 与公共 IP 关联的 IP 标记的值。 示例:Internet。 | 字符串 |
IstioCertificateAuthority
| Name | Description | Value |
|---|---|---|
| plugin | 服务网格的插件证书信息。 | IstioPluginCertificateAuthority |
IstioComponents
| Name | Description | Value |
|---|---|---|
| egressGateways | Istio 出口网关。 | IstioEgressGateway[] |
| ingressGateways | Istio 入口网关。 | IstioIngressGateway[] |
| 代理重定向机制 | 流量重定向的模式。 | “CNIChaining” “初始容器” |
IstioEgressGateway
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用出口网关。 | bool (必需) |
| gatewayConfigurationName | Istio 加载项出口网关的网关配置自定义资源的名称。 启用 Istio 出口网关时必须指定。 必须部署在 Istio 出口网关将部署到的同一命名空间中。 | 字符串 |
| name | Istio 加载项出口网关的名称。 | string Constraints: 模式 = [a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)* (必需) |
| 命名空间 | 应在其中部署 Istio 加载项出口网关的命名空间。 如果未指定,则默认值为 aks-istio-egress。 | 字符串 |
IstioIngressGateway
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用入口网关。 | bool (必需) |
| mode | 入口网关的模式。 | 'External' “内部”(必填) |
IstioPluginCertificateAuthority
| Name | Description | Value |
|---|---|---|
| certChainObjectName | Azure 密钥保管库 中的 Certificate chain object name. | 字符串 |
| certObjectName | Azure 密钥保管库 中的 Intermediate certificate object name. | 字符串 |
| keyObjectName | Azure 密钥保管库 中的中间证书私钥对象名称。 | 字符串 |
| keyVaultId | 密钥保管库的资源ID。 | 字符串 |
| rootCertObjectName | Azure 密钥保管库 中的根证书对象名称。 | 字符串 |
IstioServiceMesh
| Name | Description | Value |
|---|---|---|
| certificateAuthority | Istio 服务网格证书颁发机构 (CA) 配置。 目前,我们仅支持插件证书,如下所示 https://aka.ms/asm-plugin-ca | IstioCertificateAuthority |
| components | Istio 组件配置。 | IstioComponents |
| revisions | Istio 控制平面的修订列表。 升级未进行时,这将保留一个值。 当 Canary 升级正在进行时,这只能保留两个连续值。 欲了解更多信息,请参见:/azure/aks/istio-upgrade | string[] |
KubeletConfig
| Name | Description | Value |
|---|---|---|
| allowedUnsafeSysctls | 允许的不安全 sysctls 或不安全的 sysctl 模式列表(以结尾 *)。 |
string[] |
| containerLogMaxFiles | 一个容器可以存在的最大容器日志文件数。 该数字必须≥ 2。 | int Constraints: 最小值 = 2 |
| containerLogMaxSizeMB | 在轮换容器日志文件之前,容器日志文件的最大大小(例如 10Mi)。 | int |
| cpuCfsQuota | 如果为指定 CPU 限制的容器启用了 CPU CFS 配额强制实施。 默认值为 true。 | bool |
| cpuCfsQuotaPeriod | CPU CFS 配额周期值。 默认值为“100ms”。 有效值是包含可选分数和单位后缀的小数序列。 例如:“300ms”、“2h45m”。 支持的单位为“ns”、“us”、“ms”、“s”、“m”和“h”。 | 字符串 |
| cpuManagerPolicy | 要使用的 CPU 管理器策略。 默认值为“none”。 有关详细信息,请参阅 Kubernetes CPU 管理策略 。 允许的值为“none”和“static”。 | 字符串 |
| 驱逐最大波德恩惠秒内 | 软淘汰期间,舱体终止的最大宽限期为秒;限制了舱体终止的宽限期秒。 默认值为60,当簇 enableNodeHardening 属性为真时应用。 仅适用于Linux的节点池。 |
int Constraints: 最小值 = 0 |
| failSwapOn | 如果设置为 true,则如果在节点上启用了交换,则 Kubelet 将无法启动。 | bool |
| 硬驱逐阈值 | Kubelet的硬性驱逐门槛。 当阈值未被设置时,系统默认值会被使用。 有关计算默认值的详细信息,请参见 AKS 节点资源预留 。 仅适用于Linux的节点池。 | 硬驱逐阈值 |
| imageGcHighThreshold | 磁盘使用率的百分比,之后映像垃圾回收始终运行。 如果要禁用映像垃圾回收,则设置为 100。 默认值为 85% | int |
| imageGcLowThreshold | 从不运行映像垃圾回收之前磁盘使用量的百分比。 这不能设置为高于 imageGcHighThreshold。 默认值为 80% | int |
| kubeReserved | kube保留值用于kubelet。 当未设置值时,会使用基于虚拟机大小的系统计算默认值。 有关计算默认值的详细信息,请参见 AKS 节点资源预留 。 仅适用于Linux的节点池。 | 库比预留 |
| podMaxPids | 每个 Pod 的最大进程数。 | int |
| seccompDefault | 指定应用于所有工作负荷的默认 seccomp 配置文件。 如果未指定,则默认使用“未完成”。 | 'RuntimeDefault' 'Unconfined' |
| soft驱逐宽限期 | 软驱逐信号的宽限期——在淘汰前必须保持多长时间的门槛。 默认和配对规则和softEvictionThreshold一样。 这些数值是围棋式的持续时间字符串(例如“1分30秒”);支援单位包括“NS”、“US”、“MS”、“S”、“M”和“H”。 仅适用于Linux的节点池。 | 软驱逐宽限期 |
| soft驱逐阈值 | 库贝莱特的软性驱逐门槛。 交叉时,荚果会在成对的软驱逐宽限期后被驱逐。 当集群 enableNodeHardening 属性为真时,系统默认值适用;否则不会配置软驱逐。 对于每个信号(memoryAvailable、nodeFsAvailable、nodeFsInodesFree),softEvictionThreshold 和 softEvictionGracePeriod 中的条目必须处于相同状态:两者都省略(默认)、两者都非空(覆盖),或两串为空字符串(选择退出该信号)。 仅适用于Linux的节点池。 请参阅 https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/#soft-eviction-thresholds。 |
软驱逐阈值 |
| topologyManagerPolicy | 要使用的拓扑管理器策略。 有关详细信息,请参阅 Kubernetes 拓扑管理器。 默认值为“none”。 允许的值为“none”、“best-effort”、“restricted”和“single-numa-node”。 | 字符串 |
库比预留
| Name | Description | Value |
|---|---|---|
| cpu毫厘核心 | 为Kubernetes系统守护进程预留的CPU数量,单位为毫核。 必须大于或等于140。 例如,200 表示 200m(0.2 CPU 核心)。 | int |
| 内存MB | 为Kubernetes系统守护进程预留的内存量,以MiB计。 必须大于或等于750。 | int |
KubernetesResourceObjectEncryptionProfile
| Name | Description | Value |
|---|---|---|
| 基础设施加密 | 是否使用服务托管密钥启用 Kubernetes 资源对象的静态加密。 有关这方面的更多信息,请参阅 https://aka.ms/aks/kubernetesResourceObjectEncryption。 | 'Enabled' |
LinuxOSConfig
| Name | Description | Value |
|---|---|---|
| swapFileSizeMB | 将在每个节点上创建的交换文件的大小(以 MB 为单位)。 | int |
| sysctls | Linux 代理节点的 Sysctl 设置。 | SysctlConfig |
| transparentHugePageDefrag | 内核是否应积极利用内存压缩,使更多的大页可用。 有效值为“always”、“defer”、“defer+madvise”、“madvise”和“never”。 默认值为“madvise”。 有关详细信息,请参阅 透明巨页。 | 字符串 |
| transparentHugePageEnabled | 是否启用透明巨页。 有效值为“always”、“madvise”和“never”。 默认值为“always”。 有关详细信息,请参阅 透明巨页。 | 字符串 |
本地DNS虚拟
| Name | Description | Value |
|---|---|---|
| cacheDurationInSeconds | 缓存最大 TTL(以秒为单位)。 有关更多信息,请参阅 缓存插件 。 | int |
| forwardDestination | 要从 localDNS 转发的 DNS 查询的目标服务器。 | 'ClusterCoreDNS' 'VnetDNS' |
| forwardPolicy | 用于选择上游 DNS 服务器的转发策略。 有关更多信息,请参阅 forward plugin 。 | “Random” 'RoundRobin' 'Sequential' |
| maxConcurrent | 最大并发查询数。 有关更多信息,请参阅 forward plugin 。 | int |
| 协议 | 对于从 localDNS 到上游 DNS 服务器的连接,强制执行 TCP 或首选 UDP 协议。 | 'ForceTCP' 'PreferUDP' |
| queryLogging | localDNS 中 DNS 查询的日志级别。 | 'Error' 'Log' |
| serveStale | 用于提供过时数据的策略。 有关更多信息,请参阅 缓存插件 。 | “禁用” 'Immediate' 'Verify' |
| serveStaleDurationInSeconds | 提供过时的持续时间(以秒为单位)。 有关更多信息,请参阅 缓存插件 。 | int |
LocalDNSProfile
| Name | Description | Value |
|---|---|---|
| kubeDNSOverrides | KubeDNS 覆盖适用于来自 dnsPolicy:ClusterFirst 的 Pod 的 DNS 流量(称为 KubeDNS 流量)。 | LocalDNSProfileKubeDNSOverrides |
| mode | localDNS 的启用模式。 | 'Disabled' 'Preferred' “必需” |
| vnetDNSOverrides | VnetDNS 覆盖适用于来自 dnsPolicy:default 或 kubelet 的 Pod 的 DNS 流量(称为 VnetDNS 流量)。 | LocalDNSProfileVnetDNSOverrides |
LocalDNSProfileKubeDNSOverrides
| Name | Description | Value |
|---|
LocalDNSProfileVnetDNSOverrides
| Name | Description | Value |
|---|
ManagedClusterAADProfile
| Name | Description | Value |
|---|---|---|
| adminGroupObjectIDs | 将具有群集管理员角色的 AAD 组对象 ID 的列表。 | string[] |
| clientAppID | (已弃用)客户端 AAD 应用程序 ID。 更多信息请访问 https://aka.ms/aks/aad-legacy。 | 字符串 |
| enableAzureRBAC | 是否启用 Azure RBAC for Kubernetes 授权。 | bool |
| 托管的 | 是否启用托管 AAD。 | bool |
| serverAppID | (已弃用)服务器 AAD 应用程序 ID。 更多信息请访问 https://aka.ms/aks/aad-legacy。 | 字符串 |
| serverAppSecret | (已弃用)服务器 AAD 应用程序机密。 更多信息请访问 https://aka.ms/aks/aad-legacy。 | string Constraints: 敏感值。 以安全参数的形式传入。 |
| tenantID | 用于身份验证的 AAD 租户 ID。 如果未指定,将使用部署订阅的租户。 | 字符串 |
ManagedClusterAddonProfile
| Name | Description | Value |
|---|---|---|
| config | 用于配置加载项的键值对。 | ManagedClusterAddonProfileConfig |
| enabled | 是否启用加载项。 | bool (必需) |
ManagedClusterAddonProfileConfig
| Name | Description | Value |
|---|
ManagedClusterAgentPoolProfile
| Name | Description | Value |
|---|---|---|
| artifactStreamingProfile | 用于在 AKS 上使用项目流式传输的配置。 | AgentPoolArtifactStreamingProfile |
| availabilityZones | 用于节点的Availability zones列表。 仅当 AgentPoolType 属性为“VirtualMachineScaleSets”时,才能指定此值。 | string[] |
| capacityReservationGroupID | 容量预留组的完全限定资源ID,用于从保留的虚拟机组中提供virtual machines。 其形式为:'/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Compute/capacityreservationgroups/{capacityReservationGroupName}' 客户使用该文件创建包含指定CRG的代理池。 更多信息请参见 容量预留 | 字符串 |
| count | 用于托管 docker 容器的代理数(VM)。 允许的值必须在用户池的 0 到 1000(含)范围内,系统池的范围为 1 到 1000(含)。 默认值为 1。 | int |
| creationData | 如果使用快照创建/升级节点池,则用于指定源快照 ID 的 CreationData。 | CreationData |
| enableAutoScaling | 是否启用自动缩放程序 | bool |
| enableEncryptionAtHost | 是否启用基于主机的 OS 和数据驱动器加密。 这只支持某些虚拟机规模和某些 Azure 区域。 更多信息请参见:/azure/aks/enable-host-encryption | bool |
| enableFIPS | 是否使用已启用 FIPS 的 OS。 详情请参见 添加支持 FIPS 的节点池。 | bool |
| enableNodePublicIP | 是否为每个节点分配自己的公共 IP。 某些方案可能需要节点池中的节点接收其自己的专用公共 IP 地址。 游戏工作负载就是一种常见方案,此时控制台需要直接连接到云虚拟机才能尽量减少画面跳跃。 更多信息请参见为每个节点分配公共IP。 默认值为 false。 | bool |
| enableOSDiskFullCaching | 是否启用全缓存临时操作系统磁盘功能。 启用此功能后,整个操作系统将本地缓存在临时操作系统磁盘上,防止因网络故障引发的 E17 事件。 | bool |
| enableUltraSSD | 是否启用 UltraSSD | bool |
| gatewayProfile | 特定于网关模式下托管代理池的配置文件。 如果代理池模式不是网关,则无法设置此字段。 | AgentPoolGatewayProfile |
| gpuInstanceProfile | 用于为支持的 GPU VM SKU 指定 GPU MIG 实例配置文件的 GPUInstanceProfile。 | 'MIG1g' 'MIG2g' 'MIG3g' 'MIG4g' 'MIG7g' |
| gpuProfile | 代理池的 GPU 设置。 | GPUProfile |
| hostGroupID | 专用主机组的完全限定资源ID,用于配置virtual machines,仅在创建场景中使用,且一旦设置后不允许更改。 此格式为:/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}。 更多信息请参见 Azure专用主机。 | 字符串 |
| kubeletConfig | 代理池节点上的 Kubelet 配置。 | KubeletConfig |
| kubeletDiskType | 确定空Dir卷、容器运行时数据根和Kubelet临时storage的放置。 | 'OS' 'Temporary' |
| linuxOSConfig | Linux 代理节点的 OS 配置。 | LinuxOSConfig |
| localDNSProfile | 使用 VnetDNS 和 KubeDNS 覆盖配置每个节点的本地 DNS。 LocalDNS 有助于提高 AKS 群集中 DNS 解析的性能和可靠性。 有关更多详细信息,请参阅 aka.ms/aks/localdns。 | LocalDNSProfile |
| maxCount | 自动缩放的最大节点数 | int |
| maxPods | 可在节点上运行的 Pod 的最大数目。 | int |
| messageOfTheDay | Linux 节点的当天消息(base64 编码)。 一个 base64 编码的字符串,将在解码后写入 /etc/motd。 这允许自定义 Linux 节点当天的消息。 它不得为 Windows 节点指定。 它必须是静态字符串(即,将打印为原始字符串,而不是作为脚本执行)。 | 字符串 |
| minCount | 自动缩放的最小节点数 | int |
| mode | 代理池的模式。 群集必须随时至少有一个“系统”代理池。 有关代理池限制和最佳实践的更多信息,请参见:/azure/aks/use-system-pools | 'Gateway' 'Machines' 'ManagedSystem' 'System' 'User' |
| name | 订阅和资源组上下文中代理池配置文件的唯一名称。 Windows 代理池名称必须为 6 个字符或更少。 | string Constraints: 模式 = ^[a-z][a-z0-9]{0,11}$ (必需) |
| networkProfile | 代理池的网络相关设置。 | AgentPoolNetworkProfile |
| nodeImageVersion (节点映像版本) | 节点映像的版本。 设置该值会触发agentPool回滚。 只允许取值 recentlyUsedVersions 。 |
字符串 |
| nodeInitializationTaints | 创建期间在节点上添加的污点,AKS 不会协调。 这些污点不会被 AKS 协调,并且可以通过 kubectl 调用删除。 创建节点池后,可以修改此字段,但在需要重新执行的其他作(例如节点映像升级)之前,不会使用新的污点重新创建节点。 这些污点允许在节点准备好接受工作负载之前运行所需的配置,例如“key1=value1:NoSchedule”,然后可以使用 kubectl taint nodes node1 key1=value1:NoSchedule- |
string[] |
| nodeLabels | 要跨代理池中的所有节点保留的节点标签。 | ManagedClusterAgentPoolProfilePropertiesNodeLabels |
| nodePublicIPPrefixID | VM 节点应使用 IP 的公共 IP 前缀 ID。 此格式为:/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName} | 字符串 |
| nodeTaints | 在节点池创建和缩放期间添加到新节点的污点。 例如,key=value:NoSchedule。 | string[] |
| orchestratorVersion | 用户指定的 Kubernetes 版本。 支持修补程序版本 <major.minor.patch> (例如 1.20.13)和 <major.minor> (例如 1.20)。 指定 major.minor< 后>,会自动选择最新的受支持的 GA 修补程序版本。 <创建群集后使用相同的 major.minor> 更新群集(例如 1.14.x -> 1.14)不会触发升级,即使有较新的修补程序版本可用也是如此。 最佳做法是将 AKS 群集中的所有节点池升级到相同的 Kubernetes 版本。 节点池版本必须与控制平面具有相同的主版本。 节点池次要版本必须位于控制平面版本的两个次要版本中。 节点池版本不能大于控制平面版本。 更多信息请参见 升级节点池。 | 字符串 |
| osDiskSizeGB | OS 磁盘大小(以 GB 为单位)用于为主/代理池中的每个计算机指定磁盘大小。 如果指定 0,它将根据指定的 vmSize 应用默认 osDisk 大小。 | int Constraints: 最小值 = 0 最大值 = 2048 |
| osDiskType | 要用于代理池中的计算机的 OS 磁盘类型。 如果 VM 支持该 VM 并且缓存磁盘大于请求的 OSDiskSizeGB,则默认值为“临时”。 否则,默认为“Managed”。 创建后可能不会更改。 更多信息请参见Ephemeral OS。 | 'Ephemeral' 'Managed' |
| osSKU | 指定代理池使用的 OS SKU。 如果 OSType 为 Linux,则默认值为 Ubuntu。 当 Kubernetes <= 1.24 或 Windows2022(如果 OSType 为 Windows)时 >,默认值为 Windows2019。 | 'AzureContainerLinux' 'AzureLinux' 'AzureLinux3' 'CBLMariner' “平车” 'Mariner' 'Ubuntu' 'Ubuntu2204' 'Ubuntu2404' 'Ubuntu2604' 'Windows2019' 'Windows2022' “窗户2025” 'WindowsAnnual' |
| osType | 作系统类型。 默认值为 Linux。 | 'Linux' 'Windows' |
| podIPAllocationMode | Pod IP 分配模式。 代理池中 Pod 的 IP 分配模式。 必须与 podSubnetId 一起使用。 默认值为“DynamicIndividual”。 | 'DynamicIndividual' 'StaticBlock' |
| podSubnetID | 启动时 Pod 将加入的子网的 ID。 如果省略,则会在节点子网上静态分配 Pod IP(有关详细信息,请参阅 vnetSubnetID)。 此格式为:/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName} | 字符串 |
| powerState | 代理池是正在运行还是已停止。 首次创建代理池时,它最初正在运行。 可以通过将此字段设置为“已停止”来停止代理池。 已停止的代理池会停止其所有 VM,不会产生计费费用。 仅当代理池正在运行并且预配状态为“成功”时,才能停止代理池 | PowerState |
| preparedImageSpecificationProfile | 设置以确定用于配置池中节点的预备镜像规范。 | PreparedImageSpecificationProfile |
| proximityPlacementGroupID | 邻近放置组的 ID。 | 字符串 |
| scaleDownMode | 缩放代理池时要使用的缩减模式。 这也会影响群集自动缩放程序的行为。 如果未指定,则默认为 Delete。 | 'Deallocate' 'Delete' |
| scaleSetEvictionPolicy | 虚拟机规模集逐出策略。 驱逐政策明确了虚拟机被驱逐时to do处理方式。 默认值为“删除”。 有关驱逐的更多信息,请参见 spot 虚拟机 | 'Deallocate' 'Delete' |
| scaleSetPriority | 虚拟机规模集优先级。 | 'Regular' 'Spot' |
| securityProfile | 代理池的安全设置。 | AgentPoolSecurityProfile |
| spotMaxPrice | 你愿意支付现成实例的最大价格(以美元为单位)。 可能的值是大于零或 -1 的任何小数值,指示要按需 up-to 的默认价格。 可能的值是大于零或 -1 的任何小数值,表示愿意支付任何按需价格。 有关现货价格的更多详情,请参见现货虚拟机价格 | int |
| 状态 | 包含有关代理池的只读信息。 | AgentPoolStatus |
| tags | 要保留在代理池虚拟机规模集上的标记。 | ManagedClusterAgentPoolProfilePropertiesTags |
| 类型 | 代理池的类型。 | 'AvailabilitySet' “FlexNodes” 'VirtualMachines' 'VirtualMachineScaleSets' |
| upgradeSettings | 用于升级代理池的设置 | AgentPoolUpgradeSettings |
| 升级设置蓝绿 | 代理池上 Blue-Green 升级的设置。 当升级策略设置为 BlueGreen 时适用。 | AgentPoolBlueGreenUpgradeSettings |
| 升级策略 | 定义代理池的升级策略。 默认值为滚动。 | “蓝绿” 'Rolling' |
| virtualMachineNodesStatus | VirtualMachines 代理池中的节点的状态。 | VirtualMachineNodes[] |
| virtualMachinesProfile | VirtualMachines 代理池上的规范。 | VirtualMachinesProfile |
| vmSize | 代理池 VM 的大小。 VM 大小可用性因区域而异。 如果节点包含的计算资源(内存、cpu 等)Pod 不足,可能无法正常运行。 有关受限虚拟机规模的更多细节,请参见:/azure/aks/quotas-skus-regions | 字符串 |
| vnetSubnetID | 代理池节点和(可选)Pod 将在启动时加入的子网的 ID。 如果未指定,将生成和使用 VNET 和子网。 如果未指定 podSubnetID,则这适用于节点和 Pod,否则它仅适用于节点。 此格式为:/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName} | 字符串 |
| windowsProfile | Windows 代理池的特定配置文件。 | AgentPoolWindowsProfile |
| workloadRuntime | 确定节点可以运行的工作负荷的类型。 | 'KataMshvVmIsolation' “KataVm隔离” 'OCIContainer' 'WasmWasi' |
ManagedClusterAgentPoolProfilePropertiesNodeLabels
| Name | Description | Value |
|---|
ManagedClusterAgentPoolProfilePropertiesTags
| Name | Description | Value |
|---|
ManagedClusterAgentSandboxProfile
| Name | Description | Value |
|---|---|---|
| enabled | 集群是否启用了Agent Sandbox核心扩展。 在集群创建时,默认是 false。 | bool |
ManagedClusterAIToolchainOperatorProfile
| Name | Description | Value |
|---|---|---|
| enabled | 是否为集群启用 AI toolchain Operator。 指示 AI 工具链作员是否已启用。 | bool |
ManagedClusterAPIServerAccessProfile
| Name | Description | Value |
|---|---|---|
| authorizedIPRanges | 授权access Kubernetes API服务器的IP范围。 IP 范围以 CIDR 格式指定,例如 137.117.106.88/29。 该功能不兼容使用公共 IP Per Node 的集群,或使用 Basic 负载均衡器 的集群。 更多信息请参见 API 服务器授权 IP 范围。 | string[] |
| disableRunCommand | 是否禁用群集的 run 命令。 | bool |
| enablePrivateCluster | 是否创建群集作为专用群集。 更多细节请参见 创建私有 AKS 集群。 | bool |
| enablePrivateClusterPublicFQDN | 是否为专用群集创建其他公共 FQDN。 | bool |
| enableVnetIntegration | 是否为群集启用 apiserver vnet 集成。 有关详细信息,请参阅 aka.ms/AksVnetIntegration。 | bool |
| privateDNSZone | 集群的private DNS区域模式。 默认值为 System。 更多详情请参见configure private DNS zone。 允许的值为“system”和“none”。 | 字符串 |
| subnetId | 启用 apiserver vnet 集成时要使用的子网。 使用 BYO Vnet 创建新集群时,或者更新现有集群以启用 apiserver vnet 集成时,需要它。 | 字符串 |
ManagedClusterAppRoutingIstio
| Name | Description | Value |
|---|---|---|
| mode | 是否启用 Istio 作为 Gateway API 实现,用于与应用路由的托管入口。 | 'Disabled' 'Enabled' |
ManagedClusterAutoUpgradeProfile
| Name | Description | Value |
|---|---|---|
| nodeOSUpgradeChannel | 节点作系统升级通道。 更新节点上 OS 的方式。 默认值为 NodeImage。 | 'NodeImage' 'None' 'SecurityPatch' 'Unmanaged' |
| upgradeChannel | 用于自动升级的升级通道。 默认值为“none”。 更多信息请参见 setting AKS 集群自动升级通道。 | 'node-image' 'none' 'patch' 'rapid' 'stable' |
ManagedClusterAzureMonitorProfile
| Name | Description | Value |
|---|---|---|
| appMonitoring | Kubernetes 应用程序容器的应用程序监视配置文件。 通过使用 Azure Monitor OpenTelemetry 的 SDK 自动监测应用,收集应用日志、指标和追踪数据。 有关概述,请参阅 aka.ms/AzureMonitorApplicationMonitoring。 | ManagedClusterAzureMonitorProfileAppMonitoring |
| containerInsights | 设置它以启用并配置集群的 Azure Monitor Container Insights,该系统收集 Kubernetes 事件、库存以及容器的标准和标准日志。 有关概述,请参阅 aka.ms/AzureMonitorContainerInsights。 | ManagedClusterAzureMonitorProfileContainerInsights |
| 指标 | 适用于 Prometheus 加载项的 Azure Monitor 托管服务的指标配置文件。 收集开箱即用的Kubernetes基础设施指标,发送到Azure监控工作区,并为自定义目标配置额外的抓取。 有关概述,请参阅 aka.ms/AzureManagedPrometheus。 | ManagedClusterAzureMonitorProfileMetrics |
ManagedClusterAzureMonitorProfileAppMonitoring
| Name | Description | Value |
|---|---|---|
| autoInstrumentation | AKS的应用监控自动仪表。 部署一个webhook,自动对Microsoft OpenTelemetry发行版的工作负载进行监测,以收集OpenTelemetry的指标、日志和跟踪数据。 参见 https://aka.ms/AKSAppMonitoringDocs 和 https://aka.ms/AzureMonitorApplicationMonitoring 以获取概述。 | ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation |
| 开放遥测日志与追踪 | 应用监控 OpenTelemetry 日志与追踪配置文件适用于 AKS。 利用基于 Azure Monitor 的 OpenTelemetry SDK 收集 OpenTelemetry 日志和应用的跟踪数据。 参见 https://aka.ms/AKSAppMonitoringDocs 和 https://aka.ms/AzureMonitorApplicationMonitoring 以获取概述。 | ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces |
| openTelemetryMetrics | 应用监控 AKS 的 OpenTelemetry 指标配置文件。 利用基于 Azure Monitor 的 OpenTelemetry SDK 收集应用的 OpenTelemetry 指标。 参见 https://aka.ms/AKSAppMonitoringDocs 和 https://aka.ms/AzureMonitorApplicationMonitoring 以获取概述。 | ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics |
ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation
| Name | Description | Value |
|---|---|---|
| enabled | 指示是否启用应用监控自动仪表。 | bool |
ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces
| Name | Description | Value |
|---|---|---|
| enabled | 指示是否启用应用监控OpenTelemetry Logs and trace。 | bool |
| grpcPort | OpenTelemetry GRPC 的主机端口是日志和追踪。 如果未指定,默认端口是28332。 | int |
| httpPort | OpenTelemetry HTTP/PROTOBUF 日志和追踪的主机端口。 如果未指定,则默认端口为 28331。 | int |
ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics
| Name | Description | Value |
|---|---|---|
| enabled | 指示是否启用了应用监控OpenTelemetry Metrics。 | bool |
| grpcPort | OpenTelemetry GRPC 指标的主机端口。 如果未指定,默认端口是28334。 | int |
| httpPort | OpenTelemetry HTTP/PROTOBUF 指标的主机端口。 如果未指定,则默认端口为 28333。 | int |
ManagedClusterAzureMonitorProfileContainerInsights
| Name | Description | Value |
|---|---|---|
| containerNetworkLogs | 用 Azure Monitor 配置容器网络日志摄取。 所摄取的日志类型由相关的CRD控制;如果未指定,则默认为 Disabled。 有关详细信息,请参阅 https://aka.ms/ContainerNetworkLogsDoc 和 https://aka.ms/acns/howtoenablecnl 了解详细信息。 |
'Disabled' 'Enabled' |
| disablePrometheusMetricsScraping | 指示是否禁用 prometheus 指标擦除。 如果未指定,默认值为 false,即 prometheus 抓取已被启用。 | bool |
| enabled | 提示是否启用了 Azure Monitor 容器洞察日志插件。 | bool |
| logAnalyticsWorkspaceResourceId | Azure Log Analytics Workspace 的 Fully Qualified ARM Resource ID for storageing Azure Monitor Container Insights Logs. | 字符串 |
| syslogPort | syslog 主机端口。 如果未指定,则默认端口为 28330。 | int |
ManagedClusterAzureMonitorProfileKubeStateMetrics
| Name | Description | Value |
|---|---|---|
| metricAnnotationsAllowList | 将在资源的标签指标中使用的 Kubernetes 批注键的逗号分隔列表(示例:'namespaces=[kubernetes.io/team,...],pods=[kubernetes.io/team],...')。 默认情况下,指标仅包含资源名称和命名空间标签。 | 字符串 |
| metricLabelsAllowlist | 将在资源的标签指标中使用的其他 Kubernetes 标签键的逗号分隔列表(示例:'namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...')。 默认情况下,指标仅包含资源名称和命名空间标签。 | 字符串 |
ManagedClusterAzureMonitorProfileMetrics
| Name | Description | Value |
|---|---|---|
| controlPlane的 | Control plane metrics collection profile for the Azure Managed Prometheus addon. 配置来自托管控制平面组件(kube-apiserver、etcd 等)的运行时指标收集。 请参见 aka.ms/aks/controlplane-metrics 了解概况。 | ManagedClusterAzureMonitorProfileMetricsControlPlane |
| enabled | 是否启用或禁用Azure托管Prometheus插件用于Prometheus监控。 有关启用和禁用的详细信息,请参阅 aka.ms/AzureManagedPrometheus-aks-enable。 | bool (必需) |
| kubeStateMetrics | Azure 托管 Prometheus 加载项的 Kube 状态指标配置文件。 这些可选设置适用于使用加载项部署的 kube-state-metrics Pod。 有关详细信息,请参阅 aka.ms/AzureManagedPrometheus-optional-parameters。 | ManagedClusterAzureMonitorProfileKubeStateMetrics |
ManagedClusterAzureMonitorProfileMetricsControlPlane
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用或禁用Azure托管Prometheus插件对控制平面指标的收集。 默认设置为禁用。 详情请参见 aka.ms/aks/controlplane-metrics。 | bool |
ManagedClusterBootstrapProfile
| Name | Description | Value |
|---|---|---|
| artifactSource | 项目源。 artifacts 下载的来源。 | 'Cache' 'Direct' |
| containerRegistryId | The resource ID of Azure 容器注册表. 注册局必须具备私有网络access、高级SKU和区域冗余。 | 字符串 |
ManagedClusterControlPlaneScalingProfile
| Name | Description | Value |
|---|---|---|
| 缩放大小 | 控制平面的缩放尺寸。 扩展规模提供保证容量和可预测的 Kubernetes 性能,超出标准层默认。 更大的H尺寸能提供更高的性能保证。 有关各尺寸的性能指标详情请参见 https://aka.ms/aks/hyperscale 。 | “H2” “H4” “H8”(必填) |
ManagedClusterCostAnalysis
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用成本分析。 托管群集 sku.tier 必须设置为“标准”或“高级”才能启用此功能。 启用此功能后,Kubernetes 命名空间和部署细节会添加到 Azure portal 的成本分析视图中。 如果未指定,则默认值为 false。 有关详细信息,请参阅 aka.ms/aks/docs/cost-analysis。 | bool |
ManagedClusterHealthMonitorProfile
| Name | Description | Value |
|---|---|---|
| enenable ContinuousControlPlaneAndAddonMonitor | 是否启用连续控制平面和附加监视器。 | bool |
| enableOnDemandMonitor | 是否启用按需监控。 | bool |
ManagedClusterHosted系统配置文件
| Name | Description | Value |
|---|---|---|
| enabled | 是否为群集启用托管系统插件。 | bool |
| nodeSubnetID | 将由node autoprovisioner管理的工作负载节点加入的子网ID,用于在租户中运行工作负载Pod。 这必须与 systemNodeSubnetID 和 apiserverAccessProfile.subnetId一起提供,且三个子网 ID 必须在同一个 VNet 中。 如果你没有指定,AKS 会在托管资源组中用默认的 /16 CIDR 创建一个子网。 |
字符串 |
| systemNodeSubnetID | 由 AKS 管理和托管的系统节点连接的子网 ID,用于运行关键系统插件。 该 ID 必须与 nodeSubnetID 和 apiserverAccessProfile.subnetId一起提供,且所有三个子网 ID 必须属于同一个 VNet。 如果你没有指定,AKS 会在托管资源组中用默认的 /26 CIDR 创建一个子网。 |
字符串 |
ManagedClusterHttpProxyConfig
| Name | Description | Value |
|---|---|---|
| enabled | 是否开启 HTTP 代理。 如果被禁用,指定的代理配置将不会在 pod 和节点上设置。 如果未指定,则默认值为 true。 | bool |
| httpProxy | 要使用的 HTTP 代理服务器终结点。 | 字符串 |
| httpsProxy | 要使用的 HTTPS 代理服务器终结点。 | 字符串 |
| noProxy | 不应通过代理的终结点。 | string[] |
| trustedCa | 用于连接到代理服务器的替代 CA 证书。 | 字符串 |
ManagedClusterIdentity
| Name | Description | Value |
|---|---|---|
| delegatedResources | 分配给此托管群集的委托标识资源。 这只能由其他 Azure 资源提供者设置,而托管集群只能接受一个委派的身份资源。 仅供内部使用。 | ManagedClusterIdentityDelegatedResources |
| 类型 | 用于托管群集的标识类型。 更多信息请参见AKS中的 |
'None' 'SystemAssigned' 'UserAssigned' |
| userAssignedIdentities | 与托管群集关联的用户标识。 此标识将用于控制平面。 仅允许一个用户分配的标识。 密钥必须是 ARM 资源 ID,格式为“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 | ManagedClusterIdentityUserAssignedIdentities |
ManagedClusterIdentityDelegatedResources
| Name | Description | Value |
|---|
ManagedClusterIdentityUserAssignedIdentities
| Name | Description | Value |
|---|
ManagedClusterIngressDefaultDomainProfile
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用默认域。 | bool |
ManagedClusterIngressProfile
| Name | Description | Value |
|---|---|---|
| applicationLoadBalancer | 托管应用负载均衡器安装设置 | ManagedClusterIngressProfileApplicationLoadBalancer |
| 网关API | 托管网关 API 安装的设置 | ManagedClusterIngressProfileGateway配置 |
| webAppRouting | 入口配置文件的应用路由设置。 你可以在 /azure/aks/app-routing?tabs=default%2Cdeploy-app-default 找到该功能的概述和入职指南。 | ManagedClusterIngressProfileWebAppRouting |
ManagedClusterIngressProfileApplicationLoadBalancer
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 Application 负载均衡器。 | bool |
ManagedClusterIngressProfileGateway配置
| Name | Description | Value |
|---|---|---|
| 安装 | 托管网关 API 安装的配置。 如果未指定,则默认值为“禁用”。 有关详细信息,请参阅 https://aka.ms/k8s-gateway-api。 | 'Disabled' 'Standard' |
ManagedClusterIngressProfileNginx
| Name | Description | Value |
|---|---|---|
| defaultIngressControllerType | 默认 NginxIngressController 自定义资源的入口类型 | 'AnnotationControlled' 'External' 'Internal' 'None' |
ManagedClusterIngressProfileWebAppRouting
| Name | Description | Value |
|---|---|---|
| defaultDomain | 默认域的配置。 这是一个唯一的自动生成域,带有签名的 TLS 证书,允许安全 HTTPS。 有关更多说明,请参阅 默认域文档 。 | ManagedClusterIngressDefaultDomainProfile |
| dnsZoneResourceIds | 要与应用程序路由加载项关联的 DNS 区域的资源 ID。 仅在启用应用程序路由加载项时使用。 公有和private DNS区域可以属于不同的资源组,但所有公共DNS区域必须属于同一资源组,所有private DNS区域也必须属于同一资源组。 | string[] |
| enabled | 是否启用应用程序路由加载项。 | bool |
| gatewayAPIImplementations | 用于应用路由管理入口的Gateway API提供者配置。 有关Gateway API的更多信息,请参见 https://aka.ms/k8s-gateway-api 。 | ManagedClusterWebAppRoutingGatewayAPIImplementations |
| nginx | 默认 NginxIngressController 的配置。 更多请访问 /azure/aks/app-routing-nginx-configuration#the-default-nginx-ingress-controller。 | ManagedClusterIngressProfileNginx |
ManagedClusterLoadBalancerProfile
| Name | Description | Value |
|---|---|---|
| allocatedOutboundPorts | 每个 VM 分配的 SNAT 端口的所需数量。 允许的值为 0 到 64000(含)。 默认值为0,这会导致Azure动态分配端口。 | int Constraints: 最小值 = 0 最大值 = 64000 |
| backendPoolType | 受管理的入站负载均衡器后端池类型。 | 'NodeIP' 'NodeIPConfiguration' “PodIP” |
| clusterServiceLoadBalancerHealthProbeMode | 外部流量策略群集服务的运行状况探测行为。 | 'ServiceNodePort' “共享” |
| enableMultipleStandardLoadBalancers | 为每个 AKS 群集启用多个标准负载均衡器。 | bool |
| idleTimeoutInMinutes | 所需的出站流空闲超时(以分钟为单位)。 允许的值为 4 到 120(含)。 默认值为 30 分钟。 | int Constraints: 最小值 = 4 最大值 = 120 |
| managedOutboundIPs | 集群load balancer的期望托管出站IP。 | ManagedClusterLoadBalancerProfileManagedOutboundIPs |
| outboundIPPrefixes | 集群load balancer所需的出站IP前缀资源。 | ManagedClusterLoadBalancerProfileOutboundIPPrefixes |
| outboundIPs | 集群load balancer的期望出站IP资源。 | ManagedClusterLoadBalancerProfileOutboundIPs |
ManagedClusterLoadBalancerProfileManagedOutboundIPs
| Name | Description | Value |
|---|---|---|
| count | 这是Azure为集群load balancer创建和管理的IPv4出站IP的期望数量。 允许的值必须介于 1 到 100 之间(含)。 默认值为 1。 | int Constraints: 最小值 = 1 最大值 = 100 |
| countIPv6 | Azure为集群load balancer创建和管理的IPv6出站IP数量。 允许的值必须介于 1 到 100 之间(含)。 对于单堆栈,默认值为 0,双堆栈的默认值为 1。 | int Constraints: 最小值 = 0 最大值 = 100 |
ManagedClusterLoadBalancerProfileOutboundIPPrefixes
| Name | Description | Value |
|---|---|---|
| publicIPPrefixes | 公共 IP 前缀资源的列表。 | ResourceReference[] |
ManagedClusterLoadBalancerProfileOutboundIPs
| Name | Description | Value |
|---|---|---|
| publicIPs | 公共 IP 资源的列表。 | ResourceReference[] |
ManagedClusterManagedOutboundIPProfile
| Name | Description | Value |
|---|---|---|
| count | 由 Azure 创建和管理的期望出站 IP 数量。 允许的值必须介于 1 到 16 之间(含)。 默认值为 1。 | int Constraints: 最小值 = 1 最大值 = 16 |
| countIPv6 | Azure创建/管理的IPv6出站IP数量。 允许的值必须介于 1 到 16 之间(含)。 | int Constraints: 最小值 = 1 最大值 = 16 |
ManagedClusterMetricsProfile
| Name | Description | Value |
|---|---|---|
| costAnalysis | 每个 Kubernetes 资源成本分析的详细配置。 | ManagedClusterCostAnalysis |
ManagedClusterNATGatewayProfile
| Name | Description | Value |
|---|---|---|
| idleTimeoutInMinutes | 所需的出站流空闲超时(以分钟为单位)。 允许的值为 4 到 120(含)。 默认值为 4 分钟。 | int Constraints: 最小值 = 4 最大值 = 120 |
| managedOutboundIPProfile | 群集 NAT 网关的托管出站 IP 资源的配置文件。 | ManagedClusterManagedOutboundIPProfile |
| outboundIPPrefixes | 托管NAT网关的期望出站IP前缀资源。 仅兼容NAT网关V2。 | ManagedClusterNATGatewayProfileOutboundIPPrefixes |
| outboundIPs | 托管NAT网关的期望出站IP资源。 | ManagedClusterNATGatewayProfileOutboundIPS |
| sku | 托管集群NAT网关的SKU。 在该地区有“StandardV2”默认设置,否则为“Standard”。 | 'Standard' 'StandardV2' |
ManagedClusterNATGatewayProfileOutboundIPPrefixes
| Name | Description | Value |
|---|---|---|
| publicIPPrefixes | 公共 IP 前缀资源的列表。 | string[] |
ManagedClusterNATGatewayProfileOutboundIPS
| Name | Description | Value |
|---|---|---|
| publicIPs | 公共 IP 资源的列表。 | string[] |
ManagedClusterNodeProvisioningProfile
| Name | Description | Value |
|---|---|---|
| defaultNodePools | 为节点预置配置的默认 Karpenter 节点池 (CRD) 集。 除非 mode 为 'Auto',否则此字段无效。 警告:在现有集群上将其从 Auto 更改为 None 将导致默认的 Karpenter NodePools 被删除,这将耗尽并删除与这些池关联的节点。 强烈建议不要这样做,除非有空闲节点准备好接收该作驱逐的 Pod。 如果未指定,则默认值为 Auto。有关更多信息,请参阅 aka.ms/aks/nap#node-pools。 | 'Auto' 'None' |
| mode | 节点预配模式。 如果未指定,则默认值为 Manual。 | 'Auto' 'Manual' |
ManagedClusterNodeResourceGroupProfile
| Name | Description | Value |
|---|---|---|
| restrictionLevel | 应用于群集节点资源组的限制级别。 如果未指定,则默认值为“未限制” | 'ReadOnly' 'Unrestricted' |
ManagedClusterOidcIssuerProfile
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 OIDC 颁发者。 | bool |
ManagedClusterPodIdentity
| Name | Description | Value |
|---|---|---|
| bindingSelector | 要用于 AzureIdentityBinding 资源的绑定选择器。 | 字符串 |
| 标识 | 用户分配的标识详细信息。 | UserAssignedIdentity (必需) |
| name | Pod 标识的名称。 | string (必需) |
| 命名空间 | Pod 标识的命名空间。 | string (必需) |
ManagedClusterPodIdentityException
| Name | Description | Value |
|---|---|---|
| name | Pod 标识异常的名称。 | string (必需) |
| 命名空间 | Pod 标识异常的命名空间。 | string (必需) |
| podLabels | 要匹配的 Pod 标签。 | ManagedClusterPodIdentityExceptionPodLabels (必需) |
ManagedClusterPodIdentityExceptionPodLabels
| Name | Description | Value |
|---|
ManagedClusterPodIdentityProfile
| Name | Description | Value |
|---|---|---|
| allowNetworkPluginKubenet | 是否允许使用 Kubenet 网络在群集上运行 Pod 标识。 默认情况下,由于 AAD Pod 标识的安全相关特性以及 IP 欺骗的风险,在 Kubenet 中运行会禁用。 更多信息请参见using Kubenet网络插件配合AAD Pod Identity。 | bool |
| enabled | 是否启用 Pod 标识加载项。 | bool |
| userAssignedIdentities | 群集中使用的 Pod 标识。 | ManagedClusterPodIdentity[] |
| userAssignedIdentityExceptions | 允许的 Pod 标识异常。 | ManagedClusterPodIdentityException[] |
ManagedClusterPodSnapshotProfile
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用了Pod快照恢复核心扩展。 | bool |
ManagedClusterProperties
| Name | Description | Value |
|---|---|---|
| aadProfile | Azure Active Directory配置。 | ManagedClusterAADProfile |
| addonProfiles | 托管群集加载项的配置文件。 | ManagedClusterPropertiesAddonProfiles |
| agentPoolProfiles | 代理池属性。 | ManagedClusterAgentPoolProfile[] |
| agentSandboxProfile(代理沙盒配置文件) | 适用于整个集群的代理沙箱设置。 | ManagedClusterAgentSandboxProfile |
| aiToolchainOperatorProfile | 适用于整个群集的 AI 工具链作员设置。 | ManagedClusterAIToolchainOperatorProfile |
| apiServerAccessProfile | 托管集群API服务器的access配置文件。 | ManagedClusterAPIServerAccessProfile |
| autoScalerProfile | 启用时要应用于群集自动缩放程序的参数 | ManagedClusterPropertiesAutoScalerProfile |
| autoUpgradeProfile | 自动升级配置。 | ManagedClusterAutoUpgradeProfile |
| azureMonitorProfile | Azure Monitor 插件配置文件用于监控托管集群。 | ManagedClusterAzureMonitorProfile |
| bootstrapProfile | 群集启动配置的配置文件。 | ManagedClusterBootstrapProfile |
| controlPlaneScalingProfile | 配置文件用于提供可扩展且性能保证的控制平面容量,以在高负载下提供稳定的性能。 需要Kubernetes 1.33.0或更高版本。 | ManagedClusterControlPlaneScalingProfile |
| creationData | 如果使用快照创建/升级群集,则用于指定源快照 ID 的 CreationData。 | CreationData |
| disableLocalAccounts | 如果应在托管群集上禁用本地帐户。 如果设置为 true,将禁用此群集的静态凭据。 这只能在启用了 AAD 的托管群集上使用。 更多详情请参见disable local accounts。 | bool |
| diskEncryptionSetID | 用于启用静态加密的磁盘加密集的资源 ID。 此格式为:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{encryptionSetName}” | 字符串 |
| dnsPrefix | 托管群集的 DNS 前缀。 创建托管群集后,无法更新此功能。 | 字符串 |
| enableFIPS | 是否在集群层面启用FIPS模式。 启用后,该设置会强制所有 AKS 管理组件(如节点操作系统、插件和 受管理容器化组件)符合 FIPS 标准。 详情请参见 “启用集群范围的FIPS ”。 启用该属性后,集群中的所有节点池也必须启用FIPS。 尽管该特性在稳定的API版本中可用,但集群范围的FIPS仍是一个预览功能。 将该属性设置为true的写请求需要 Microsoft.ContainerService/EnableFIPSPreview 订阅功能注册。 |
bool |
| enableNamespaceResources | 启用命名空间作为 Azure 资源。 默认值为 false。 可以在创建和更新托管群集时启用/禁用它。 有关命名空间作为 ARM 资源的更多详细信息,请参阅 https://aka.ms/NamespaceARMResource 。 | bool |
| enableNodeHardening | 是否在集群层面启用节点硬化。 启用后,AKS 会对集群中所有 Linux 节点池应用软驱逐阈值、库比保留和系统保留的硬默认值。 每个节点池的kubeletConfig设置优先于固化默认值。 在运行Kubernetes 1.37及更高版本的代理池中,节点硬化默认启用且无法禁用;将该字段设置为虚假对这些池没有影响。 | bool |
| enableRBAC | 是否启用 Kubernetes Role-Based 访问控制。 | bool |
| fqdnSubdomain | 私有集群的FQDN子域,带有自定义的private dns区域。 创建托管群集后,无法更新此功能。 | 字符串 |
| 健康监测档案 | 管理集群的健康监控配置文件。 | ManagedClusterHealthMonitorProfile |
| 托管系统配置文件 | 托管系统插件的设置。 有关详细信息,请参阅 https://aka.ms/aks/automatic/systemcomponents。 | ManagedClusterHosted系统配置文件 |
| httpProxyConfig | 使用 HTTP 代理服务器预配群集的配置。 | ManagedClusterHttpProxyConfig |
| identityProfile | 与托管群集关联的用户标识。 kubelet 将使用此标识。 仅允许一个用户分配的标识。 唯一接受的密钥为“kubeletidentity”,值为“resourceId”:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 | ManagedClusterPropertiesIdentityProfile |
| ingressProfile | 托管群集的入口配置文件。 | ManagedClusterIngressProfile |
| kubernetesVersion | 用户指定的 Kubernetes 版本。 支持修补程序版本 <major.minor.patch> (例如 1.20.13)和 <major.minor> (例如 1.20)。 指定 major.minor< 后>,会自动选择最新的受支持的 GA 修补程序版本。 <创建群集后使用相同的 major.minor> 更新群集(例如 1.14.x -> 1.14)不会触发升级,即使有较新的修补程序版本可用也是如此。 升级支持的 AKS 群集时,无法跳过 Kubernetes 次要版本。 所有升级都必须按主版本号按顺序执行。 例如,允许在 1.14.x -> 1.15.x 或 1.15.x -> 1.16.x 之间进行升级,但不允许使用 1.14.x -> 1.16.x。 详情请参见升级一个AKS集群。 | 字符串 |
| linuxProfile | 托管群集中 Linux VM 的配置文件。 | ContainerServiceLinuxProfile |
| metricsProfile | 可选群集指标配置。 | ManagedClusterMetricsProfile |
| networkProfile | 网络配置文件。 | ContainerServiceNetworkProfile |
| nodeDisruptionProfile | 托管集群的节点中断配置文件。 | 节点破坏配置文件 |
| nodeProvisioningProfile | 适用于整个群集的节点预配设置。 | ManagedClusterNodeProvisioningProfile |
| nodeResourceGroup | 包含代理池节点的资源组的名称。 | 字符串 |
| nodeResourceGroupProfile | 节点资源组配置的配置文件。 | ManagedClusterNodeResourceGroupProfile |
| oidcIssuerProfile | 托管群集的 OIDC 颁发者配置文件。 | ManagedClusterOidcIssuerProfile |
| podIdentityProfile | 托管群集的 Pod 标识配置文件。 有关AAD舱体身份集成的更多细节,请参见use AAD pod idid。 | ManagedClusterPodIdentityProfile |
| pod快照配置文件 | 托管集群的Pod快照恢复配置文件。 | ManagedClusterPodSnapshotProfile |
| privateLinkResources | 与集群关联的Private link资源。 | PrivateLinkResource[] |
| publicNetworkAccess | PublicNetworkAccess 的 PublicNetworkAccess 中。 允许或拒绝AKS的公共网络access | 'Disabled' 'Enabled' “SecuredByPerimeter” |
| schedulerProfile | 带有调度器相关设置的配置文件,比如每个调度器由 AKS 管理的配置模式。 请参阅 https://aka.ms/aks/scheduler-profile。 | SchedulerProfile |
| securityProfile | 托管群集的安全配置文件。 | ManagedClusterSecurityProfile |
| serviceMeshProfile | 托管群集的服务网格配置文件。 | ServiceMeshProfile |
| servicePrincipalProfile | 关于集群用于作Azure API的服务主体身份信息。 | ManagedClusterServicePrincipalProfile |
| 状态 | 包含有关托管群集的只读信息。 | ManagedClusterStatus |
| storageProfile | 管理集群的 Storage 配置文件。 | ManagedClusterStorageProfile |
| supportPlan | 托管群集的支持计划。 如果未指定,则默认值为“KubernetesOfficial”。 | 'AKSLongTermSupport' 'KubernetesOfficial' |
| upgradeSettings | 用于升级群集的设置。 | ClusterUpgradeSettings |
| windowsProfile | 托管群集中 Windows VM 的配置文件。 | ManagedClusterWindowsProfile |
| workloadAutoScalerProfile | 托管群集的工作负荷自动缩放程序配置文件。 | ManagedClusterWorkloadAutoScalerProfile |
ManagedClusterPropertiesAddonProfiles
| Name | Description | Value |
|---|
ManagedClusterPropertiesAutoScalerProfile
| Name | Description | Value |
|---|---|---|
| balance-similar-node-groups | 检测类似节点池并在各池之间均衡节点数。 有效值为“true”和“false” | 字符串 |
| daemonset-eviction-for-empty-nodes | DaemonSet Pod 将从空节点正常终止。 如果设置为 true,则会在删除节点之前逐出空节点上的所有守护程序集 Pod。 如果无法逐出守护程序集 Pod,则会选择另一个节点进行缩放。 如果设置为 false,则会删除节点,而无需确保删除或逐出守护程序集 Pod。 | bool |
| daemonset-eviction-for-occupied-nodes | DaemonSet Pod 将从非空节点正常终止。 如果设置为 true,则会在删除节点之前逐出占用节点上的所有守护程序集 Pod。 如果无法逐出守护程序集 Pod,则会选择另一个节点进行缩放。 如果设置为 false,则会删除节点,而无需确保删除或逐出守护程序集 Pod。 | bool |
| expander | 纵向扩展时要使用的扩展器。 如果未指定,则默认值为“random”。 更多信息请参见扩展器。 | 'least-waste' 'most-pods' 'priority' 'random' |
| ignore-daemonsets-utilization | CA 在计算缩减的资源利用率时是否应该忽略 DaemonSet Pod。 如果设置为 true,则当做出缩减决策时,将考虑守护程序集使用的资源。 | bool |
| max-empty-bulk-delete | 可以同时删除的最大空节点数。 这必须是正整数。 默认值是10。 | 字符串 |
| max-graceful-termination-sec | 群集自动缩放程序在尝试缩减节点时等待 Pod 终止的最大秒数。 默认值为 600。 | 字符串 |
| max-node-provision-time | 自动缩放程序等待预配节点的最长时间。 默认值为“15m”。 值必须是后跟“m”的整数。 不支持除分钟(m)以外的时间单位。 | 字符串 |
| max-total-unready-percentage | 群集中未读节点的最大百分比。 超过此百分比后,群集自动缩放程序将停止作。 默认值为 45。 最大值为 100,最小值为 0。 | 字符串 |
| new-pod-scale-up-delay | 在某个年龄之前忽略未计划的 Pod。 对于在 kubernetes 计划程序可以计划所有 Pod 之前不希望 CA 执行作的突发/批处理缩放方案,可以告诉 CA 在某个年龄之前忽略未计划的 Pod。 默认值为“0s”。 值必须是一个整数,后跟一个单位(以秒为单位,“m”表示分钟,“h”表示小时等)。 | 字符串 |
| ok-total-unready-count | 允许的未读节点数,而不考虑最大总未读百分比。 这必须是整数。 默认值是3。 | 字符串 |
| scale-down-delay-after-add | 纵向扩展后多长时间纵向缩减评估恢复。 默认值为“10m”。 值必须是后跟“m”的整数。 不支持除分钟(m)以外的时间单位。 | 字符串 |
| scale-down-delay-after-delete | 删除节点后多长时间纵向缩减评估恢复。 默认值为扫描间隔。 值必须是后跟“m”的整数。 不支持除分钟(m)以外的时间单位。 | 字符串 |
| scale-down-delay-after-failure | 纵向缩减失败后多长时间纵向缩减评估恢复。 默认值为“3m”。 值必须是后跟“m”的整数。 不支持除分钟(m)以外的时间单位。 | 字符串 |
| scale-down-unneeded-time | 节点在有资格缩减之前,应该不需要多长时间。 默认值为“10m”。 值必须是后跟“m”的整数。 不支持除分钟(m)以外的时间单位。 | 字符串 |
| scale-down-unready-time | 未就绪的节点在符合缩减条件之前应不需要多长时间。 默认值为“20m”。 值必须是后跟“m”的整数。 不支持除分钟(m)以外的时间单位。 | 字符串 |
| scale-down-utilization-threshold | 节点利用率级别(定义为请求的资源之和除以容量)后,可以考虑节点进行缩减。 默认值为“0.5”。 | 字符串 |
| scan-interval | 重新评估群集以纵向扩展或缩减的频率。 默认值为“10”。 值必须是整数秒数。 | 字符串 |
| 带本地节点的跳storage | 如果集群自动扩展器会跳过带有本地storage的节点,比如EmptyDir或HostPath。 默认值为 true。 | 字符串 |
| skip-nodes-with-system-pods | 如果集群自动扩缩器会跳过从 kube-system 中删除带有 Pod 的节点(DaemonSet 或镜像 Pod 除外)。 默认值为 true。 | 字符串 |
ManagedClusterPropertiesIdentityProfile
| Name | Description | Value |
|---|
ManagedClusterSecurityProfile
| Name | Description | Value |
|---|---|---|
| azureKeyVaultKms | Azure 密钥保管库 密钥管理服务安全配置文件的设置。 | AzureKeyVaultKms |
| customCATrustCertificates | 最多 10 个 base64 编码 CA 的列表,该 CA 将添加到群集中所有节点上的信任存储中。 更多信息请参见自定义CA信任证书。 | any[] |
| defender | Microsoft Defender 关于安全配置文件的设置。 | ManagedClusterSecurityProfileDefender |
| imageCleaner | 安全配置文件的图像清理器设置。 | ManagedClusterSecurityProfileImageCleaner |
| imageIntegrity | 图像完整性是一项与 Azure Policy 配合使用的功能,用于通过签名验证图像完整性。 除非应用 Azure Policy 强制执行镜像签名,否则这不会有任何影响。 了解如何 https://aka.ms/aks/image-integrity 通过策略使用此功能。 | ManagedClusterSecurityProfileImageIntegrity |
| kubernetesResourceObjectEncryptionProfile | 对 Kubernetes 资源对象进行静态加密。 有关这方面的更多信息,请访问 https://aka.ms/aks/kubernetesResourceObjectEncryption | KubernetesResourceObjectEncryptionProfile |
| nodeRestriction | 节点限制设置 安全配置文件。 | ManagedClusterSecurityProfileNodeRestriction |
| serviceAccountImagePullProfile | 定义基于服务账户的图片拉取设置。 | ServiceAccountImagePullProfile |
| workloadIdentity | 安全配置文件的工作负荷标识设置。 工作负载身份使 Kubernetes 应用能够通过 Azure AD 安全地access Azure云资源。 有关详细信息,请参阅 https://aka.ms/aks/wi。 | ManagedClusterSecurityProfileWorkloadIdentity |
ManagedClusterSecurityProfileDefender
| Name | Description | Value |
|---|---|---|
| logAnalyticsWorkspaceResourceId | 与 Microsoft Defender 关联的日志分析工作区资源 ID。 启用 Microsoft Defender 时,该字段为必填且必须是有效的工作空间资源 ID。 禁用 Microsoft Defender 时,保持字段空白。 | 字符串 |
| securityGating | Microsoft Defender 关于安全门控的设置。 这验证了基于Defender for Containers安全发现的容器映像部署资格。 通过使用准入控制器,它会审计或阻止不符合安全标准的镜像部署。 有关详细信息,请参阅 https://aka.ms/KubernetesDefenderAuditRule。 | ManagedClusterSecurityProfileDefenderSecurityGating |
| securityMonitoring | Microsoft Defender 威胁检测,用于安全配置文件的云设置。 | ManagedClusterSecurityProfileDefenderSecurityMonitoring |
ManagedClusterSecurityProfileDefenderSecurityGating
| Name | Description | Value |
|---|---|---|
| allowSecretAccess | 仅在注册表访问通过秘密身份而非托管身份授予时使用。 设置是否授予Defender门控代理访问集群机密以从注册库拉取图像的权限。 如果秘密访问被拒绝且注册表要求拉取密钥,插件将不会进行镜像验证。 默认值为 false。 | bool |
| enabled | 是否启用 Defender 安全检查。 启用后,门控功能会扫描容器镜像,并审计或阻止不符合配置安全规则安全标准的镜像部署。 有关详细信息,请参阅 https://aka.ms/KubernetesDefenderAuditRule。 | bool |
| 身份 | 准入控制员用来从注册库拉取安全工件的身份列表。 这些标识与群集用于拉取容器映像的标识相同。 有关配置该身份的更多信息,请参见 /azure/defender-for-cloud/gated-deployment-infrastructure-as-code。 | 管理集群安全配置文件防御者安全门关身份[] |
ManagedClusterSecurityProfileDefenderSecurityGatingIdentity
| Name | Description | Value |
|---|---|---|
| azureContainerRegistry | 将为其使用标识的容器注册表;此处指定的标识应附加联合标识凭据。 | 字符串 |
| 标识 | 用于access注册表的身份对象 | UserAssignedIdentity |
ManagedClusterSecurityProfileDefenderSecurityMonitoring
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 Defender 威胁检测 | bool |
ManagedClusterSecurityProfileImageCleaner
| Name | Description | Value |
|---|---|---|
| enabled | 是否在 AKS 群集上启用映像清理器。 | bool |
| intervalHours | 图像清理器扫描间隔(以小时为单位)。 | int |
ManagedClusterSecurityProfileImageIntegrity
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用映像完整性。 默认值为 false。 | bool |
ManagedClusterSecurityProfileNodeRestriction
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用节点限制 | bool |
ManagedClusterSecurityProfileWorkloadIdentity
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用工作负荷标识。 | bool |
ManagedClusterServicePrincipalProfile
| Name | Description | Value |
|---|---|---|
| clientId | 服务主体的 ID。 | string (必需) |
| 机密 | 以纯文本形式与服务主体关联的机密密码。 | string Constraints: 敏感值。 以安全参数的形式传入。 |
ManagedClusterSKU
| Name | Description | Value |
|---|---|---|
| name | 托管群集 SKU 的名称。 | 'Automatic' 'Base' |
| 分层 | 托管群集 SKU 的层。 如果未指定,则默认值为“Free”。 详情请参见AKS定价层级。 | 'Free' 'Premium' 'Standard' |
ManagedClusterStaticEgressGatewayProfile
| Name | Description | Value |
|---|---|---|
| enabled | 启用 Static Egress Gateway 插件。 指示是否启用静态出口网关加载项。 | bool |
ManagedClusterStatus
| Name | Description | Value |
|---|
ManagedClusterStorageProfile
| Name | Description | Value |
|---|---|---|
| blobCSIDriver | AzureBlob CSI 驱动对 storage 配置文件的设置。 | ManagedClusterStorageProfileBlobCSIDriver |
| diskCSIDriver | AzureDisk CSI 驱动对 storage 配置文件的设置。 | ManagedClusterStorageProfileDiskCSIDriver |
| fileCSIDriver | AzureFile CSI 驱动对 storage 配置文件的设置。 | ManagedClusterStorageProfileFileCSIDriver |
| snapshotController | storage配置文件的快照控制器设置。 | ManagedClusterStorageProfileSnapshotController |
ManagedClusterStorageProfileBlobCSIDriver
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 AzureBlob CSI 驱动程序。 默认值为 false。 | bool |
ManagedClusterStorageProfileDiskCSIDriver
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 AzureDisk CSI 驱动程序。 默认值为真。 | bool |
| 快速联结脱离 | 快速连接 AzureDisk CSI 驱动的分离设置。 快速连接分离通过绕过ARM/CRP控制平面瓶颈,实现更快速、更高规模的Azure磁盘附加和分离操作,适用于有状态的AKS工作负载。 有关详细信息,请参阅 https://aka.ms/aks/qad。 | ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach |
ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 AzureDisk CSI 驱动的快速附件分离功能。 默认值为 false。 | bool |
ManagedClusterStorageProfileFileCSIDriver
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 AzureFile CSI 驱动程序。 默认值为真。 | bool |
ManagedClusterStorageProfileSnapshotController
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用快照控制器。 默认值为真。 | bool |
ManagedClusterWebAppRoutingGatewayAPIImplementations
| Name | Description | Value |
|---|---|---|
| appRoutingIstio | 配置是通过Gateway API和应用路由使用无侧车的Istio控制平面进行托管入口。 关于通过Gateway API使用Istio进行入口的信息,请参见 https://aka.ms/gateway-on-istio 相关信息。 | ManagedClusterAppRoutingIstio |
ManagedClusterWindowsProfile
| Name | Description | Value |
|---|---|---|
| adminPassword | 指定管理员帐户的密码。 最小长度: 8 个字符 最大长度: 123 个字符 复杂性要求:需要满足以下 4 个条件中的 3 个 字符数较低 具有大写字符 包含数字 具有特殊字符(正则表达式匹配 [\W_]) 不允许的值:“abc@123”、“P@$$w 0rd”、“P@ssw0rd”、“P@ssword123”、“Pa$$word”、“pass@word1”、“Password!”、“Password1”、“Password22”、“iloveyou!” |
string Constraints: 敏感值。 以安全参数的形式传入。 |
| adminUsername | 指定管理员帐户的名称。 限制: 不能以“.” 结尾。 不允许的值:“administrator”、“admin”、“user”、“user1”、“test”、“user2”、“test1”、“user3”、“admin1”、“1”, “123”、“a”、“actuser”、“adm”、“admin2”、“aspnet”、“backup”、“console”、“david”、“guest”、“john”、“owner”、“root”、“server”、“sql”、“support”、“support_388945a0”、“sys”、“test2”、“test3”、“user4”、“user5”。 最小长度: 1 个字符 最大长度: 20 个字符 |
string (必需) |
| enableCSIProxy | 是否启用 CSI 代理。 有关CSI代理的更多细节,请参见CSI代理 GitHub repo。 | bool |
| gmsaProfile | 托管群集中的 Windows gMSA 配置文件。 | WindowsGmsaProfile |
| licenseType | 用于 Windows VM 的许可证类型。 详情请参见 Azure 混合用户优势。 | 'None' 'Windows_Server' |
ManagedClusterWorkloadAutoScalerProfile
| Name | Description | Value |
|---|---|---|
| keda | KEDA(Kubernetes 事件驱动的自动缩放)设置,用于工作负荷自动缩放程序配置文件。 | ManagedClusterWorkloadAutoScalerProfileKeda |
| verticalPodAutoscaler | 工作负荷自动缩放程序配置文件的 VPA(垂直 Pod 自动缩放程序)设置。 | ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler |
ManagedClusterWorkloadAutoScalerProfileKeda
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 KEDA。 | bool (必需) |
ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler
| Name | Description | Value |
|---|---|---|
| addonAutoscaling | 是否启用 VPA 加载项并将其配置为缩放 AKS 管理的加载项。 | 'Disabled' 'Enabled' |
| enabled | 是否启用 VPA。 默认值为 false。 | bool (必需) |
ManagedServiceIdentityUserAssignedIdentitiesValue
| Name | Description | Value |
|---|
ManualScaleProfile
| Name | Description | Value |
|---|---|---|
| count | 节点数。 | int |
| size | AKS 在创建和缩放时将使用的 VM 大小,例如“Standard_E4s_v3”、“Standard_E16s_v3”或“Standard_D16s_v5”。 | 字符串 |
节点破坏配置文件
| Name | Description | Value |
|---|---|---|
| nodeDisruptionPolicy | 关于何时允许某些需要节点重映像和触发重新部署的操作的策略配置。 例如,一些操作,比如更新 .properties。在现有托管集群上,ManagedClusterSecurityProfile.customCATrustCertificates 字段,触发节点的滚动更新。 该设置允许控制何时接受此类更新。 默认是“允许”。 有关涵盖行动的完整列表请参见 aka.ms/aks/nodedisruptionpolicy“。 | “允许” “允许维护窗口” “Block” |
NvidiaGPUProfile
| Name | Description | Value |
|---|---|---|
| 驾驶模式 | NVIDIA GPU 资源分配模式。 DevicePlugin 安装了 NVIDIA Kubernetes 设备插件。 DRA安装了NVIDIA DRA驱动。 |
“设备插件” “DRA” |
| 管理模式 | 托管GPU体验会在GPU驱动之上安装额外组件,比如数据中心GPU管理器(DCGM)指标用于监控。 想了解更多安装内容,请查看 aka.ms/aks/managed-gpu。 | 'Managed' 'Unmanaged' |
| migProfiles | 分配给每个支持的 NVIDIA GPU 的 MIG(多实例 GPU)分区配置文件的顺序列表。 当 migStrategy 时 Single,必须指定一个配置文件。 当 migStrategy 时 Mixed,可以指定一个或多个配置文件,并根据代理池 GPU 虚拟机大小的 MIG 几何结构进行验证。 同一值可能多次出现以请求多个相同大小的分区。 该字段与顶层 gpuInstanceProfile 属性互斥。 有关详细信息,请参阅 https://aka.ms/aks/managed-gpu。 |
包含任一项的字符串数组: 'MIG1g' 'MIG2g' 'MIG3g' 'MIG4g' 'MIG7g' |
| migStrategy | 设定用于托管MIG支持的MIG(多实例GPU)策略。 想了解更多不同策略的信息,请访问 aka.ms/aks/managed-gpu。 未指定时,默认为无。 | “Mixed” 'None' 'Single' |
PortRange
| Name | Description | Value |
|---|---|---|
| portEnd | 范围中包含的最大端口。 它的范围应从 1 到 65535,并且大于或等于 portStart。 | int Constraints: 最小值 = 1 最大值 = 65535 |
| portStart | 范围中包含的最小端口。 它的范围应从 1 到 65535,并且小于或等于 portEnd。 | int Constraints: 最小值 = 1 最大值 = 65535 |
| 协议 | 端口的网络协议。 | 'TCP' 'UDP' |
PowerState
| Name | Description | Value |
|---|---|---|
| 代码 | 指示群集是正在运行还是已停止 | 'Running' 'Stopped' |
PreparedImageSpecificationProfile
| Name | Description | Value |
|---|---|---|
| preparedImageSpecificationId | 准备好的图像规范资源的资源ID。 这可以包括一个版本。 省略该版本将使用最新版本的预备镜像规范。 | 字符串 |
PrivateLinkResource
| Name | Description | Value |
|---|---|---|
| groupId | 资源的组 ID。 | 字符串 |
| id | private link资源的ID。 | 字符串 |
| name | private link资源的名称。 详情请参见 命名规则 。 | 字符串 |
| requiredMembers | 资源的 RequiredMembers | string[] |
| 类型 | 资源类型。 | 字符串 |
ResourceReference
| Name | Description | Value |
|---|---|---|
| id | 完全合格的Azure资源ID。 | 字符串 |
ScaleProfile
| Name | Description | Value |
|---|---|---|
| 自动缩放 | 有关如何在预定义大小范围内自动缩放 VirtualMachines 代理池的规范。 每个配置文件针对特定的虚拟机SKU,并独立评估。 配置文件间的缩放决策由集群自动缩放扩展器控制, 可通过 ManagedCluster.properties.autoScalerProfile.expander配置。 |
AutoScaleProfile[] |
| manual | 有关如何将 VirtualMachines 代理池缩放为固定大小的规范。 | ManualScaleProfile[] |
SchedulerInstanceProfile
| Name | Description | Value |
|---|---|---|
| schedulerConfigMode | 配置模式将由 AKS 管理的调度器使用。 | “Default” 'ManagedByCRD' |
SchedulerProfile
| Name | Description | Value |
|---|---|---|
| Upstream | 带有与上游变体 kube 调度器相关设置的配置文件(https://github.com/kubernetes/kubernetes/tree/master/pkg/scheduler)。 | SchedulerInstanceProfile |
ServiceAccountImagePullProfile
| Name | Description | Value |
|---|---|---|
| defaultManagedIdentityId | 可选。 用于集群层拉取图像的默认管理身份资源ID。 配置后,如果 Pod 的服务账户没有明确指定拉取图片的身份,则使用该身份。 如果未配置且服务账户层面未指定身份,图片将通过匿名认证被拉取。 | 字符串 |
| enabled | 指示是否启用基于服务账户的映像拉取,此时需要身份绑定才能使用托管身份进行认证。 有关详细信息,请参阅https://aka.ms/aks/identity-binding-docs。 | bool |
ServiceMeshProfile
| Name | Description | Value |
|---|---|---|
| istio | Istio 服务网格配置。 | IstioServiceMesh |
| mode | 服务网格的模式。 | 'Disabled' 'Istio'(必填) |
软驱逐宽限期
| Name | Description | Value |
|---|---|---|
| 内存可用 | 内存可用的软驱逐信号宽限期,以 Go 风格的持续时间字符串表示(例如 '30s', '1m30s')。 支持的单位为“ns”、“us”、“ms”、“s”、“m”和“h”。 必须大于或等于“30”。 默认是“30多”。 | 字符串 |
| nodeFsAvailable | nodeFsAvailable 软驱逐信号的宽限期,以 Go 风格的持续时间字符串表示(例如 '30s', '1m30s')。 支持的单位为“ns”、“us”、“ms”、“s”、“m”和“h”。 必须大于或等于“30”。 默认是“2m”。 | 字符串 |
| nodeFsInodesFree(节点自由) | nodeFsInodesFree 软驱逐信号的宽限期,以 Go 风格的持续时间字符串表示(例如 '30s', '1m30s')。 支持的单位为“ns”、“us”、“ms”、“s”、“m”和“h”。 必须大于或等于“30”。 默认是“2m”。 | 字符串 |
软驱逐阈值
| Name | Description | Value |
|---|---|---|
| 内存可用 | 软舱被驱逐的可用内存阈值。 接受绝对值(例如“500英里”)或百分比值(例如“5%”)。 绝对最低距离为100英里;最低百分比是2%。 默认采用基于容量的阶梯:=8GiB节点为500Mi,16GiB <为750Mi,=32GiB为 >1024Mi(1Gi)。 还必须大于有效 hardEvictionThreshold.memoryAvailable。 | 字符串 |
| nodeFsAvailable | 软荚被驱逐的可用节点文件系统空间阈值。 接受绝对值(例如“1Gi”)或百分比值(例如“10%”)。 默认是“12%”。 必须大于或等于10% 且大于有效hardEvictionThreshold.nodeFsAvailable。 | 字符串 |
| nodeFsInodesFree(节点自由) | 节点文件系统中可用inode的阈值低于该阈值触发软荚驱逐。 接受绝对inode计数(例如“100000”)或百分比值(例如“5%”)。 默认是“7%”。 百分比值必须大于或等于5% 且大于有效hardEvictionThreshold.nodeFsInodesFree。 | 字符串 |
SysctlConfig
| Name | Description | Value |
|---|---|---|
| fsAioMaxNr | Sysctl 设置 fs.aio-max-nr。 | int |
| fsFileMax | Sysctl 设置 fs.file-max。 | int |
| fsInotifyMaxUserWatches | Sysctl 设置 fs.inotify.max_user_watches。 | int |
| fsNrOpen | Sysctl 设置fs.nr_open。 | int |
| kernelThreadsMax | Sysctl 设置 kernel.threads-max。 | int |
| netCoreNetdevMaxBacklog | Sysctl 设置net.core.netdev_max_backlog。 | int |
| netCoreOptmemMax | Sysctl 设置net.core.optmem_max。 | int |
| netCoreRmemDefault | Sysctl 设置net.core.rmem_default。 | int |
| netCoreRmemMax | Sysctl 设置net.core.rmem_max。 | int |
| netCoreSomaxconn | Sysctl 设置 net.core.somaxconn。 | int |
| netCoreWmemDefault | Sysctl 设置net.core.wmem_default。 | int |
| netCoreWmemMax | Sysctl 设置net.core.wmem_max。 | int |
| netIpv4IpLocalPortRange | Sysctl 设置net.ipv4.ip_local_port_range。 | 字符串 |
| netIpv4NeighDefaultGcThresh1 | Sysctl 设置net.ipv4.neigh.default.gc_thresh1。 | int |
| netIpv4NeighDefaultGcThresh2 | Sysctl 设置net.ipv4.neigh.default.gc_thresh2。 | int |
| netIpv4NeighDefaultGcThresh3 | Sysctl 设置net.ipv4.neigh.default.gc_thresh3。 | int |
| netIpv4TcpFinTimeout | Sysctl 设置net.ipv4.tcp_fin_timeout。 | int |
| netIpv4TcpkeepaliveIntvl | Sysctl 设置net.ipv4.tcp_keepalive_intvl。 | int Constraints: 最小值 = 10 最大值 = 90 |
| netIpv4TcpKeepaliveProbes | Sysctl 设置net.ipv4.tcp_keepalive_probes。 | int |
| netIpv4TcpKeepaliveTime | Sysctl 设置net.ipv4.tcp_keepalive_time。 | int |
| netIpv4TcpMaxSynBacklog | Sysctl 设置net.ipv4.tcp_max_syn_backlog。 | int |
| netIpv4TcpMaxTwBuckets | Sysctl 设置net.ipv4.tcp_max_tw_buckets。 | int |
| netIpv4TcpTwReuse | Sysctl 设置net.ipv4.tcp_tw_reuse。 | bool |
| netNetfilterNfConntrackBuckets | Sysctl 设置net.netfilter.nf_conntrack_buckets。 | int Constraints: 最小值 = 65536 最大值 = 524288 |
| netNetfilterNfConntrackMax | Sysctl 设置net.netfilter.nf_conntrack_max。 | int Constraints: 最小值 = 131072 最大值 = 2097152 |
| vmMaxMapCount | Sysctl 设置 vm.max_map_count。 | int |
| vmSwappiness | Sysctl 设置 vm.swappiness。 | int |
| vmVfsCachePressure | Sysctl 设置vm.vfs_cache_pressure。 | int |
TrackedResourceTags
| Name | Description | Value |
|---|
升级门设置
| Name | Description | Value |
|---|---|---|
| enabled | 升级门禁是否启用了。 当未设置时,默认为 false ,除非在新创建的集群代理池中启用升级门禁时,默认为 true。 当 true时,对相应范围内的升级激活了升级门槛健康检查。 将此 true 设置为集群范围,可以实现整个集群的门禁,包括所有代理池升级。 当集群范围未设置或 false时,代理池可以通过将其设置为 true独立选择加入。 当集群范围为 true时,代理池无法将其设置为 false。 强制升级(overrideSettings.forceUpgrade)覆盖门:在覆盖窗口激活时,升级跳过健康信号验证并继续。 |
bool |
UpgradeOverrideSettings
| Name | Description | Value |
|---|---|---|
| forceUpgrade | 是否强制升级群集。 请注意,此选项指示升级作绕过升级保护,例如检查已弃用的 API 使用情况。 仅谨慎启用此选项。 | bool |
| until | 直到重写生效为止。 请注意,这仅与升级的开始时间匹配,即使升级继续进行时 until 过期,升级的有效性也不会更改。 默认情况下不设置此字段。 必须设置重写才能生效。 |
字符串 |
UserAssignedIdentity
| Name | Description | Value |
|---|---|---|
| clientId | 用户分配标识的客户端 ID。 | 字符串 |
| objectId | 用户分配标识的对象 ID。 | 字符串 |
| resourceId | 用户分配标识的资源 ID。 | 字符串 |
VirtualMachineNodes
| Name | Description | Value |
|---|---|---|
| count | 节点数。 | int |
| size | 用于托管此节点组的代理的 VM 大小。 | 字符串 |
VirtualMachinesProfile
| Name | Description | Value |
|---|---|---|
| 缩放 | 有关如何缩放 VirtualMachines 代理池的规范。 | ScaleProfile |
WindowsGmsaProfile
| Name | Description | Value |
|---|---|---|
| dnsServer | 指定 Windows gMSA 的 DNS 服务器。 如果在用于创建托管群集的 vnet 中配置了 DNS 服务器,则将其设置为空。 |
字符串 |
| enabled | 是否启用 Windows gMSA。 指定是否在托管群集中启用 Windows gMSA。 | bool |
| rootDomainName | 指定 Windows gMSA 的根域名。 如果在用于创建托管群集的 vnet 中配置了 DNS 服务器,则将其设置为空。 |
字符串 |
ARM 模板资源定义
可以使用目标作部署 managedClusters 资源类型:
用法示例
Azure 快速入门模板
以下Azure快速启动模板部署了这种资源类型。
| Template | Description |
|---|---|
|
AKS集群,带有NAT网关和Application Gateway |
本示例展示了如何部署带有NAT网关用于出站连接和使用Application Gateway进行入站连接的AKS集群。 |
|
AKS集群,配备Application Gateway入口控制器 |
本示例展示了如何部署包含 Application Gateway、Application Gateway Ingress Controller、Azure 容器注册表、Log Analytics 和 密钥保管库 的 AKS 集群 |
|
Azure 集装箱服务(AKS) |
Deploying a managed cluster with Azure Container Service (AKS) using Azure Linux container hosts |
|
Azure 集装箱服务(AKS) |
Deploy a managed cluster with Azure Container Service (AKS) |
| Deploy a managed cluster with Azure Container Service (AKS) with Helm | |
|
Azure Kubernetes Service (AKS) |
Deploying a managed cluster with Azure Kubernetes Service (AKS) using Azure Linux with OS Guard |
|
Azure Kubernetes Service (AKS) |
Deploys a managed Kubernetes cluster through Azure Kubernetes Service (AKS) |
|
Azure Kubernetes Service (AKS) with Azure Container Linux |
Deploying a managed cluster with Azure Kubernetes Service (AKS) using Azure Container Linux |
|
Azure 机器学习端到端安全设置 |
这套 Bicep 模板演示了如何在安全环境中端到端地设置 Azure 机器学习。 此参考实现包括工作区、计算群集、计算实例和附加的专用 AKS 群集。 |
|
Azure 机器学习端到端安全设置(遗留) |
这套 Bicep 模板演示了如何在安全环境中端到端地设置 Azure 机器学习。 此参考实现包括工作区、计算群集、计算实例和附加的专用 AKS 群集。 |
|
CI/CD,使用 Jenkins 在 Azure 容器服务(AKS) |
容器使你可以轻松地持续生成和部署应用程序。 通过在 Azure Container Service 中使用 Kubernetes 编排这些容器的部署,你可以实现可复制、易于管理的容器集群。 通过设置持续生成来生成容器映像和业务流程,可以提高部署的速度和可靠性。 |
|
Create a private AKS Cluster |
本示例展示了如何在virtual network中创建一个私有AKS集群,同时使用跳板虚拟机。 |
| 此示例演示如何使用公共 DNS 区域部署专用 AKS 群集。 | |
| 这将创建一个 Azure grafana、AKS,并在 Azure Kubernetes Service(AKS)集群上安装 Prometheus,这是一个开源的监控和警报工具包。 然后你用 Azure 托管 Grafana 的私有终端连接到这个 Prometheus 服务器,并在 Grafana 仪表盘中显示 Prometheus 数据 | |
|
Deploy a managed Kubernetes Cluster (AKS) |
该ARM模板演示了将带有先进网络功能的AKS实例部署到现有virtual network中。 此外,所选的服务主体将针对包含 AKS 群集的子网分配网络参与者角色。 |
|
部署一个托管的Kubernetes 集群,使用AAD (AKS) |
该ARM模板演示了将带有先进网络功能的AKS实例部署到现有virtual network和Azure AD整数中。 此外,所选的服务主体将针对包含 AKS 群集的子网分配网络参与者角色。 |
| 该模板允许您部署一个符合企业标准的 AKS 集群,并可附加到 Azure ML 上 | |
|
min.io Azure 网关 |
完全私有的 min.io Azure Gateway 部署,提供符合 S3 标准的 storage API,由 blob storage 支持 |
资源格式
若要创建 Microsoft.ContainerService/managedClusters 资源,请将以下 JSON 添加到模板。
{
"type": "Microsoft.ContainerService/managedClusters",
"apiVersion": "2026-08-02-preview",
"name": "string",
"extendedLocation": {
"name": "string",
"type": "string"
},
"identity": {
"delegatedResources": {
"{customized property}": {
"location": "string",
"referralResource": "string",
"resourceId": "string",
"tenantId": "string"
}
},
"type": "string",
"userAssignedIdentities": {
"{customized property}": {
}
}
},
"kind": "string",
"location": "string",
"properties": {
"aadProfile": {
"adminGroupObjectIDs": [ "string" ],
"clientAppID": "string",
"enableAzureRBAC": "bool",
"managed": "bool",
"serverAppID": "string",
"serverAppSecret": "string",
"tenantID": "string"
},
"addonProfiles": {
"{customized property}": {
"config": {
"{customized property}": "string"
},
"enabled": "bool"
}
},
"agentPoolProfiles": [
{
"artifactStreamingProfile": {
"enabled": "bool"
},
"availabilityZones": [ "string" ],
"capacityReservationGroupID": "string",
"count": "int",
"creationData": {
"sourceResourceId": "string"
},
"enableAutoScaling": "bool",
"enableEncryptionAtHost": "bool",
"enableFIPS": "bool",
"enableNodePublicIP": "bool",
"enableOSDiskFullCaching": "bool",
"enableUltraSSD": "bool",
"gatewayProfile": {
"publicIPPrefixSize": "int"
},
"gpuInstanceProfile": "string",
"gpuProfile": {
"driver": "string",
"driverType": "string",
"nvidia": {
"driverMode": "string",
"managementMode": "string",
"migProfiles": [ "string" ],
"migStrategy": "string"
}
},
"hostGroupID": "string",
"kubeletConfig": {
"allowedUnsafeSysctls": [ "string" ],
"containerLogMaxFiles": "int",
"containerLogMaxSizeMB": "int",
"cpuCfsQuota": "bool",
"cpuCfsQuotaPeriod": "string",
"cpuManagerPolicy": "string",
"evictionMaxPodGracePeriodInSeconds": "int",
"failSwapOn": "bool",
"hardEvictionThreshold": {
"memoryAvailable": "string",
"nodeFsAvailable": "string",
"nodeFsInodesFree": "string"
},
"imageGcHighThreshold": "int",
"imageGcLowThreshold": "int",
"kubeReserved": {
"cpuMillicores": "int",
"memoryMB": "int"
},
"podMaxPids": "int",
"seccompDefault": "string",
"softEvictionGracePeriod": {
"memoryAvailable": "string",
"nodeFsAvailable": "string",
"nodeFsInodesFree": "string"
},
"softEvictionThreshold": {
"memoryAvailable": "string",
"nodeFsAvailable": "string",
"nodeFsInodesFree": "string"
},
"topologyManagerPolicy": "string"
},
"kubeletDiskType": "string",
"linuxOSConfig": {
"swapFileSizeMB": "int",
"sysctls": {
"fsAioMaxNr": "int",
"fsFileMax": "int",
"fsInotifyMaxUserWatches": "int",
"fsNrOpen": "int",
"kernelThreadsMax": "int",
"netCoreNetdevMaxBacklog": "int",
"netCoreOptmemMax": "int",
"netCoreRmemDefault": "int",
"netCoreRmemMax": "int",
"netCoreSomaxconn": "int",
"netCoreWmemDefault": "int",
"netCoreWmemMax": "int",
"netIpv4IpLocalPortRange": "string",
"netIpv4NeighDefaultGcThresh1": "int",
"netIpv4NeighDefaultGcThresh2": "int",
"netIpv4NeighDefaultGcThresh3": "int",
"netIpv4TcpFinTimeout": "int",
"netIpv4TcpkeepaliveIntvl": "int",
"netIpv4TcpKeepaliveProbes": "int",
"netIpv4TcpKeepaliveTime": "int",
"netIpv4TcpMaxSynBacklog": "int",
"netIpv4TcpMaxTwBuckets": "int",
"netIpv4TcpTwReuse": "bool",
"netNetfilterNfConntrackBuckets": "int",
"netNetfilterNfConntrackMax": "int",
"vmMaxMapCount": "int",
"vmSwappiness": "int",
"vmVfsCachePressure": "int"
},
"transparentHugePageDefrag": "string",
"transparentHugePageEnabled": "string"
},
"localDNSProfile": {
"kubeDNSOverrides": {
"{customized property}": {
"cacheDurationInSeconds": "int",
"forwardDestination": "string",
"forwardPolicy": "string",
"maxConcurrent": "int",
"protocol": "string",
"queryLogging": "string",
"serveStale": "string",
"serveStaleDurationInSeconds": "int"
}
},
"mode": "string",
"vnetDNSOverrides": {
"{customized property}": {
"cacheDurationInSeconds": "int",
"forwardDestination": "string",
"forwardPolicy": "string",
"maxConcurrent": "int",
"protocol": "string",
"queryLogging": "string",
"serveStale": "string",
"serveStaleDurationInSeconds": "int"
}
}
},
"maxCount": "int",
"maxPods": "int",
"messageOfTheDay": "string",
"minCount": "int",
"mode": "string",
"name": "string",
"networkProfile": {
"allowedHostPorts": [
{
"portEnd": "int",
"portStart": "int",
"protocol": "string"
}
],
"applicationSecurityGroups": [ "string" ],
"dranet": {
"mode": "string"
},
"nodePublicIPPrefixIDs": [ "string" ],
"nodePublicIPTags": [
{
"ipTagType": "string",
"tag": "string"
}
],
"secondaryNetworkInterfaces": [
{
"enableAcceleratedNetworking": "bool",
"publicIPAddressConfiguration": {
"ipTags": [
{
"ipTagType": "string",
"tag": "string"
}
],
"publicIPAddressVersion": "string",
"publicIPPrefixID": "string"
},
"type": "string",
"vnetSubnetId": "string"
}
]
},
"nodeImageVersion": "string",
"nodeInitializationTaints": [ "string" ],
"nodeLabels": {
"{customized property}": "string"
},
"nodePublicIPPrefixID": "string",
"nodeTaints": [ "string" ],
"orchestratorVersion": "string",
"osDiskSizeGB": "int",
"osDiskType": "string",
"osSKU": "string",
"osType": "string",
"podIPAllocationMode": "string",
"podSubnetID": "string",
"powerState": {
"code": "string"
},
"preparedImageSpecificationProfile": {
"preparedImageSpecificationId": "string"
},
"proximityPlacementGroupID": "string",
"scaleDownMode": "string",
"scaleSetEvictionPolicy": "string",
"scaleSetPriority": "string",
"securityProfile": {
"enableSecureBoot": "bool",
"enableVTPM": "bool",
"sshAccess": "string"
},
"spotMaxPrice": "int",
"status": {
},
"tags": {
"{customized property}": "string"
},
"type": "string",
"upgradeSettings": {
"drainTimeoutInMinutes": "int",
"maxBlockedNodes": "string",
"maxSurge": "string",
"maxUnavailable": "string",
"nodeSoakDurationInMinutes": "int",
"undrainableNodeBehavior": "string",
"upgradeGateSettings": {
"enabled": "bool"
}
},
"upgradeSettingsBlueGreen": {
"batchSoakDurationInMinutes": "int",
"drainBatchSize": "string",
"drainTimeoutInMinutes": "int",
"finalSoakDurationInMinutes": "int"
},
"upgradeStrategy": "string",
"virtualMachineNodesStatus": [
{
"count": "int",
"size": "string"
}
],
"virtualMachinesProfile": {
"scale": {
"autoscale": [
{
"maxCount": "int",
"minCount": "int",
"size": "string"
}
],
"manual": [
{
"count": "int",
"size": "string"
}
]
}
},
"vmSize": "string",
"vnetSubnetID": "string",
"windowsProfile": {
"disableOutboundNat": "bool"
},
"workloadRuntime": "string"
}
],
"agentSandboxProfile": {
"enabled": "bool"
},
"aiToolchainOperatorProfile": {
"enabled": "bool"
},
"apiServerAccessProfile": {
"authorizedIPRanges": [ "string" ],
"disableRunCommand": "bool",
"enablePrivateCluster": "bool",
"enablePrivateClusterPublicFQDN": "bool",
"enableVnetIntegration": "bool",
"privateDNSZone": "string",
"subnetId": "string"
},
"autoScalerProfile": {
"balance-similar-node-groups": "string",
"daemonset-eviction-for-empty-nodes": "bool",
"daemonset-eviction-for-occupied-nodes": "bool",
"expander": "string",
"ignore-daemonsets-utilization": "bool",
"max-empty-bulk-delete": "string",
"max-graceful-termination-sec": "string",
"max-node-provision-time": "string",
"max-total-unready-percentage": "string",
"new-pod-scale-up-delay": "string",
"ok-total-unready-count": "string",
"scale-down-delay-after-add": "string",
"scale-down-delay-after-delete": "string",
"scale-down-delay-after-failure": "string",
"scale-down-unneeded-time": "string",
"scale-down-unready-time": "string",
"scale-down-utilization-threshold": "string",
"scan-interval": "string",
"skip-nodes-with-local-storage": "string",
"skip-nodes-with-system-pods": "string"
},
"autoUpgradeProfile": {
"nodeOSUpgradeChannel": "string",
"upgradeChannel": "string"
},
"azureMonitorProfile": {
"appMonitoring": {
"autoInstrumentation": {
"enabled": "bool"
},
"openTelemetryLogsAndTraces": {
"enabled": "bool",
"grpcPort": "int",
"httpPort": "int"
},
"openTelemetryMetrics": {
"enabled": "bool",
"grpcPort": "int",
"httpPort": "int"
}
},
"containerInsights": {
"containerNetworkLogs": "string",
"disablePrometheusMetricsScraping": "bool",
"enabled": "bool",
"logAnalyticsWorkspaceResourceId": "string",
"syslogPort": "int"
},
"metrics": {
"controlPlane": {
"enabled": "bool"
},
"enabled": "bool",
"kubeStateMetrics": {
"metricAnnotationsAllowList": "string",
"metricLabelsAllowlist": "string"
}
}
},
"bootstrapProfile": {
"artifactSource": "string",
"containerRegistryId": "string"
},
"controlPlaneScalingProfile": {
"scalingSize": "string"
},
"creationData": {
"sourceResourceId": "string"
},
"disableLocalAccounts": "bool",
"diskEncryptionSetID": "string",
"dnsPrefix": "string",
"enableFIPS": "bool",
"enableNamespaceResources": "bool",
"enableNodeHardening": "bool",
"enableRBAC": "bool",
"fqdnSubdomain": "string",
"healthMonitorProfile": {
"enableContinuousControlPlaneAndAddonMonitor": "bool",
"enableOnDemandMonitor": "bool"
},
"hostedSystemProfile": {
"enabled": "bool",
"nodeSubnetID": "string",
"systemNodeSubnetID": "string"
},
"httpProxyConfig": {
"enabled": "bool",
"httpProxy": "string",
"httpsProxy": "string",
"noProxy": [ "string" ],
"trustedCa": "string"
},
"identityProfile": {
"{customized property}": {
"clientId": "string",
"objectId": "string",
"resourceId": "string"
}
},
"ingressProfile": {
"applicationLoadBalancer": {
"enabled": "bool"
},
"gatewayAPI": {
"installation": "string"
},
"webAppRouting": {
"defaultDomain": {
"enabled": "bool"
},
"dnsZoneResourceIds": [ "string" ],
"enabled": "bool",
"gatewayAPIImplementations": {
"appRoutingIstio": {
"mode": "string"
}
},
"nginx": {
"defaultIngressControllerType": "string"
}
}
},
"kubernetesVersion": "string",
"linuxProfile": {
"adminUsername": "string",
"ssh": {
"publicKeys": [
{
"keyData": "string"
}
]
}
},
"metricsProfile": {
"costAnalysis": {
"enabled": "bool"
}
},
"networkProfile": {
"advancedNetworking": {
"enabled": "bool",
"observability": {
"enabled": "bool"
},
"performance": {
"accelerationMode": "string"
},
"security": {
"advancedNetworkPolicies": "string",
"enabled": "bool",
"transitEncryption": {
"type": "string"
}
}
},
"clusterAPIConnectivityProfile": {
"bastion": {
"enabled": "bool",
"publicIpAddressId": "string",
"scaleUnits": "int",
"sku": "string"
},
"cloudShell": {
"mode": "string",
"network": {
"relayNamespaceId": "string",
"subnetId": "string"
},
"storage": {
"fileShareName": "string",
"mode": "string",
"storageAccountId": "string"
}
}
},
"dnsServiceIP": "string",
"ipFamilies": [ "string" ],
"kubeProxyConfig": {
"enabled": "bool",
"ipvsConfig": {
"scheduler": "string",
"tcpFinTimeoutSeconds": "int",
"tcpTimeoutSeconds": "int",
"udpTimeoutSeconds": "int"
},
"mode": "string"
},
"loadBalancerProfile": {
"allocatedOutboundPorts": "int",
"backendPoolType": "string",
"clusterServiceLoadBalancerHealthProbeMode": "string",
"enableMultipleStandardLoadBalancers": "bool",
"idleTimeoutInMinutes": "int",
"managedOutboundIPs": {
"count": "int",
"countIPv6": "int"
},
"outboundIPPrefixes": {
"publicIPPrefixes": [
{
"id": "string"
}
]
},
"outboundIPs": {
"publicIPs": [
{
"id": "string"
}
]
}
},
"loadBalancerSku": "string",
"natGatewayId": "string",
"natGatewayProfile": {
"idleTimeoutInMinutes": "int",
"managedOutboundIPProfile": {
"count": "int",
"countIPv6": "int"
},
"outboundIPPrefixes": {
"publicIPPrefixes": [ "string" ]
},
"outboundIPs": {
"publicIPs": [ "string" ]
},
"sku": "string"
},
"networkDataplane": "string",
"networkMode": "string",
"networkPlugin": "string",
"networkPluginMode": "string",
"networkPolicy": "string",
"outboundType": "string",
"podCidr": "string",
"podCidrs": [ "string" ],
"podLinkLocalAccess": "string",
"serviceCidr": "string",
"serviceCidrs": [ "string" ],
"staticEgressGatewayProfile": {
"enabled": "bool"
}
},
"nodeDisruptionProfile": {
"nodeDisruptionPolicy": "string"
},
"nodeProvisioningProfile": {
"defaultNodePools": "string",
"mode": "string"
},
"nodeResourceGroup": "string",
"nodeResourceGroupProfile": {
"restrictionLevel": "string"
},
"oidcIssuerProfile": {
"enabled": "bool"
},
"podIdentityProfile": {
"allowNetworkPluginKubenet": "bool",
"enabled": "bool",
"userAssignedIdentities": [
{
"bindingSelector": "string",
"identity": {
"clientId": "string",
"objectId": "string",
"resourceId": "string"
},
"name": "string",
"namespace": "string"
}
],
"userAssignedIdentityExceptions": [
{
"name": "string",
"namespace": "string",
"podLabels": {
"{customized property}": "string"
}
}
]
},
"podSnapshotProfile": {
"enabled": "bool"
},
"privateLinkResources": [
{
"groupId": "string",
"id": "string",
"name": "string",
"requiredMembers": [ "string" ],
"type": "string"
}
],
"publicNetworkAccess": "string",
"schedulerProfile": {
"upstream": {
"schedulerConfigMode": "string"
}
},
"securityProfile": {
"azureKeyVaultKms": {
"enabled": "bool",
"keyId": "string",
"keyVaultNetworkAccess": "string",
"keyVaultResourceId": "string"
},
"customCATrustCertificates": [ {} ],
"defender": {
"logAnalyticsWorkspaceResourceId": "string",
"securityGating": {
"allowSecretAccess": "bool",
"enabled": "bool",
"identities": [
{
"azureContainerRegistry": "string",
"identity": {
"clientId": "string",
"objectId": "string",
"resourceId": "string"
}
}
]
},
"securityMonitoring": {
"enabled": "bool"
}
},
"imageCleaner": {
"enabled": "bool",
"intervalHours": "int"
},
"imageIntegrity": {
"enabled": "bool"
},
"kubernetesResourceObjectEncryptionProfile": {
"infrastructureEncryption": "string"
},
"nodeRestriction": {
"enabled": "bool"
},
"serviceAccountImagePullProfile": {
"defaultManagedIdentityId": "string",
"enabled": "bool"
},
"workloadIdentity": {
"enabled": "bool"
}
},
"serviceMeshProfile": {
"istio": {
"certificateAuthority": {
"plugin": {
"certChainObjectName": "string",
"certObjectName": "string",
"keyObjectName": "string",
"keyVaultId": "string",
"rootCertObjectName": "string"
}
},
"components": {
"egressGateways": [
{
"enabled": "bool",
"gatewayConfigurationName": "string",
"name": "string",
"namespace": "string"
}
],
"ingressGateways": [
{
"enabled": "bool",
"mode": "string"
}
],
"proxyRedirectionMechanism": "string"
},
"revisions": [ "string" ]
},
"mode": "string"
},
"servicePrincipalProfile": {
"clientId": "string",
"secret": "string"
},
"status": {
},
"storageProfile": {
"blobCSIDriver": {
"enabled": "bool"
},
"diskCSIDriver": {
"enabled": "bool",
"quickAttachDetach": {
"enabled": "bool"
}
},
"fileCSIDriver": {
"enabled": "bool"
},
"snapshotController": {
"enabled": "bool"
}
},
"supportPlan": "string",
"upgradeSettings": {
"overrideSettings": {
"forceUpgrade": "bool",
"until": "string"
},
"upgradeGateSettings": {
"enabled": "bool"
}
},
"windowsProfile": {
"adminPassword": "string",
"adminUsername": "string",
"enableCSIProxy": "bool",
"gmsaProfile": {
"dnsServer": "string",
"enabled": "bool",
"rootDomainName": "string"
},
"licenseType": "string"
},
"workloadAutoScalerProfile": {
"keda": {
"enabled": "bool"
},
"verticalPodAutoscaler": {
"addonAutoscaling": "string",
"enabled": "bool"
}
}
},
"sku": {
"name": "string",
"tier": "string"
},
"tags": {
"{customized property}": "string"
}
}
属性值
Microsoft.ContainerService/managedClusters
| Name | Description | Value |
|---|---|---|
| apiVersion | API 版本 | '2026-08-02-预览' |
| extendedLocation | 虚拟机的扩展位置。 | ExtendedLocation |
| 标识 | 托管群集的标识(如果已配置)。 | ManagedClusterIdentity |
| kind | 这主要用于在门户中为不同类型的公开不同的 UI 体验 | 字符串 |
| 位置 | 资源所在的地理位置 | string (必需) |
| name | 资源名称 | string Constraints: 最小长度 = 1 最大长度 = 63 模式 = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$ (必需) |
| properties | 托管群集的属性。 | ManagedClusterProperties |
| sku | 托管群集 SKU。 | ManagedClusterSKU |
| tags | 资源标记 | 标记名称和值的字典。 请参见模板中的标签 |
| 类型 | 资源类型 | 'Microsoft.ContainerService/managedClusters' |
AdvancedNetworking
| Name | Description | Value |
|---|---|---|
| enabled | 指示在 AKS 群集上启用可观测性和安全性的高级网络功能。 如果设置为 true,除非显式禁用,否则所有可观测性和安全功能都将设置为启用。 如果未指定,则默认值为 false。 | bool |
| 可观测性 | 可观测性配置文件,用于启用具有历史上下文的高级网络指标和流日志。 | AdvancedNetworkingObservability |
| 性能 | 配置文件以启用使用 Cilium 驱动的 Azure CNI 集群的性能增强功能。 | 高级网络性能 |
| 安全 | 用于在基于 cilium 的群集上启用安全功能的安全配置文件。 | AdvancedNetworkingSecurity |
AdvancedNetworkingObservability
| Name | Description | Value |
|---|---|---|
| enabled | 指示在群集上启用高级网络可观测性功能。 | bool |
高级网络性能
| Name | Description | Value |
|---|---|---|
| 加速模式 | 启用高级网络加速选项。 这允许用户使用 BPF 主机路由配置加速。 这只能通过 Cilium 数据平面启用。 如果未指定,则默认值为 None(无加速)。 可以在预先存在的集群上更改加速模式。 详见 https://aka.ms/acnsperformance 说明 | “BpfVeth” 'None' |
AdvancedNetworkingSecurity
| Name | Description | Value |
|---|---|---|
| advancedNetworkPolicies | 启用高级网络策略。 这允许用户配置第 7 层网络策略(FQDN、HTTP、Kafka)。 必须通过 Cilium 网络策略资源配置策略本身,请参阅 https://docs.cilium.io/en/latest/security/policy/index.html。 这只能在基于 cilium 的群集上启用。 如果未指定,则默认值为 FQDN(如果 security.enabled 设置为 true)。 | 'FQDN' 'L7' 'None' |
| enabled | 此功能允许用户基于 DNS(FQDN)名称配置网络策略。 只能在基于 cilium 的群集上启用它。 如果未指定,则默认值为 false。 | bool |
| transitEncryption | 基于 Cilium 的集群的加密配置。 启用后,Cilium 托管的 Pod 之间的所有流量在离开节点边界时都将被加密。 | AdvancedNetworkingSecurityTransitEncryption |
AdvancedNetworkingSecurityTransitEncryption
| Name | Description | Value |
|---|---|---|
| 类型 | 配置 Pod 到 Pod 加密。 这只能在基于 Cilium 的群集上启用。 如果未指定,则默认值为 None。 | 'mTLS' 'None' 'WireGuard' |
AgentPoolArtifactStreamingProfile
| Name | Description | Value |
|---|---|---|
| enabled | 项目流式处理通过按需映像加载加快节点上容器的冷启动速度。 若要使用此功能,容器映像还必须在 ACR 上启用项目流式处理。 如果未指定,则默认值为 false。 | bool |
AgentPoolBlueGreenUpgradeSettings
| Name | Description | Value |
|---|---|---|
| batchSoakDurationInMinutes | 清空一批节点后的浸泡持续时间,即在清空一批节点后等待的时间(以分钟为单位)再继续下一批。 如果未指定,则默认值为 15 分钟。 | int Constraints: 最小值 = 0 最大值 = 1440 |
| 排水批量大小 | 蓝绿升级期间要批量清空的节点数或百分比。 必须是非零数字。 这可以设置为整数(例如'5')或百分比(例如'50%')。 如果指定了百分比,则该百分比占初始升级作的蓝色节点总数的百分比。 对于百分比,小数节点向上舍入。 如果未指定,则默认值为 10%。 更多信息,包括最佳实践,请参见:/azure/aks/upgrade-cluster | 字符串 |
| drainTimeoutInMinutes | 节点的 drain 超时,即等待 Pod 逐出和每个节点正常终止的时间(以分钟为单位)。 此逐出等待时间遵循等待 Pod 中断预算。 如果超过此时间,升级将失败。 如果未指定,则默认值为 30 分钟。 | int Constraints: 最小值 = 1 最大值 = 1440 |
| finalSoak持续时间在分钟 | 节点池的浸泡持续时间,即在所有旧节点被清空后,在删除旧节点之前等待的时间(以分钟为单位)。 如果未指定,则默认值为 60 分钟。 仅适用于蓝绿升级策略。 | int Constraints: 最小值 = 0 最大值 = 10080 |
AgentPoolGatewayProfile
| Name | Description | Value |
|---|---|---|
| publicIPPrefixSize | 网关代理池为每个静态出口网关关联一个公共 IPPrefix,以提供公共出口。 用户应选择公共 IPPrefix 的大小。 代理池中的每个节点都分配有 IPPrefix 中的一个 IP。 因此,IPPrefix 大小充当网关代理池大小的上限。 由于 Azure 公共 IPPrefix 大小限制,有效值范围为 [28, 31](/31 = 2 个节点/IP,/30 = 4 个节点/IP,/29 = 8 个节点/IP,/28 = 16 个节点/IP)。 默认值为 31。 | int Constraints: 最小值 = 28 最大值 = 31 |
AgentPoolNetworkInterface
| Name | Description | Value |
|---|---|---|
| enableAcceleratedNetworking | 该次级网卡是否启用了加速网络。 如果省略,只有当代理池虚拟机 SKU 支持加速网络时,这个默认才会变为真。 如果验证在不支持的SKU或NIC配置上被启用,验证将失败。 | bool |
| publicIPAddress配置 | 这个次级网卡的公共IP配置。 仅当 type 为 Standard. 设置为 publicIPAddressVersion 为每个虚拟机配置一个实例级的公共 IP,然后可选地用 ipTags 或 publicIPPrefixID来塑造。 如果省略,则不会设置公共IP。 空闲超时不可配置。 有关详细信息,请参阅 https://aka.ms/aks/multi-nic |
AgentPoolNICPublicIPAddressConfiguration |
| 类型 | 虚拟机上要配置的网卡类型。 | “Dynamic” 'Standard' |
| vnetSubnetId | 将连接到次级网络接口的子网资源ID。 当 type 是 Standard必需的;必须是空字符串()""或当 type 时 Dynamic省略。 |
字符串 |
AgentPoolNetworkProfile
| Name | Description | Value |
|---|---|---|
| allowedHostPorts | 允许access的端口范围。 允许指定的范围重叠。 | PortRange[] |
| applicationSecurityGroups | 创建代理池时将关联的应用程序安全组的 ID。 | string[] |
| 德拉内特 | 代理池的DRANET设置。 | 德拉内特档案 |
| nodePublicIPPrefixIDs | 节点公共IP前缀的资源ID。 最多只能指定一个IPv4和一个IPv6前缀。 顺序无关紧要;RP通过引用资源的publicIPAddressVersion确定IP版本。 要求 enableNodePublicIP 在代理池上为真。 与顶层nodePublicIPPrefixID属性互斥。 节点池创建后不可变。 要更改前缀,请删除并重新创建节点池。 有关详细信息,请参阅 https://aka.ms/aks/ipv6-ilpip | string[] |
| nodePublicIPTags | 实例级公共 IP 的 IPTag。 | IPTag[] |
| 次级网络接口 | 代理池中每个虚拟机的二级网络接口配置。 每个条目都是一个模板:每个条目在每个虚拟机实例上配置一个物理网卡。 这些接口是在代理池创建时创建的,且是不可变的。 列表长度必须小于NIC容量减去代理池虚拟机大小的1(AKS管理主网卡)。 例如,Standard_D8a_v4虚拟机最多支持4个网卡,因此允许的最大次级接口数为3个。 对于混合 SKU 虚拟机池,有效容量为所有 SKU 的最小值:count(次级网络接口)+ 1 <= 最小(maxNIC)。 有关详细信息,请参阅 https://aka.ms/aks/multi-nic | 代理池网络接口[] |
AgentPoolNICPublicIPAddressConfiguration
| Name | Description | Value |
|---|---|---|
| ip标签 | IP标签,用于附加到该网卡分配的公共IP。 每个标签 ipTagType 必须是 FirstPartyUsage、 NetworkDomain或 RoutingPreference。 与 publicIPPrefixID 互斥。 |
IPTag[] |
| publicIPAddress版本 | 为该网卡配置的公共IP版本。 必需:其存在是实现公共IP配置的关键,因此空配置不分配任何内容。
IPv4 是唯一被接受的数值。 |
“IPv4”(必填) |
| publicIPPrefixID | 公共IP前缀的资源ID,用于提取该网卡的公共IP。 与 ipTags 互斥。 |
字符串 |
AgentPoolSecurityProfile
| Name | Description | Value |
|---|---|---|
| enableSecureBoot | 安全启动是受信任的启动的一项功能,可确保只有已签名的作系统和驱动程序才能启动。 有关详细信息,请参阅 aka.ms/aks/trustedlaunch。 如果未指定,则默认值为 false。 | bool |
| enableVTPM | vTPM 是一项受信任的启动功能,用于为节点上本地保留的密钥和度量配置专用安全保管库。 有关详细信息,请参阅 aka.ms/aks/trustedlaunch。 如果未指定,则默认值为 false。 | bool |
| sshAccess | 代理池的SSH access方法。 | 'Disabled' “EntraId” 'LocalUser' |
AgentPoolStatus
| Name | Description | Value |
|---|
AgentPoolUpgradeSettings
| Name | Description | Value |
|---|---|---|
| drainTimeoutInMinutes | 节点的耗尽超时。 在逐出 Pod 时等待的时间量(以分钟为单位),以及每个节点的正常终止时间。 此逐出等待时间遵循等待 Pod 中断预算。 如果超过此时间,升级将失败。 如果未指定,则默认值为 30 分钟。 | int Constraints: 最小值 = 1 最大值 = 1440 |
| maxBlockedNodes | 升级期间允许在升级期间在代理池中阻止的额外节点的最大数量或百分比为 Cordon。 这可以设置为整数(例如'5')或百分比(例如'50%')。 如果指定了百分比,则它是升级时代理池大小总数的百分比。 对于百分比,小数节点向上舍入。 如果未指定,则默认值为 maxSurge。 这必须始终大于或等于 maxSurge。 更多信息,包括最佳实践,请参见:/azure/aks/upgrade-cluster | 字符串 |
| maxSurge | 升级期间激增的最大节点数或百分比。 这可以设置为整数(例如'5')或百分比(例如'50%')。 如果指定了百分比,则它是升级时代理池大小总数的百分比。 对于百分比,小数节点向上舍入。 如果未指定,则默认值为 10%。 更多信息,包括最佳实践,请参见:/azure/aks/upgrade-cluster | 字符串 |
| maxUnavailable | 升级期间可同时不可用的最大节点数或百分比。 这可以设置为整数(例如'1')或百分比(例如'5%')。 如果指定了百分比,则它是升级时代理池大小总数的百分比。 对于百分比,小数节点向上舍入。 如果未指定,则默认值为 0。 更多信息,包括最佳实践,请参见:/azure/aks/upgrade-cluster | 字符串 |
| nodeSoakDurationInMinutes | 节点的 soak 持续时间。 清空节点后以及重新映像节点并转到下一个节点之前等待的时间(以分钟为单位)。 如果未指定,则默认值为 0 分钟。 | int Constraints: 最小值 = 0 最大值 = 30 |
| undrainableNodeBehavior | 定义升级期间不可透支节点的行为。 不透支节点的最常见原因是 Pod 中断预算(PDB),但其他问题(例如 Pod 终止宽限期超出剩余的每节点排空超时或 Pod 仍在运行状态)也可能导致无法执行的节点。 | 'Cordon' 'Schedule' |
| 升级门设置 | 关于该代理池升级门槛的设置。 健康信号是由 HealthSignal 集群中运行的监控组件发布的自定义资源。 当集群层 enabled 级未设置或 false时,该代理池可以独立选择加入。 当集群层enabled为 时,门控被继承,且将该代理池enabled设置为 被false拒绝;新创建的代理池中省略的值默认为 truetrue。 |
升级门设置 |
AgentPoolWindowsProfile
| Name | Description | Value |
|---|---|---|
| disableOutboundNat | 是否在 Windows 节点中禁用 OutboundNAT。 默认值为 false。 仅当群集 outboundType 为 NAT 网关且 Windows 代理池未启用节点公共 IP 时,才能禁用出站 NAT。 | bool |
AutoScaleProfile
| Name | Description | Value |
|---|---|---|
| maxCount | 指定大小的最大节点数。 | int |
| minCount | 指定大小的最小节点数。 | int |
| size | AKS 在创建和缩放时将使用的 VM 大小,例如“Standard_E4s_v3”、“Standard_E16s_v3”或“Standard_D16s_v5”。 | 字符串 |
AzureKeyVaultKms
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 Azure 密钥保管库 密钥管理服务。 默认值为 false。 | bool |
| keyId | Azure 密钥保管库 密钥的标识符。 欲了解更多信息,请参见 Azure 密钥保管库 密钥标识符。 当启用 Azure 密钥保管库 密钥管理服务时,该属性是必需的;当服务被禁用时,必须省略。 从API版本2026-07-01和2026-07-02-preview开始,版本化密钥标识符使用旧版KMS体验,而无版本密钥标识符使用新的KMS体验。 更多信息请参见 KMS数据加密概念。 | 字符串 |
| keyVaultNetworkAccess | key vault的网络access。 key vault的网络access。 可能的值为 Public 和 Private。
Public表示key vault允许所有网络的公共access。
Private 表示key vault关闭公共access并启用private link。 默认值为 Public。 |
'Private' 'Public' |
| keyVaultResourceId | key vault 的资源 ID。 keyVaultNetworkAccess Private时,此字段是必需的,并且必须是有效的资源 ID。 如果 keyVaultNetworkAccess 为 Public,请将字段留空。 |
字符串 |
堡垒简介
| Name | Description | Value |
|---|---|---|
| enabled | 指示是否启用了管理堡垒。 | bool |
| 公共 IpAddressId | 与托管堡垒关联的公共IP地址的资源ID。 在创建时提供时,托管堡垒会引用这个现有的公共IP地址,而不是新建一个。 所引用的公共IP地址必须与托管集群处于同一订阅和区域。 如果创建时未提供,AKS 会自动创建一个新的公共 IP 地址。 此字段无法更新。 创建后要更改 IP 地址,请禁用并重新启用新的公共 IP 地址的托管堡垒。 |
字符串 |
| scaleUnits | 管理堡垒的比例单位。 默认值为 2。 | int Constraints: 最小值 = 2 最大值 = 50 |
| sku | 管理堡垒的SKU。 仅支持标准和高级SKU。 不允许SKU降级。 要降级SKU,请先禁用并重新启用管理堡垒并使用新的SKU。 有关详细信息,请参阅 https://aka.ms/aks/BastionSKUs。 |
'Premium' 'Standard' |
CloudShellNetworkProfile
| Name | Description | Value |
|---|---|---|
| relayNamespaceID | Azure 中继 命名空间由 Cloud Shell 使用。 对于自定义网络,必须使用现有命名空间 带有 subnetId。 Grant the cluster identity Reader and the Azure Container Instance service principal Contributor 在命名空间上。 当Cloud Shell模式为自定义时,必须使用。 |
字符串 |
| subnetId | Cloud Shell 容器使用的专用 IPv4 子网。 对于自定义网络,该子网必须是 委派给 Microsoft。ContainerInstance/containerGroups,且为 /24 或更大。 赋予簇身份 包含虚拟网络的Network Contributor,并授予Azure Container Instance服务主体 该子网或其包含虚拟网络的网络贡献者。 当Cloud Shell模式为自定义时,必须使用。 |
字符串 |
CloudShell配置文件
| Name | Description | Value |
|---|---|---|
| mode | 无论Cloud Shell连接被禁用、使用AKS管理的网络资源,还是使用用户提供 建立网络资源。 创建时省略时默认为禁用。 更新时,省略保留了现有内容 模式。 将该属性设置为禁用会移除 AKS 创建的资源和连接伪影。 对于习俗 模式中,AKS 取消注册用户提供的资源,但不删除它们。 |
'Custom' 'Disabled' 'Managed' |
| 网络 | Cloud Shell 使用的网络资源。 在配置自定义网络时,用户必须提供 subnetId 和 relayNamespaceId。 在更新现有的自定义配置时,任一资源ID都可以是 独立更改;省略字段保持其现有值。 在自定义模式下,AKS返回用户提供的 价值观。 在托管模式下,AKS 会填充有效值。 用户可以省略管理值或重新提交值 GET返回时保持不变;不同的值被拒绝。 当模式被禁用时,必须省略该属性。 参见 https://aka.ms/aks/CloudShellConnect “自定义网络需求”。 |
CloudShellNetworkProfile |
| 存储 | 用于 Cloud Shell 文件持久化的存储资源。 在配置自定义存储时,用户 必须同时提供storageAccountId和fileShareName。 在更新现有的自定义配置时,以下 属性可以独立更改;省略字段保留其现有值。 自定义模式下,AKS回归 用户提供的值。 在托管模式下,AKS 会填充有效值。 用户可以省略管理值或 重新提交由GET返回的值不变;不同的值被拒绝。 当 模式为禁用。 参见 https://aka.ms/aks/CloudShellConnect “定制存储需求”。 |
CloudShellStorageProfile |
CloudShellStorageProfile
| Name | Description | Value |
|---|---|---|
| fileShareName | 用于Cloud Shell文件的文件共享。 自定义模式时必须使用。 | string Constraints: 最小长度 = 3 最大长度 = 63 图案 = ^[a-z0-9]+(?:-[a-z0-9]+)*$ |
| mode | 无论持久存储是被禁用的、由AKS管理,还是由用户提供。 当 在最初启用 Cloud Shell 时省略了。 更新时,省略模式保留了现有模式。 |
'Custom' 'Disabled' 'Managed' |
| storageAccountId | 用于Cloud Shell文件的存储账户。 对于自定义存储,授予集群身份 存储文件数据 SMB 共享贡献者在此现有存储账户上。 自定义模式时必须使用。 |
字符串 |
ClusterAPIConnectivityProfile
| Name | Description | Value |
|---|---|---|
| 堡垒 | Azure Bastion connectivity settings. 有关详细信息,请参阅 https://aka.ms/aks/BastionConnect。 |
堡垒简介 |
| 云壳 | Cloud Shell 连接设置。 有关详细信息,请参阅 https://aka.ms/aks/CloudShellConnect。 |
CloudShell配置文件 |
ClusterUpgradeSettings
| Name | Description | Value |
|---|---|---|
| overrideSettings | 替代的设置。 | UpgradeOverrideSettings |
| 升级门设置 | 在这个托管集群中升级门禁的设置。 健康信号是由 HealthSignal 集群中运行的监控组件发布的自定义资源。
enabled这里true设置为一个集群范围的选择加入,适用于该集群中所有代理池升级;代理池不能选择退出。 |
升级门设置 |
ContainerServiceLinuxProfile
| Name | Description | Value |
|---|---|---|
| adminUsername | 用于 Linux VM 的管理员用户名。 | string Constraints: 模式 = ^[A-Za-z][-A-Za-z0-9_]*$ (必需) |
| ssh | 运行在 Azure 上的基于 Linux 虚拟机的 SSH 配置。 | ContainerServiceSshConfiguration (必需) |
ContainerServiceNetworkProfile
| Name | Description | Value |
|---|---|---|
| advancedNetworking | 用于在群集上启用可观测性和安全功能套件的高级网络配置文件。 有关详细信息,请参阅 aka.ms/aksadvancednetworking。 | AdvancedNetworking |
| clusterAPIConnectivityProfile | 配置通过 Bastion 或 Cloud Shell 访问托管集群 API。 | ClusterAPIConnectivityProfile |
| dnsServiceIP | 分配给 Kubernetes DNS 服务的 IP 地址。 它必须位于 serviceCidr 中指定的 Kubernetes 服务地址范围内。 | string Constraints: 图案 = ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$ |
| ipFamilies | 用于指定群集可用的 IP 版本的 IP 系列。 IP 系列用于确定单堆栈或双堆栈群集。 对于单堆栈,预期值为 IPv4。 对于双堆栈,预期值为 IPv4 和 IPv6。 | 包含任一项的字符串数组: 'IPv4' 'IPv6' |
| kubeProxyConfig | 保留 kube-proxy 的配置自定义。 未定义的任何值都将使用 kube-proxy 默认行为。 请参阅 https://v<version.docs.kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/>,其中<版本>由<主版本次要版本><>字符串表示。 Kubernetes 版本 1.23 将是“1-23”。 | ContainerServiceNetworkProfileKubeProxyConfig |
| loadBalancerProfile | 集群load balancer的配置文件。 | ManagedClusterLoadBalancerProfile |
| loadBalancerSku | 管理集群的load balancer sku。 默认值为“standard”。 有关load balancer SKU之间的差异,请参见Azure 负载均衡器 SKUs。 | 'basic' “服务” 'standard' |
| natGatewayId | 当 outboundType 用于集群启动时用于出口的 NAT 网关的 Azure 资源 ID 是 'userAssignedNATGateway',使用 StandardV2 公共 IP,后端池类型是 podIP,负载均衡器类型是服务 SKU。 这种形式为:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways/{natGatewayName}'. 使用托管NATGateway时,该字段会自动填充。 有关详细信息,请参阅 https://aka.ms/aks/container-native-slb | 字符串 |
| natGatewayProfile | 群集 NAT 网关的配置文件。 | ManagedClusterNATGatewayProfile |
| networkDataplane | Kubernetes 群集中使用的网络数据平面。 | “azure” 'cilium' |
| networkMode | Azure CNI 配置的网络模式。 如果 networkPlugin 不是 'azure',则无法指定。 | 'bridge' 'transparent' |
| networkPlugin | 用于生成 Kubernetes 网络的网络插件。 | “azure” 'kubenet' 'none' |
| networkPluginMode | 网络插件应使用的模式。 | 'overlay' |
| networkPolicy | 用于生成 Kubernetes 网络的网络策略。 | “azure” 'calico' 'cilium' 'none' |
| outboundType | 出站(出口)路由方法。 这只能在群集创建时设置,以后无法更改。 更多信息请参见出站类型。 | 'loadBalancer' 'managedNATGateway' 'none' 'userAssignedNATGateway' 'userDefinedRouting' |
| podCidr | 使用 kubenet 时分配 Pod IP 的 CIDR 表示法 IP 范围。 | string Constraints: 图案 = ^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$ |
| podCidrs | CIDR 表示法 IP 范围,从中分配 Pod IP。 单堆栈网络需要一个 IPv4 CIDR。 对于双堆栈网络,每个 IP 系列(IPv4/IPv6)都有两个CIDR。 | string[] |
| podLinkLocalAccess | 定义access为带有 hostNetwork=false 的 pod 特殊链接本地地址(Azure 实例元数据服务,即 IMDS)。 如果未指定,则默认值为“IMDS”。 | 'IMDS' 'None' |
| serviceCidr | 从中分配服务群集 IP 的 CIDR 表示法 IP 范围。 它不得与任何子网 IP 范围重叠。 | string Constraints: 图案 = ^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$ |
| serviceCidrs | CIDR 表示法 IP 范围,从中分配服务群集 IP。 单堆栈网络需要一个 IPv4 CIDR。 对于双堆栈网络,每个 IP 系列(IPv4/IPv6)都有两个CIDR。 它们不得与任何子网 IP 范围重叠。 | string[] |
| staticEgressGatewayProfile | 静态出口网关加载项的配置文件。 有关静态出口网关的更多详细信息,请参阅 https://aka.ms/aks/static-egress-gateway。 | ManagedClusterStaticEgressGatewayProfile |
ContainerServiceNetworkProfileKubeProxyConfig
| Name | Description | Value |
|---|---|---|
| enabled | 是否在群集上的 kube-proxy 上启用(如果没有“kubeProxyConfig”存在),则默认情况下在 AKS 中启用 kube-proxy,而无需进行这些自定义。 | bool |
| ipvsConfig | 保存 IPVS 的配置自定义。 仅当“mode”设置为“IPVS”时,才能指定。 | ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig |
| mode | 指定要使用的代理模式(“IPTABLES”、“IPVS”或“NFTABLES”) | 'IPTABLES' 'IPVS' “国家电影表” |
ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig
| Name | Description | Value |
|---|---|---|
| scheduler | IPVS 计划程序,有关详细信息,请参阅 http://www.linuxvirtualserver.org/docs/scheduling.html。 | 'LeastConnection' 'RoundRobin' |
| tcpFinTimeoutSeconds | 接收 FIN 后用于 IPVS TCP 会话的超时值(以秒为单位)。 必须是正整数值。 | int |
| tcpTimeoutSeconds | 用于空闲 IPVS TCP 会话的超时值(以秒为单位)。 必须是正整数值。 | int |
| udpTimeoutSeconds | 用于 IPVS UDP 数据包的超时值(以秒为单位)。 必须是正整数值。 | int |
ContainerServiceSshConfiguration
| Name | Description | Value |
|---|---|---|
| publicKeys | 用于通过基于 Linux 的 VM 进行身份验证的 SSH 公钥列表。 最多可以指定 1 个键。 | ContainerServiceSshPublicKey[](必需) |
ContainerServiceSshPublicKey
| Name | Description | Value |
|---|---|---|
| keyData | 用于通过 SSH 向 VM 进行身份验证的证书公钥。 证书必须采用 PEM 格式(带或不带标头)。 | string (必需) |
CreationData
| Name | Description | Value |
|---|---|---|
| sourceResourceId | 这是用于创建目标对象的源对象的 ARM ID。 | 字符串 |
DelegatedResource
| Name | Description | Value |
|---|---|---|
| 位置 | 源资源位置 - 仅供内部使用。 | 字符串 |
| referralResource | 引荐委派(可选)的委托 ID - 仅供内部使用。 | 字符串 |
| resourceId | 委派资源的 ARM 资源 ID - 仅供内部使用。 | 字符串 |
| tenantId | 委托资源的租户 ID - 仅供内部使用。 | string Constraints: 最小长度 = 36 最大长度 = 36 图案 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
德拉内特档案
| Name | Description | Value |
|---|---|---|
| mode | 特工池的DRANET模式。 | 'Managed' 'Unmanaged' |
ExtendedLocation
| Name | Description | Value |
|---|---|---|
| name | 扩展位置的名称。 | 字符串 |
| 类型 | 扩展位置的类型。 | 'EdgeZone' |
GPUProfile
| Name | Description | Value |
|---|---|---|
| driver | 是否安装 GPU 驱动程序。 如果未指定,则默认为“安装”。 | 'Install' 'None' |
| driverType | 指定要在创建 Windows 代理池时安装的 GPU 驱动程序的类型。 如果未提供,AKS 会根据系统兼容性选择驱动程序。 创建 AgentPool 后,无法更改此更改。 这不能在 Linux AgentPools 上设置。 对于 Linux AgentPools,根据系统兼容性选择驱动程序。 | 'CUDA' 'GRID' |
| nvidia | NVIDIA 专用的显卡设置。 | NvidiaGPUProfile |
硬驱逐阈值
| Name | Description | Value |
|---|---|---|
| 内存可用 | 即在该内存以下触发驱逐的门槛。 接受绝对值(例如“500英里”)或百分比值(例如“5%”)。 绝对值必须大于或等于100英里。 百分比值必须大于或等于2%。 | 字符串 |
| nodeFsAvailable | 即触发 pod 驱逐的可用节点文件系统空间阈值。 接受绝对值(例如“1Gi”)或百分比值(例如“10%”)。 必须大于或等于系统默认值10%。 | 字符串 |
| nodeFsInodesFree(节点自由) | 节点文件系统中可用inode的阈值低于该阈值触发了Pod驱逐。 接受绝对inode计数(例如“100000”)或百分比值(例如“5%”)。 百分比值必须大于或等于系统默认值5%。 | 字符串 |
IPTag
| Name | Description | Value |
|---|---|---|
| ipTagType | IP 标记类型。 示例:RoutingPreference。 | 字符串 |
| 标签 | 与公共 IP 关联的 IP 标记的值。 示例:Internet。 | 字符串 |
IstioCertificateAuthority
| Name | Description | Value |
|---|---|---|
| plugin | 服务网格的插件证书信息。 | IstioPluginCertificateAuthority |
IstioComponents
| Name | Description | Value |
|---|---|---|
| egressGateways | Istio 出口网关。 | IstioEgressGateway[] |
| ingressGateways | Istio 入口网关。 | IstioIngressGateway[] |
| 代理重定向机制 | 流量重定向的模式。 | “CNIChaining” “初始容器” |
IstioEgressGateway
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用出口网关。 | bool (必需) |
| gatewayConfigurationName | Istio 加载项出口网关的网关配置自定义资源的名称。 启用 Istio 出口网关时必须指定。 必须部署在 Istio 出口网关将部署到的同一命名空间中。 | 字符串 |
| name | Istio 加载项出口网关的名称。 | string Constraints: 模式 = [a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)* (必需) |
| 命名空间 | 应在其中部署 Istio 加载项出口网关的命名空间。 如果未指定,则默认值为 aks-istio-egress。 | 字符串 |
IstioIngressGateway
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用入口网关。 | bool (必需) |
| mode | 入口网关的模式。 | 'External' “内部”(必填) |
IstioPluginCertificateAuthority
| Name | Description | Value |
|---|---|---|
| certChainObjectName | Azure 密钥保管库 中的 Certificate chain object name. | 字符串 |
| certObjectName | Azure 密钥保管库 中的 Intermediate certificate object name. | 字符串 |
| keyObjectName | Azure 密钥保管库 中的中间证书私钥对象名称。 | 字符串 |
| keyVaultId | 密钥保管库的资源ID。 | 字符串 |
| rootCertObjectName | Azure 密钥保管库 中的根证书对象名称。 | 字符串 |
IstioServiceMesh
| Name | Description | Value |
|---|---|---|
| certificateAuthority | Istio 服务网格证书颁发机构 (CA) 配置。 目前,我们仅支持插件证书,如下所示 https://aka.ms/asm-plugin-ca | IstioCertificateAuthority |
| components | Istio 组件配置。 | IstioComponents |
| revisions | Istio 控制平面的修订列表。 升级未进行时,这将保留一个值。 当 Canary 升级正在进行时,这只能保留两个连续值。 欲了解更多信息,请参见:/azure/aks/istio-upgrade | string[] |
KubeletConfig
| Name | Description | Value |
|---|---|---|
| allowedUnsafeSysctls | 允许的不安全 sysctls 或不安全的 sysctl 模式列表(以结尾 *)。 |
string[] |
| containerLogMaxFiles | 一个容器可以存在的最大容器日志文件数。 该数字必须≥ 2。 | int Constraints: 最小值 = 2 |
| containerLogMaxSizeMB | 在轮换容器日志文件之前,容器日志文件的最大大小(例如 10Mi)。 | int |
| cpuCfsQuota | 如果为指定 CPU 限制的容器启用了 CPU CFS 配额强制实施。 默认值为 true。 | bool |
| cpuCfsQuotaPeriod | CPU CFS 配额周期值。 默认值为“100ms”。 有效值是包含可选分数和单位后缀的小数序列。 例如:“300ms”、“2h45m”。 支持的单位为“ns”、“us”、“ms”、“s”、“m”和“h”。 | 字符串 |
| cpuManagerPolicy | 要使用的 CPU 管理器策略。 默认值为“none”。 有关详细信息,请参阅 Kubernetes CPU 管理策略 。 允许的值为“none”和“static”。 | 字符串 |
| 驱逐最大波德恩惠秒内 | 软淘汰期间,舱体终止的最大宽限期为秒;限制了舱体终止的宽限期秒。 默认值为60,当簇 enableNodeHardening 属性为真时应用。 仅适用于Linux的节点池。 |
int Constraints: 最小值 = 0 |
| failSwapOn | 如果设置为 true,则如果在节点上启用了交换,则 Kubelet 将无法启动。 | bool |
| 硬驱逐阈值 | Kubelet的硬性驱逐门槛。 当阈值未被设置时,系统默认值会被使用。 有关计算默认值的详细信息,请参见 AKS 节点资源预留 。 仅适用于Linux的节点池。 | 硬驱逐阈值 |
| imageGcHighThreshold | 磁盘使用率的百分比,之后映像垃圾回收始终运行。 如果要禁用映像垃圾回收,则设置为 100。 默认值为 85% | int |
| imageGcLowThreshold | 从不运行映像垃圾回收之前磁盘使用量的百分比。 这不能设置为高于 imageGcHighThreshold。 默认值为 80% | int |
| kubeReserved | kube保留值用于kubelet。 当未设置值时,会使用基于虚拟机大小的系统计算默认值。 有关计算默认值的详细信息,请参见 AKS 节点资源预留 。 仅适用于Linux的节点池。 | 库比预留 |
| podMaxPids | 每个 Pod 的最大进程数。 | int |
| seccompDefault | 指定应用于所有工作负荷的默认 seccomp 配置文件。 如果未指定,则默认使用“未完成”。 | 'RuntimeDefault' 'Unconfined' |
| soft驱逐宽限期 | 软驱逐信号的宽限期——在淘汰前必须保持多长时间的门槛。 默认和配对规则和softEvictionThreshold一样。 这些数值是围棋式的持续时间字符串(例如“1分30秒”);支援单位包括“NS”、“US”、“MS”、“S”、“M”和“H”。 仅适用于Linux的节点池。 | 软驱逐宽限期 |
| soft驱逐阈值 | 库贝莱特的软性驱逐门槛。 交叉时,荚果会在成对的软驱逐宽限期后被驱逐。 当集群 enableNodeHardening 属性为真时,系统默认值适用;否则不会配置软驱逐。 对于每个信号(memoryAvailable、nodeFsAvailable、nodeFsInodesFree),softEvictionThreshold 和 softEvictionGracePeriod 中的条目必须处于相同状态:两者都省略(默认)、两者都非空(覆盖),或两串为空字符串(选择退出该信号)。 仅适用于Linux的节点池。 请参阅 https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/#soft-eviction-thresholds。 |
软驱逐阈值 |
| topologyManagerPolicy | 要使用的拓扑管理器策略。 有关详细信息,请参阅 Kubernetes 拓扑管理器。 默认值为“none”。 允许的值为“none”、“best-effort”、“restricted”和“single-numa-node”。 | 字符串 |
库比预留
| Name | Description | Value |
|---|---|---|
| cpu毫厘核心 | 为Kubernetes系统守护进程预留的CPU数量,单位为毫核。 必须大于或等于140。 例如,200 表示 200m(0.2 CPU 核心)。 | int |
| 内存MB | 为Kubernetes系统守护进程预留的内存量,以MiB计。 必须大于或等于750。 | int |
KubernetesResourceObjectEncryptionProfile
| Name | Description | Value |
|---|---|---|
| 基础设施加密 | 是否使用服务托管密钥启用 Kubernetes 资源对象的静态加密。 有关这方面的更多信息,请参阅 https://aka.ms/aks/kubernetesResourceObjectEncryption。 | 'Enabled' |
LinuxOSConfig
| Name | Description | Value |
|---|---|---|
| swapFileSizeMB | 将在每个节点上创建的交换文件的大小(以 MB 为单位)。 | int |
| sysctls | Linux 代理节点的 Sysctl 设置。 | SysctlConfig |
| transparentHugePageDefrag | 内核是否应积极利用内存压缩,使更多的大页可用。 有效值为“always”、“defer”、“defer+madvise”、“madvise”和“never”。 默认值为“madvise”。 有关详细信息,请参阅 透明巨页。 | 字符串 |
| transparentHugePageEnabled | 是否启用透明巨页。 有效值为“always”、“madvise”和“never”。 默认值为“always”。 有关详细信息,请参阅 透明巨页。 | 字符串 |
本地DNS虚拟
| Name | Description | Value |
|---|---|---|
| cacheDurationInSeconds | 缓存最大 TTL(以秒为单位)。 有关更多信息,请参阅 缓存插件 。 | int |
| forwardDestination | 要从 localDNS 转发的 DNS 查询的目标服务器。 | 'ClusterCoreDNS' 'VnetDNS' |
| forwardPolicy | 用于选择上游 DNS 服务器的转发策略。 有关更多信息,请参阅 forward plugin 。 | “Random” 'RoundRobin' 'Sequential' |
| maxConcurrent | 最大并发查询数。 有关更多信息,请参阅 forward plugin 。 | int |
| 协议 | 对于从 localDNS 到上游 DNS 服务器的连接,强制执行 TCP 或首选 UDP 协议。 | 'ForceTCP' 'PreferUDP' |
| queryLogging | localDNS 中 DNS 查询的日志级别。 | 'Error' 'Log' |
| serveStale | 用于提供过时数据的策略。 有关更多信息,请参阅 缓存插件 。 | “禁用” 'Immediate' 'Verify' |
| serveStaleDurationInSeconds | 提供过时的持续时间(以秒为单位)。 有关更多信息,请参阅 缓存插件 。 | int |
LocalDNSProfile
| Name | Description | Value |
|---|---|---|
| kubeDNSOverrides | KubeDNS 覆盖适用于来自 dnsPolicy:ClusterFirst 的 Pod 的 DNS 流量(称为 KubeDNS 流量)。 | LocalDNSProfileKubeDNSOverrides |
| mode | localDNS 的启用模式。 | 'Disabled' 'Preferred' “必需” |
| vnetDNSOverrides | VnetDNS 覆盖适用于来自 dnsPolicy:default 或 kubelet 的 Pod 的 DNS 流量(称为 VnetDNS 流量)。 | LocalDNSProfileVnetDNSOverrides |
LocalDNSProfileKubeDNSOverrides
| Name | Description | Value |
|---|
LocalDNSProfileVnetDNSOverrides
| Name | Description | Value |
|---|
ManagedClusterAADProfile
| Name | Description | Value |
|---|---|---|
| adminGroupObjectIDs | 将具有群集管理员角色的 AAD 组对象 ID 的列表。 | string[] |
| clientAppID | (已弃用)客户端 AAD 应用程序 ID。 更多信息请访问 https://aka.ms/aks/aad-legacy。 | 字符串 |
| enableAzureRBAC | 是否启用 Azure RBAC for Kubernetes 授权。 | bool |
| 托管的 | 是否启用托管 AAD。 | bool |
| serverAppID | (已弃用)服务器 AAD 应用程序 ID。 更多信息请访问 https://aka.ms/aks/aad-legacy。 | 字符串 |
| serverAppSecret | (已弃用)服务器 AAD 应用程序机密。 更多信息请访问 https://aka.ms/aks/aad-legacy。 | string Constraints: 敏感值。 以安全参数的形式传入。 |
| tenantID | 用于身份验证的 AAD 租户 ID。 如果未指定,将使用部署订阅的租户。 | 字符串 |
ManagedClusterAddonProfile
| Name | Description | Value |
|---|---|---|
| config | 用于配置加载项的键值对。 | ManagedClusterAddonProfileConfig |
| enabled | 是否启用加载项。 | bool (必需) |
ManagedClusterAddonProfileConfig
| Name | Description | Value |
|---|
ManagedClusterAgentPoolProfile
| Name | Description | Value |
|---|---|---|
| artifactStreamingProfile | 用于在 AKS 上使用项目流式传输的配置。 | AgentPoolArtifactStreamingProfile |
| availabilityZones | 用于节点的Availability zones列表。 仅当 AgentPoolType 属性为“VirtualMachineScaleSets”时,才能指定此值。 | string[] |
| capacityReservationGroupID | 容量预留组的完全限定资源ID,用于从保留的虚拟机组中提供virtual machines。 其形式为:'/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Compute/capacityreservationgroups/{capacityReservationGroupName}' 客户使用该文件创建包含指定CRG的代理池。 更多信息请参见 容量预留 | 字符串 |
| count | 用于托管 docker 容器的代理数(VM)。 允许的值必须在用户池的 0 到 1000(含)范围内,系统池的范围为 1 到 1000(含)。 默认值为 1。 | int |
| creationData | 如果使用快照创建/升级节点池,则用于指定源快照 ID 的 CreationData。 | CreationData |
| enableAutoScaling | 是否启用自动缩放程序 | bool |
| enableEncryptionAtHost | 是否启用基于主机的 OS 和数据驱动器加密。 这只支持某些虚拟机规模和某些 Azure 区域。 更多信息请参见:/azure/aks/enable-host-encryption | bool |
| enableFIPS | 是否使用已启用 FIPS 的 OS。 详情请参见 添加支持 FIPS 的节点池。 | bool |
| enableNodePublicIP | 是否为每个节点分配自己的公共 IP。 某些方案可能需要节点池中的节点接收其自己的专用公共 IP 地址。 游戏工作负载就是一种常见方案,此时控制台需要直接连接到云虚拟机才能尽量减少画面跳跃。 更多信息请参见为每个节点分配公共IP。 默认值为 false。 | bool |
| enableOSDiskFullCaching | 是否启用全缓存临时操作系统磁盘功能。 启用此功能后,整个操作系统将本地缓存在临时操作系统磁盘上,防止因网络故障引发的 E17 事件。 | bool |
| enableUltraSSD | 是否启用 UltraSSD | bool |
| gatewayProfile | 特定于网关模式下托管代理池的配置文件。 如果代理池模式不是网关,则无法设置此字段。 | AgentPoolGatewayProfile |
| gpuInstanceProfile | 用于为支持的 GPU VM SKU 指定 GPU MIG 实例配置文件的 GPUInstanceProfile。 | 'MIG1g' 'MIG2g' 'MIG3g' 'MIG4g' 'MIG7g' |
| gpuProfile | 代理池的 GPU 设置。 | GPUProfile |
| hostGroupID | 专用主机组的完全限定资源ID,用于配置virtual machines,仅在创建场景中使用,且一旦设置后不允许更改。 此格式为:/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}。 更多信息请参见 Azure专用主机。 | 字符串 |
| kubeletConfig | 代理池节点上的 Kubelet 配置。 | KubeletConfig |
| kubeletDiskType | 确定空Dir卷、容器运行时数据根和Kubelet临时storage的放置。 | 'OS' 'Temporary' |
| linuxOSConfig | Linux 代理节点的 OS 配置。 | LinuxOSConfig |
| localDNSProfile | 使用 VnetDNS 和 KubeDNS 覆盖配置每个节点的本地 DNS。 LocalDNS 有助于提高 AKS 群集中 DNS 解析的性能和可靠性。 有关更多详细信息,请参阅 aka.ms/aks/localdns。 | LocalDNSProfile |
| maxCount | 自动缩放的最大节点数 | int |
| maxPods | 可在节点上运行的 Pod 的最大数目。 | int |
| messageOfTheDay | Linux 节点的当天消息(base64 编码)。 一个 base64 编码的字符串,将在解码后写入 /etc/motd。 这允许自定义 Linux 节点当天的消息。 它不得为 Windows 节点指定。 它必须是静态字符串(即,将打印为原始字符串,而不是作为脚本执行)。 | 字符串 |
| minCount | 自动缩放的最小节点数 | int |
| mode | 代理池的模式。 群集必须随时至少有一个“系统”代理池。 有关代理池限制和最佳实践的更多信息,请参见:/azure/aks/use-system-pools | 'Gateway' 'Machines' 'ManagedSystem' 'System' 'User' |
| name | 订阅和资源组上下文中代理池配置文件的唯一名称。 Windows 代理池名称必须为 6 个字符或更少。 | string Constraints: 模式 = ^[a-z][a-z0-9]{0,11}$ (必需) |
| networkProfile | 代理池的网络相关设置。 | AgentPoolNetworkProfile |
| nodeImageVersion (节点映像版本) | 节点映像的版本。 设置该值会触发agentPool回滚。 只允许取值 recentlyUsedVersions 。 |
字符串 |
| nodeInitializationTaints | 创建期间在节点上添加的污点,AKS 不会协调。 这些污点不会被 AKS 协调,并且可以通过 kubectl 调用删除。 创建节点池后,可以修改此字段,但在需要重新执行的其他作(例如节点映像升级)之前,不会使用新的污点重新创建节点。 这些污点允许在节点准备好接受工作负载之前运行所需的配置,例如“key1=value1:NoSchedule”,然后可以使用 kubectl taint nodes node1 key1=value1:NoSchedule- |
string[] |
| nodeLabels | 要跨代理池中的所有节点保留的节点标签。 | ManagedClusterAgentPoolProfilePropertiesNodeLabels |
| nodePublicIPPrefixID | VM 节点应使用 IP 的公共 IP 前缀 ID。 此格式为:/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName} | 字符串 |
| nodeTaints | 在节点池创建和缩放期间添加到新节点的污点。 例如,key=value:NoSchedule。 | string[] |
| orchestratorVersion | 用户指定的 Kubernetes 版本。 支持修补程序版本 <major.minor.patch> (例如 1.20.13)和 <major.minor> (例如 1.20)。 指定 major.minor< 后>,会自动选择最新的受支持的 GA 修补程序版本。 <创建群集后使用相同的 major.minor> 更新群集(例如 1.14.x -> 1.14)不会触发升级,即使有较新的修补程序版本可用也是如此。 最佳做法是将 AKS 群集中的所有节点池升级到相同的 Kubernetes 版本。 节点池版本必须与控制平面具有相同的主版本。 节点池次要版本必须位于控制平面版本的两个次要版本中。 节点池版本不能大于控制平面版本。 更多信息请参见 升级节点池。 | 字符串 |
| osDiskSizeGB | OS 磁盘大小(以 GB 为单位)用于为主/代理池中的每个计算机指定磁盘大小。 如果指定 0,它将根据指定的 vmSize 应用默认 osDisk 大小。 | int Constraints: 最小值 = 0 最大值 = 2048 |
| osDiskType | 要用于代理池中的计算机的 OS 磁盘类型。 如果 VM 支持该 VM 并且缓存磁盘大于请求的 OSDiskSizeGB,则默认值为“临时”。 否则,默认为“Managed”。 创建后可能不会更改。 更多信息请参见Ephemeral OS。 | 'Ephemeral' 'Managed' |
| osSKU | 指定代理池使用的 OS SKU。 如果 OSType 为 Linux,则默认值为 Ubuntu。 当 Kubernetes <= 1.24 或 Windows2022(如果 OSType 为 Windows)时 >,默认值为 Windows2019。 | 'AzureContainerLinux' 'AzureLinux' 'AzureLinux3' 'CBLMariner' “平车” 'Mariner' 'Ubuntu' 'Ubuntu2204' 'Ubuntu2404' 'Ubuntu2604' 'Windows2019' 'Windows2022' “窗户2025” 'WindowsAnnual' |
| osType | 作系统类型。 默认值为 Linux。 | 'Linux' 'Windows' |
| podIPAllocationMode | Pod IP 分配模式。 代理池中 Pod 的 IP 分配模式。 必须与 podSubnetId 一起使用。 默认值为“DynamicIndividual”。 | 'DynamicIndividual' 'StaticBlock' |
| podSubnetID | 启动时 Pod 将加入的子网的 ID。 如果省略,则会在节点子网上静态分配 Pod IP(有关详细信息,请参阅 vnetSubnetID)。 此格式为:/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName} | 字符串 |
| powerState | 代理池是正在运行还是已停止。 首次创建代理池时,它最初正在运行。 可以通过将此字段设置为“已停止”来停止代理池。 已停止的代理池会停止其所有 VM,不会产生计费费用。 仅当代理池正在运行并且预配状态为“成功”时,才能停止代理池 | PowerState |
| preparedImageSpecificationProfile | 设置以确定用于配置池中节点的预备镜像规范。 | PreparedImageSpecificationProfile |
| proximityPlacementGroupID | 邻近放置组的 ID。 | 字符串 |
| scaleDownMode | 缩放代理池时要使用的缩减模式。 这也会影响群集自动缩放程序的行为。 如果未指定,则默认为 Delete。 | 'Deallocate' 'Delete' |
| scaleSetEvictionPolicy | 虚拟机规模集逐出策略。 驱逐政策明确了虚拟机被驱逐时to do处理方式。 默认值为“删除”。 有关驱逐的更多信息,请参见 spot 虚拟机 | 'Deallocate' 'Delete' |
| scaleSetPriority | 虚拟机规模集优先级。 | 'Regular' 'Spot' |
| securityProfile | 代理池的安全设置。 | AgentPoolSecurityProfile |
| spotMaxPrice | 你愿意支付现成实例的最大价格(以美元为单位)。 可能的值是大于零或 -1 的任何小数值,指示要按需 up-to 的默认价格。 可能的值是大于零或 -1 的任何小数值,表示愿意支付任何按需价格。 有关现货价格的更多详情,请参见现货虚拟机价格 | int |
| 状态 | 包含有关代理池的只读信息。 | AgentPoolStatus |
| tags | 要保留在代理池虚拟机规模集上的标记。 | ManagedClusterAgentPoolProfilePropertiesTags |
| 类型 | 代理池的类型。 | 'AvailabilitySet' “FlexNodes” 'VirtualMachines' 'VirtualMachineScaleSets' |
| upgradeSettings | 用于升级代理池的设置 | AgentPoolUpgradeSettings |
| 升级设置蓝绿 | 代理池上 Blue-Green 升级的设置。 当升级策略设置为 BlueGreen 时适用。 | AgentPoolBlueGreenUpgradeSettings |
| 升级策略 | 定义代理池的升级策略。 默认值为滚动。 | “蓝绿” 'Rolling' |
| virtualMachineNodesStatus | VirtualMachines 代理池中的节点的状态。 | VirtualMachineNodes[] |
| virtualMachinesProfile | VirtualMachines 代理池上的规范。 | VirtualMachinesProfile |
| vmSize | 代理池 VM 的大小。 VM 大小可用性因区域而异。 如果节点包含的计算资源(内存、cpu 等)Pod 不足,可能无法正常运行。 有关受限虚拟机规模的更多细节,请参见:/azure/aks/quotas-skus-regions | 字符串 |
| vnetSubnetID | 代理池节点和(可选)Pod 将在启动时加入的子网的 ID。 如果未指定,将生成和使用 VNET 和子网。 如果未指定 podSubnetID,则这适用于节点和 Pod,否则它仅适用于节点。 此格式为:/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName} | 字符串 |
| windowsProfile | Windows 代理池的特定配置文件。 | AgentPoolWindowsProfile |
| workloadRuntime | 确定节点可以运行的工作负荷的类型。 | 'KataMshvVmIsolation' “KataVm隔离” 'OCIContainer' 'WasmWasi' |
ManagedClusterAgentPoolProfilePropertiesNodeLabels
| Name | Description | Value |
|---|
ManagedClusterAgentPoolProfilePropertiesTags
| Name | Description | Value |
|---|
ManagedClusterAgentSandboxProfile
| Name | Description | Value |
|---|---|---|
| enabled | 集群是否启用了Agent Sandbox核心扩展。 在集群创建时,默认是 false。 | bool |
ManagedClusterAIToolchainOperatorProfile
| Name | Description | Value |
|---|---|---|
| enabled | 是否为集群启用 AI toolchain Operator。 指示 AI 工具链作员是否已启用。 | bool |
ManagedClusterAPIServerAccessProfile
| Name | Description | Value |
|---|---|---|
| authorizedIPRanges | 授权access Kubernetes API服务器的IP范围。 IP 范围以 CIDR 格式指定,例如 137.117.106.88/29。 该功能不兼容使用公共 IP Per Node 的集群,或使用 Basic 负载均衡器 的集群。 更多信息请参见 API 服务器授权 IP 范围。 | string[] |
| disableRunCommand | 是否禁用群集的 run 命令。 | bool |
| enablePrivateCluster | 是否创建群集作为专用群集。 更多细节请参见 创建私有 AKS 集群。 | bool |
| enablePrivateClusterPublicFQDN | 是否为专用群集创建其他公共 FQDN。 | bool |
| enableVnetIntegration | 是否为群集启用 apiserver vnet 集成。 有关详细信息,请参阅 aka.ms/AksVnetIntegration。 | bool |
| privateDNSZone | 集群的private DNS区域模式。 默认值为 System。 更多详情请参见configure private DNS zone。 允许的值为“system”和“none”。 | 字符串 |
| subnetId | 启用 apiserver vnet 集成时要使用的子网。 使用 BYO Vnet 创建新集群时,或者更新现有集群以启用 apiserver vnet 集成时,需要它。 | 字符串 |
ManagedClusterAppRoutingIstio
| Name | Description | Value |
|---|---|---|
| mode | 是否启用 Istio 作为 Gateway API 实现,用于与应用路由的托管入口。 | 'Disabled' 'Enabled' |
ManagedClusterAutoUpgradeProfile
| Name | Description | Value |
|---|---|---|
| nodeOSUpgradeChannel | 节点作系统升级通道。 更新节点上 OS 的方式。 默认值为 NodeImage。 | 'NodeImage' 'None' 'SecurityPatch' 'Unmanaged' |
| upgradeChannel | 用于自动升级的升级通道。 默认值为“none”。 更多信息请参见 setting AKS 集群自动升级通道。 | 'node-image' 'none' 'patch' 'rapid' 'stable' |
ManagedClusterAzureMonitorProfile
| Name | Description | Value |
|---|---|---|
| appMonitoring | Kubernetes 应用程序容器的应用程序监视配置文件。 通过使用 Azure Monitor OpenTelemetry 的 SDK 自动监测应用,收集应用日志、指标和追踪数据。 有关概述,请参阅 aka.ms/AzureMonitorApplicationMonitoring。 | ManagedClusterAzureMonitorProfileAppMonitoring |
| containerInsights | 设置它以启用并配置集群的 Azure Monitor Container Insights,该系统收集 Kubernetes 事件、库存以及容器的标准和标准日志。 有关概述,请参阅 aka.ms/AzureMonitorContainerInsights。 | ManagedClusterAzureMonitorProfileContainerInsights |
| 指标 | 适用于 Prometheus 加载项的 Azure Monitor 托管服务的指标配置文件。 收集开箱即用的Kubernetes基础设施指标,发送到Azure监控工作区,并为自定义目标配置额外的抓取。 有关概述,请参阅 aka.ms/AzureManagedPrometheus。 | ManagedClusterAzureMonitorProfileMetrics |
ManagedClusterAzureMonitorProfileAppMonitoring
| Name | Description | Value |
|---|---|---|
| autoInstrumentation | AKS的应用监控自动仪表。 部署一个webhook,自动对Microsoft OpenTelemetry发行版的工作负载进行监测,以收集OpenTelemetry的指标、日志和跟踪数据。 参见 https://aka.ms/AKSAppMonitoringDocs 和 https://aka.ms/AzureMonitorApplicationMonitoring 以获取概述。 | ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation |
| 开放遥测日志与追踪 | 应用监控 OpenTelemetry 日志与追踪配置文件适用于 AKS。 利用基于 Azure Monitor 的 OpenTelemetry SDK 收集 OpenTelemetry 日志和应用的跟踪数据。 参见 https://aka.ms/AKSAppMonitoringDocs 和 https://aka.ms/AzureMonitorApplicationMonitoring 以获取概述。 | ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces |
| openTelemetryMetrics | 应用监控 AKS 的 OpenTelemetry 指标配置文件。 利用基于 Azure Monitor 的 OpenTelemetry SDK 收集应用的 OpenTelemetry 指标。 参见 https://aka.ms/AKSAppMonitoringDocs 和 https://aka.ms/AzureMonitorApplicationMonitoring 以获取概述。 | ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics |
ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation
| Name | Description | Value |
|---|---|---|
| enabled | 指示是否启用应用监控自动仪表。 | bool |
ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces
| Name | Description | Value |
|---|---|---|
| enabled | 指示是否启用应用监控OpenTelemetry Logs and trace。 | bool |
| grpcPort | OpenTelemetry GRPC 的主机端口是日志和追踪。 如果未指定,默认端口是28332。 | int |
| httpPort | OpenTelemetry HTTP/PROTOBUF 日志和追踪的主机端口。 如果未指定,则默认端口为 28331。 | int |
ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics
| Name | Description | Value |
|---|---|---|
| enabled | 指示是否启用了应用监控OpenTelemetry Metrics。 | bool |
| grpcPort | OpenTelemetry GRPC 指标的主机端口。 如果未指定,默认端口是28334。 | int |
| httpPort | OpenTelemetry HTTP/PROTOBUF 指标的主机端口。 如果未指定,则默认端口为 28333。 | int |
ManagedClusterAzureMonitorProfileContainerInsights
| Name | Description | Value |
|---|---|---|
| containerNetworkLogs | 用 Azure Monitor 配置容器网络日志摄取。 所摄取的日志类型由相关的CRD控制;如果未指定,则默认为 Disabled。 有关详细信息,请参阅 https://aka.ms/ContainerNetworkLogsDoc 和 https://aka.ms/acns/howtoenablecnl 了解详细信息。 |
'Disabled' 'Enabled' |
| disablePrometheusMetricsScraping | 指示是否禁用 prometheus 指标擦除。 如果未指定,默认值为 false,即 prometheus 抓取已被启用。 | bool |
| enabled | 提示是否启用了 Azure Monitor 容器洞察日志插件。 | bool |
| logAnalyticsWorkspaceResourceId | Azure Log Analytics Workspace 的 Fully Qualified ARM Resource ID for storageing Azure Monitor Container Insights Logs. | 字符串 |
| syslogPort | syslog 主机端口。 如果未指定,则默认端口为 28330。 | int |
ManagedClusterAzureMonitorProfileKubeStateMetrics
| Name | Description | Value |
|---|---|---|
| metricAnnotationsAllowList | 将在资源的标签指标中使用的 Kubernetes 批注键的逗号分隔列表(示例:'namespaces=[kubernetes.io/team,...],pods=[kubernetes.io/team],...')。 默认情况下,指标仅包含资源名称和命名空间标签。 | 字符串 |
| metricLabelsAllowlist | 将在资源的标签指标中使用的其他 Kubernetes 标签键的逗号分隔列表(示例:'namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...')。 默认情况下,指标仅包含资源名称和命名空间标签。 | 字符串 |
ManagedClusterAzureMonitorProfileMetrics
| Name | Description | Value |
|---|---|---|
| controlPlane的 | Control plane metrics collection profile for the Azure Managed Prometheus addon. 配置来自托管控制平面组件(kube-apiserver、etcd 等)的运行时指标收集。 请参见 aka.ms/aks/controlplane-metrics 了解概况。 | ManagedClusterAzureMonitorProfileMetricsControlPlane |
| enabled | 是否启用或禁用Azure托管Prometheus插件用于Prometheus监控。 有关启用和禁用的详细信息,请参阅 aka.ms/AzureManagedPrometheus-aks-enable。 | bool (必需) |
| kubeStateMetrics | Azure 托管 Prometheus 加载项的 Kube 状态指标配置文件。 这些可选设置适用于使用加载项部署的 kube-state-metrics Pod。 有关详细信息,请参阅 aka.ms/AzureManagedPrometheus-optional-parameters。 | ManagedClusterAzureMonitorProfileKubeStateMetrics |
ManagedClusterAzureMonitorProfileMetricsControlPlane
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用或禁用Azure托管Prometheus插件对控制平面指标的收集。 默认设置为禁用。 详情请参见 aka.ms/aks/controlplane-metrics。 | bool |
ManagedClusterBootstrapProfile
| Name | Description | Value |
|---|---|---|
| artifactSource | 项目源。 artifacts 下载的来源。 | 'Cache' 'Direct' |
| containerRegistryId | The resource ID of Azure 容器注册表. 注册局必须具备私有网络access、高级SKU和区域冗余。 | 字符串 |
ManagedClusterControlPlaneScalingProfile
| Name | Description | Value |
|---|---|---|
| 缩放大小 | 控制平面的缩放尺寸。 扩展规模提供保证容量和可预测的 Kubernetes 性能,超出标准层默认。 更大的H尺寸能提供更高的性能保证。 有关各尺寸的性能指标详情请参见 https://aka.ms/aks/hyperscale 。 | “H2” “H4” “H8”(必填) |
ManagedClusterCostAnalysis
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用成本分析。 托管群集 sku.tier 必须设置为“标准”或“高级”才能启用此功能。 启用此功能后,Kubernetes 命名空间和部署细节会添加到 Azure portal 的成本分析视图中。 如果未指定,则默认值为 false。 有关详细信息,请参阅 aka.ms/aks/docs/cost-analysis。 | bool |
ManagedClusterHealthMonitorProfile
| Name | Description | Value |
|---|---|---|
| enenable ContinuousControlPlaneAndAddonMonitor | 是否启用连续控制平面和附加监视器。 | bool |
| enableOnDemandMonitor | 是否启用按需监控。 | bool |
ManagedClusterHosted系统配置文件
| Name | Description | Value |
|---|---|---|
| enabled | 是否为群集启用托管系统插件。 | bool |
| nodeSubnetID | 将由node autoprovisioner管理的工作负载节点加入的子网ID,用于在租户中运行工作负载Pod。 这必须与 systemNodeSubnetID 和 apiserverAccessProfile.subnetId一起提供,且三个子网 ID 必须在同一个 VNet 中。 如果你没有指定,AKS 会在托管资源组中用默认的 /16 CIDR 创建一个子网。 |
字符串 |
| systemNodeSubnetID | 由 AKS 管理和托管的系统节点连接的子网 ID,用于运行关键系统插件。 该 ID 必须与 nodeSubnetID 和 apiserverAccessProfile.subnetId一起提供,且所有三个子网 ID 必须属于同一个 VNet。 如果你没有指定,AKS 会在托管资源组中用默认的 /26 CIDR 创建一个子网。 |
字符串 |
ManagedClusterHttpProxyConfig
| Name | Description | Value |
|---|---|---|
| enabled | 是否开启 HTTP 代理。 如果被禁用,指定的代理配置将不会在 pod 和节点上设置。 如果未指定,则默认值为 true。 | bool |
| httpProxy | 要使用的 HTTP 代理服务器终结点。 | 字符串 |
| httpsProxy | 要使用的 HTTPS 代理服务器终结点。 | 字符串 |
| noProxy | 不应通过代理的终结点。 | string[] |
| trustedCa | 用于连接到代理服务器的替代 CA 证书。 | 字符串 |
ManagedClusterIdentity
| Name | Description | Value |
|---|---|---|
| delegatedResources | 分配给此托管群集的委托标识资源。 这只能由其他 Azure 资源提供者设置,而托管集群只能接受一个委派的身份资源。 仅供内部使用。 | ManagedClusterIdentityDelegatedResources |
| 类型 | 用于托管群集的标识类型。 更多信息请参见AKS中的 |
'None' 'SystemAssigned' 'UserAssigned' |
| userAssignedIdentities | 与托管群集关联的用户标识。 此标识将用于控制平面。 仅允许一个用户分配的标识。 密钥必须是 ARM 资源 ID,格式为“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 | ManagedClusterIdentityUserAssignedIdentities |
ManagedClusterIdentityDelegatedResources
| Name | Description | Value |
|---|
ManagedClusterIdentityUserAssignedIdentities
| Name | Description | Value |
|---|
ManagedClusterIngressDefaultDomainProfile
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用默认域。 | bool |
ManagedClusterIngressProfile
| Name | Description | Value |
|---|---|---|
| applicationLoadBalancer | 托管应用负载均衡器安装设置 | ManagedClusterIngressProfileApplicationLoadBalancer |
| 网关API | 托管网关 API 安装的设置 | ManagedClusterIngressProfileGateway配置 |
| webAppRouting | 入口配置文件的应用路由设置。 你可以在 /azure/aks/app-routing?tabs=default%2Cdeploy-app-default 找到该功能的概述和入职指南。 | ManagedClusterIngressProfileWebAppRouting |
ManagedClusterIngressProfileApplicationLoadBalancer
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 Application 负载均衡器。 | bool |
ManagedClusterIngressProfileGateway配置
| Name | Description | Value |
|---|---|---|
| 安装 | 托管网关 API 安装的配置。 如果未指定,则默认值为“禁用”。 有关详细信息,请参阅 https://aka.ms/k8s-gateway-api。 | 'Disabled' 'Standard' |
ManagedClusterIngressProfileNginx
| Name | Description | Value |
|---|---|---|
| defaultIngressControllerType | 默认 NginxIngressController 自定义资源的入口类型 | 'AnnotationControlled' 'External' 'Internal' 'None' |
ManagedClusterIngressProfileWebAppRouting
| Name | Description | Value |
|---|---|---|
| defaultDomain | 默认域的配置。 这是一个唯一的自动生成域,带有签名的 TLS 证书,允许安全 HTTPS。 有关更多说明,请参阅 默认域文档 。 | ManagedClusterIngressDefaultDomainProfile |
| dnsZoneResourceIds | 要与应用程序路由加载项关联的 DNS 区域的资源 ID。 仅在启用应用程序路由加载项时使用。 公有和private DNS区域可以属于不同的资源组,但所有公共DNS区域必须属于同一资源组,所有private DNS区域也必须属于同一资源组。 | string[] |
| enabled | 是否启用应用程序路由加载项。 | bool |
| gatewayAPIImplementations | 用于应用路由管理入口的Gateway API提供者配置。 有关Gateway API的更多信息,请参见 https://aka.ms/k8s-gateway-api 。 | ManagedClusterWebAppRoutingGatewayAPIImplementations |
| nginx | 默认 NginxIngressController 的配置。 更多请访问 /azure/aks/app-routing-nginx-configuration#the-default-nginx-ingress-controller。 | ManagedClusterIngressProfileNginx |
ManagedClusterLoadBalancerProfile
| Name | Description | Value |
|---|---|---|
| allocatedOutboundPorts | 每个 VM 分配的 SNAT 端口的所需数量。 允许的值为 0 到 64000(含)。 默认值为0,这会导致Azure动态分配端口。 | int Constraints: 最小值 = 0 最大值 = 64000 |
| backendPoolType | 受管理的入站负载均衡器后端池类型。 | 'NodeIP' 'NodeIPConfiguration' “PodIP” |
| clusterServiceLoadBalancerHealthProbeMode | 外部流量策略群集服务的运行状况探测行为。 | 'ServiceNodePort' “共享” |
| enableMultipleStandardLoadBalancers | 为每个 AKS 群集启用多个标准负载均衡器。 | bool |
| idleTimeoutInMinutes | 所需的出站流空闲超时(以分钟为单位)。 允许的值为 4 到 120(含)。 默认值为 30 分钟。 | int Constraints: 最小值 = 4 最大值 = 120 |
| managedOutboundIPs | 集群load balancer的期望托管出站IP。 | ManagedClusterLoadBalancerProfileManagedOutboundIPs |
| outboundIPPrefixes | 集群load balancer所需的出站IP前缀资源。 | ManagedClusterLoadBalancerProfileOutboundIPPrefixes |
| outboundIPs | 集群load balancer的期望出站IP资源。 | ManagedClusterLoadBalancerProfileOutboundIPs |
ManagedClusterLoadBalancerProfileManagedOutboundIPs
| Name | Description | Value |
|---|---|---|
| count | 这是Azure为集群load balancer创建和管理的IPv4出站IP的期望数量。 允许的值必须介于 1 到 100 之间(含)。 默认值为 1。 | int Constraints: 最小值 = 1 最大值 = 100 |
| countIPv6 | Azure为集群load balancer创建和管理的IPv6出站IP数量。 允许的值必须介于 1 到 100 之间(含)。 对于单堆栈,默认值为 0,双堆栈的默认值为 1。 | int Constraints: 最小值 = 0 最大值 = 100 |
ManagedClusterLoadBalancerProfileOutboundIPPrefixes
| Name | Description | Value |
|---|---|---|
| publicIPPrefixes | 公共 IP 前缀资源的列表。 | ResourceReference[] |
ManagedClusterLoadBalancerProfileOutboundIPs
| Name | Description | Value |
|---|---|---|
| publicIPs | 公共 IP 资源的列表。 | ResourceReference[] |
ManagedClusterManagedOutboundIPProfile
| Name | Description | Value |
|---|---|---|
| count | 由 Azure 创建和管理的期望出站 IP 数量。 允许的值必须介于 1 到 16 之间(含)。 默认值为 1。 | int Constraints: 最小值 = 1 最大值 = 16 |
| countIPv6 | Azure创建/管理的IPv6出站IP数量。 允许的值必须介于 1 到 16 之间(含)。 | int Constraints: 最小值 = 1 最大值 = 16 |
ManagedClusterMetricsProfile
| Name | Description | Value |
|---|---|---|
| costAnalysis | 每个 Kubernetes 资源成本分析的详细配置。 | ManagedClusterCostAnalysis |
ManagedClusterNATGatewayProfile
| Name | Description | Value |
|---|---|---|
| idleTimeoutInMinutes | 所需的出站流空闲超时(以分钟为单位)。 允许的值为 4 到 120(含)。 默认值为 4 分钟。 | int Constraints: 最小值 = 4 最大值 = 120 |
| managedOutboundIPProfile | 群集 NAT 网关的托管出站 IP 资源的配置文件。 | ManagedClusterManagedOutboundIPProfile |
| outboundIPPrefixes | 托管NAT网关的期望出站IP前缀资源。 仅兼容NAT网关V2。 | ManagedClusterNATGatewayProfileOutboundIPPrefixes |
| outboundIPs | 托管NAT网关的期望出站IP资源。 | ManagedClusterNATGatewayProfileOutboundIPS |
| sku | 托管集群NAT网关的SKU。 在该地区有“StandardV2”默认设置,否则为“Standard”。 | 'Standard' 'StandardV2' |
ManagedClusterNATGatewayProfileOutboundIPPrefixes
| Name | Description | Value |
|---|---|---|
| publicIPPrefixes | 公共 IP 前缀资源的列表。 | string[] |
ManagedClusterNATGatewayProfileOutboundIPS
| Name | Description | Value |
|---|---|---|
| publicIPs | 公共 IP 资源的列表。 | string[] |
ManagedClusterNodeProvisioningProfile
| Name | Description | Value |
|---|---|---|
| defaultNodePools | 为节点预置配置的默认 Karpenter 节点池 (CRD) 集。 除非 mode 为 'Auto',否则此字段无效。 警告:在现有集群上将其从 Auto 更改为 None 将导致默认的 Karpenter NodePools 被删除,这将耗尽并删除与这些池关联的节点。 强烈建议不要这样做,除非有空闲节点准备好接收该作驱逐的 Pod。 如果未指定,则默认值为 Auto。有关更多信息,请参阅 aka.ms/aks/nap#node-pools。 | 'Auto' 'None' |
| mode | 节点预配模式。 如果未指定,则默认值为 Manual。 | 'Auto' 'Manual' |
ManagedClusterNodeResourceGroupProfile
| Name | Description | Value |
|---|---|---|
| restrictionLevel | 应用于群集节点资源组的限制级别。 如果未指定,则默认值为“未限制” | 'ReadOnly' 'Unrestricted' |
ManagedClusterOidcIssuerProfile
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 OIDC 颁发者。 | bool |
ManagedClusterPodIdentity
| Name | Description | Value |
|---|---|---|
| bindingSelector | 要用于 AzureIdentityBinding 资源的绑定选择器。 | 字符串 |
| 标识 | 用户分配的标识详细信息。 | UserAssignedIdentity (必需) |
| name | Pod 标识的名称。 | string (必需) |
| 命名空间 | Pod 标识的命名空间。 | string (必需) |
ManagedClusterPodIdentityException
| Name | Description | Value |
|---|---|---|
| name | Pod 标识异常的名称。 | string (必需) |
| 命名空间 | Pod 标识异常的命名空间。 | string (必需) |
| podLabels | 要匹配的 Pod 标签。 | ManagedClusterPodIdentityExceptionPodLabels (必需) |
ManagedClusterPodIdentityExceptionPodLabels
| Name | Description | Value |
|---|
ManagedClusterPodIdentityProfile
| Name | Description | Value |
|---|---|---|
| allowNetworkPluginKubenet | 是否允许使用 Kubenet 网络在群集上运行 Pod 标识。 默认情况下,由于 AAD Pod 标识的安全相关特性以及 IP 欺骗的风险,在 Kubenet 中运行会禁用。 更多信息请参见using Kubenet网络插件配合AAD Pod Identity。 | bool |
| enabled | 是否启用 Pod 标识加载项。 | bool |
| userAssignedIdentities | 群集中使用的 Pod 标识。 | ManagedClusterPodIdentity[] |
| userAssignedIdentityExceptions | 允许的 Pod 标识异常。 | ManagedClusterPodIdentityException[] |
ManagedClusterPodSnapshotProfile
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用了Pod快照恢复核心扩展。 | bool |
ManagedClusterProperties
| Name | Description | Value |
|---|---|---|
| aadProfile | Azure Active Directory配置。 | ManagedClusterAADProfile |
| addonProfiles | 托管群集加载项的配置文件。 | ManagedClusterPropertiesAddonProfiles |
| agentPoolProfiles | 代理池属性。 | ManagedClusterAgentPoolProfile[] |
| agentSandboxProfile(代理沙盒配置文件) | 适用于整个集群的代理沙箱设置。 | ManagedClusterAgentSandboxProfile |
| aiToolchainOperatorProfile | 适用于整个群集的 AI 工具链作员设置。 | ManagedClusterAIToolchainOperatorProfile |
| apiServerAccessProfile | 托管集群API服务器的access配置文件。 | ManagedClusterAPIServerAccessProfile |
| autoScalerProfile | 启用时要应用于群集自动缩放程序的参数 | ManagedClusterPropertiesAutoScalerProfile |
| autoUpgradeProfile | 自动升级配置。 | ManagedClusterAutoUpgradeProfile |
| azureMonitorProfile | Azure Monitor 插件配置文件用于监控托管集群。 | ManagedClusterAzureMonitorProfile |
| bootstrapProfile | 群集启动配置的配置文件。 | ManagedClusterBootstrapProfile |
| controlPlaneScalingProfile | 配置文件用于提供可扩展且性能保证的控制平面容量,以在高负载下提供稳定的性能。 需要Kubernetes 1.33.0或更高版本。 | ManagedClusterControlPlaneScalingProfile |
| creationData | 如果使用快照创建/升级群集,则用于指定源快照 ID 的 CreationData。 | CreationData |
| disableLocalAccounts | 如果应在托管群集上禁用本地帐户。 如果设置为 true,将禁用此群集的静态凭据。 这只能在启用了 AAD 的托管群集上使用。 更多详情请参见disable local accounts。 | bool |
| diskEncryptionSetID | 用于启用静态加密的磁盘加密集的资源 ID。 此格式为:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{encryptionSetName}” | 字符串 |
| dnsPrefix | 托管群集的 DNS 前缀。 创建托管群集后,无法更新此功能。 | 字符串 |
| enableFIPS | 是否在集群层面启用FIPS模式。 启用后,该设置会强制所有 AKS 管理组件(如节点操作系统、插件和 受管理容器化组件)符合 FIPS 标准。 详情请参见 “启用集群范围的FIPS ”。 启用该属性后,集群中的所有节点池也必须启用FIPS。 尽管该特性在稳定的API版本中可用,但集群范围的FIPS仍是一个预览功能。 将该属性设置为true的写请求需要 Microsoft.ContainerService/EnableFIPSPreview 订阅功能注册。 |
bool |
| enableNamespaceResources | 启用命名空间作为 Azure 资源。 默认值为 false。 可以在创建和更新托管群集时启用/禁用它。 有关命名空间作为 ARM 资源的更多详细信息,请参阅 https://aka.ms/NamespaceARMResource 。 | bool |
| enableNodeHardening | 是否在集群层面启用节点硬化。 启用后,AKS 会对集群中所有 Linux 节点池应用软驱逐阈值、库比保留和系统保留的硬默认值。 每个节点池的kubeletConfig设置优先于固化默认值。 在运行Kubernetes 1.37及更高版本的代理池中,节点硬化默认启用且无法禁用;将该字段设置为虚假对这些池没有影响。 | bool |
| enableRBAC | 是否启用 Kubernetes Role-Based 访问控制。 | bool |
| fqdnSubdomain | 私有集群的FQDN子域,带有自定义的private dns区域。 创建托管群集后,无法更新此功能。 | 字符串 |
| 健康监测档案 | 管理集群的健康监控配置文件。 | ManagedClusterHealthMonitorProfile |
| 托管系统配置文件 | 托管系统插件的设置。 有关详细信息,请参阅 https://aka.ms/aks/automatic/systemcomponents。 | ManagedClusterHosted系统配置文件 |
| httpProxyConfig | 使用 HTTP 代理服务器预配群集的配置。 | ManagedClusterHttpProxyConfig |
| identityProfile | 与托管群集关联的用户标识。 kubelet 将使用此标识。 仅允许一个用户分配的标识。 唯一接受的密钥为“kubeletidentity”,值为“resourceId”:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 | ManagedClusterPropertiesIdentityProfile |
| ingressProfile | 托管群集的入口配置文件。 | ManagedClusterIngressProfile |
| kubernetesVersion | 用户指定的 Kubernetes 版本。 支持修补程序版本 <major.minor.patch> (例如 1.20.13)和 <major.minor> (例如 1.20)。 指定 major.minor< 后>,会自动选择最新的受支持的 GA 修补程序版本。 <创建群集后使用相同的 major.minor> 更新群集(例如 1.14.x -> 1.14)不会触发升级,即使有较新的修补程序版本可用也是如此。 升级支持的 AKS 群集时,无法跳过 Kubernetes 次要版本。 所有升级都必须按主版本号按顺序执行。 例如,允许在 1.14.x -> 1.15.x 或 1.15.x -> 1.16.x 之间进行升级,但不允许使用 1.14.x -> 1.16.x。 详情请参见升级一个AKS集群。 | 字符串 |
| linuxProfile | 托管群集中 Linux VM 的配置文件。 | ContainerServiceLinuxProfile |
| metricsProfile | 可选群集指标配置。 | ManagedClusterMetricsProfile |
| networkProfile | 网络配置文件。 | ContainerServiceNetworkProfile |
| nodeDisruptionProfile | 托管集群的节点中断配置文件。 | 节点破坏配置文件 |
| nodeProvisioningProfile | 适用于整个群集的节点预配设置。 | ManagedClusterNodeProvisioningProfile |
| nodeResourceGroup | 包含代理池节点的资源组的名称。 | 字符串 |
| nodeResourceGroupProfile | 节点资源组配置的配置文件。 | ManagedClusterNodeResourceGroupProfile |
| oidcIssuerProfile | 托管群集的 OIDC 颁发者配置文件。 | ManagedClusterOidcIssuerProfile |
| podIdentityProfile | 托管群集的 Pod 标识配置文件。 有关AAD舱体身份集成的更多细节,请参见use AAD pod idid。 | ManagedClusterPodIdentityProfile |
| pod快照配置文件 | 托管集群的Pod快照恢复配置文件。 | ManagedClusterPodSnapshotProfile |
| privateLinkResources | 与集群关联的Private link资源。 | PrivateLinkResource[] |
| publicNetworkAccess | PublicNetworkAccess 的 PublicNetworkAccess 中。 允许或拒绝AKS的公共网络access | 'Disabled' 'Enabled' “SecuredByPerimeter” |
| schedulerProfile | 带有调度器相关设置的配置文件,比如每个调度器由 AKS 管理的配置模式。 请参阅 https://aka.ms/aks/scheduler-profile。 | SchedulerProfile |
| securityProfile | 托管群集的安全配置文件。 | ManagedClusterSecurityProfile |
| serviceMeshProfile | 托管群集的服务网格配置文件。 | ServiceMeshProfile |
| servicePrincipalProfile | 关于集群用于作Azure API的服务主体身份信息。 | ManagedClusterServicePrincipalProfile |
| 状态 | 包含有关托管群集的只读信息。 | ManagedClusterStatus |
| storageProfile | 管理集群的 Storage 配置文件。 | ManagedClusterStorageProfile |
| supportPlan | 托管群集的支持计划。 如果未指定,则默认值为“KubernetesOfficial”。 | 'AKSLongTermSupport' 'KubernetesOfficial' |
| upgradeSettings | 用于升级群集的设置。 | ClusterUpgradeSettings |
| windowsProfile | 托管群集中 Windows VM 的配置文件。 | ManagedClusterWindowsProfile |
| workloadAutoScalerProfile | 托管群集的工作负荷自动缩放程序配置文件。 | ManagedClusterWorkloadAutoScalerProfile |
ManagedClusterPropertiesAddonProfiles
| Name | Description | Value |
|---|
ManagedClusterPropertiesAutoScalerProfile
| Name | Description | Value |
|---|---|---|
| balance-similar-node-groups | 检测类似节点池并在各池之间均衡节点数。 有效值为“true”和“false” | 字符串 |
| daemonset-eviction-for-empty-nodes | DaemonSet Pod 将从空节点正常终止。 如果设置为 true,则会在删除节点之前逐出空节点上的所有守护程序集 Pod。 如果无法逐出守护程序集 Pod,则会选择另一个节点进行缩放。 如果设置为 false,则会删除节点,而无需确保删除或逐出守护程序集 Pod。 | bool |
| daemonset-eviction-for-occupied-nodes | DaemonSet Pod 将从非空节点正常终止。 如果设置为 true,则会在删除节点之前逐出占用节点上的所有守护程序集 Pod。 如果无法逐出守护程序集 Pod,则会选择另一个节点进行缩放。 如果设置为 false,则会删除节点,而无需确保删除或逐出守护程序集 Pod。 | bool |
| expander | 纵向扩展时要使用的扩展器。 如果未指定,则默认值为“random”。 更多信息请参见扩展器。 | 'least-waste' 'most-pods' 'priority' 'random' |
| ignore-daemonsets-utilization | CA 在计算缩减的资源利用率时是否应该忽略 DaemonSet Pod。 如果设置为 true,则当做出缩减决策时,将考虑守护程序集使用的资源。 | bool |
| max-empty-bulk-delete | 可以同时删除的最大空节点数。 这必须是正整数。 默认值是10。 | 字符串 |
| max-graceful-termination-sec | 群集自动缩放程序在尝试缩减节点时等待 Pod 终止的最大秒数。 默认值为 600。 | 字符串 |
| max-node-provision-time | 自动缩放程序等待预配节点的最长时间。 默认值为“15m”。 值必须是后跟“m”的整数。 不支持除分钟(m)以外的时间单位。 | 字符串 |
| max-total-unready-percentage | 群集中未读节点的最大百分比。 超过此百分比后,群集自动缩放程序将停止作。 默认值为 45。 最大值为 100,最小值为 0。 | 字符串 |
| new-pod-scale-up-delay | 在某个年龄之前忽略未计划的 Pod。 对于在 kubernetes 计划程序可以计划所有 Pod 之前不希望 CA 执行作的突发/批处理缩放方案,可以告诉 CA 在某个年龄之前忽略未计划的 Pod。 默认值为“0s”。 值必须是一个整数,后跟一个单位(以秒为单位,“m”表示分钟,“h”表示小时等)。 | 字符串 |
| ok-total-unready-count | 允许的未读节点数,而不考虑最大总未读百分比。 这必须是整数。 默认值是3。 | 字符串 |
| scale-down-delay-after-add | 纵向扩展后多长时间纵向缩减评估恢复。 默认值为“10m”。 值必须是后跟“m”的整数。 不支持除分钟(m)以外的时间单位。 | 字符串 |
| scale-down-delay-after-delete | 删除节点后多长时间纵向缩减评估恢复。 默认值为扫描间隔。 值必须是后跟“m”的整数。 不支持除分钟(m)以外的时间单位。 | 字符串 |
| scale-down-delay-after-failure | 纵向缩减失败后多长时间纵向缩减评估恢复。 默认值为“3m”。 值必须是后跟“m”的整数。 不支持除分钟(m)以外的时间单位。 | 字符串 |
| scale-down-unneeded-time | 节点在有资格缩减之前,应该不需要多长时间。 默认值为“10m”。 值必须是后跟“m”的整数。 不支持除分钟(m)以外的时间单位。 | 字符串 |
| scale-down-unready-time | 未就绪的节点在符合缩减条件之前应不需要多长时间。 默认值为“20m”。 值必须是后跟“m”的整数。 不支持除分钟(m)以外的时间单位。 | 字符串 |
| scale-down-utilization-threshold | 节点利用率级别(定义为请求的资源之和除以容量)后,可以考虑节点进行缩减。 默认值为“0.5”。 | 字符串 |
| scan-interval | 重新评估群集以纵向扩展或缩减的频率。 默认值为“10”。 值必须是整数秒数。 | 字符串 |
| 带本地节点的跳storage | 如果集群自动扩展器会跳过带有本地storage的节点,比如EmptyDir或HostPath。 默认值为 true。 | 字符串 |
| skip-nodes-with-system-pods | 如果集群自动扩缩器会跳过从 kube-system 中删除带有 Pod 的节点(DaemonSet 或镜像 Pod 除外)。 默认值为 true。 | 字符串 |
ManagedClusterPropertiesIdentityProfile
| Name | Description | Value |
|---|
ManagedClusterSecurityProfile
| Name | Description | Value |
|---|---|---|
| azureKeyVaultKms | Azure 密钥保管库 密钥管理服务安全配置文件的设置。 | AzureKeyVaultKms |
| customCATrustCertificates | 最多 10 个 base64 编码 CA 的列表,该 CA 将添加到群集中所有节点上的信任存储中。 更多信息请参见自定义CA信任证书。 | any[] |
| defender | Microsoft Defender 关于安全配置文件的设置。 | ManagedClusterSecurityProfileDefender |
| imageCleaner | 安全配置文件的图像清理器设置。 | ManagedClusterSecurityProfileImageCleaner |
| imageIntegrity | 图像完整性是一项与 Azure Policy 配合使用的功能,用于通过签名验证图像完整性。 除非应用 Azure Policy 强制执行镜像签名,否则这不会有任何影响。 了解如何 https://aka.ms/aks/image-integrity 通过策略使用此功能。 | ManagedClusterSecurityProfileImageIntegrity |
| kubernetesResourceObjectEncryptionProfile | 对 Kubernetes 资源对象进行静态加密。 有关这方面的更多信息,请访问 https://aka.ms/aks/kubernetesResourceObjectEncryption | KubernetesResourceObjectEncryptionProfile |
| nodeRestriction | 节点限制设置 安全配置文件。 | ManagedClusterSecurityProfileNodeRestriction |
| serviceAccountImagePullProfile | 定义基于服务账户的图片拉取设置。 | ServiceAccountImagePullProfile |
| workloadIdentity | 安全配置文件的工作负荷标识设置。 工作负载身份使 Kubernetes 应用能够通过 Azure AD 安全地access Azure云资源。 有关详细信息,请参阅 https://aka.ms/aks/wi。 | ManagedClusterSecurityProfileWorkloadIdentity |
ManagedClusterSecurityProfileDefender
| Name | Description | Value |
|---|---|---|
| logAnalyticsWorkspaceResourceId | 与 Microsoft Defender 关联的日志分析工作区资源 ID。 启用 Microsoft Defender 时,该字段为必填且必须是有效的工作空间资源 ID。 禁用 Microsoft Defender 时,保持字段空白。 | 字符串 |
| securityGating | Microsoft Defender 关于安全门控的设置。 这验证了基于Defender for Containers安全发现的容器映像部署资格。 通过使用准入控制器,它会审计或阻止不符合安全标准的镜像部署。 有关详细信息,请参阅 https://aka.ms/KubernetesDefenderAuditRule。 | ManagedClusterSecurityProfileDefenderSecurityGating |
| securityMonitoring | Microsoft Defender 威胁检测,用于安全配置文件的云设置。 | ManagedClusterSecurityProfileDefenderSecurityMonitoring |
ManagedClusterSecurityProfileDefenderSecurityGating
| Name | Description | Value |
|---|---|---|
| allowSecretAccess | 仅在注册表访问通过秘密身份而非托管身份授予时使用。 设置是否授予Defender门控代理访问集群机密以从注册库拉取图像的权限。 如果秘密访问被拒绝且注册表要求拉取密钥,插件将不会进行镜像验证。 默认值为 false。 | bool |
| enabled | 是否启用 Defender 安全检查。 启用后,门控功能会扫描容器镜像,并审计或阻止不符合配置安全规则安全标准的镜像部署。 有关详细信息,请参阅 https://aka.ms/KubernetesDefenderAuditRule。 | bool |
| 身份 | 准入控制员用来从注册库拉取安全工件的身份列表。 这些标识与群集用于拉取容器映像的标识相同。 有关配置该身份的更多信息,请参见 /azure/defender-for-cloud/gated-deployment-infrastructure-as-code。 | 管理集群安全配置文件防御者安全门关身份[] |
ManagedClusterSecurityProfileDefenderSecurityGatingIdentity
| Name | Description | Value |
|---|---|---|
| azureContainerRegistry | 将为其使用标识的容器注册表;此处指定的标识应附加联合标识凭据。 | 字符串 |
| 标识 | 用于access注册表的身份对象 | UserAssignedIdentity |
ManagedClusterSecurityProfileDefenderSecurityMonitoring
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 Defender 威胁检测 | bool |
ManagedClusterSecurityProfileImageCleaner
| Name | Description | Value |
|---|---|---|
| enabled | 是否在 AKS 群集上启用映像清理器。 | bool |
| intervalHours | 图像清理器扫描间隔(以小时为单位)。 | int |
ManagedClusterSecurityProfileImageIntegrity
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用映像完整性。 默认值为 false。 | bool |
ManagedClusterSecurityProfileNodeRestriction
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用节点限制 | bool |
ManagedClusterSecurityProfileWorkloadIdentity
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用工作负荷标识。 | bool |
ManagedClusterServicePrincipalProfile
| Name | Description | Value |
|---|---|---|
| clientId | 服务主体的 ID。 | string (必需) |
| 机密 | 以纯文本形式与服务主体关联的机密密码。 | string Constraints: 敏感值。 以安全参数的形式传入。 |
ManagedClusterSKU
| Name | Description | Value |
|---|---|---|
| name | 托管群集 SKU 的名称。 | 'Automatic' 'Base' |
| 分层 | 托管群集 SKU 的层。 如果未指定,则默认值为“Free”。 详情请参见AKS定价层级。 | 'Free' 'Premium' 'Standard' |
ManagedClusterStaticEgressGatewayProfile
| Name | Description | Value |
|---|---|---|
| enabled | 启用 Static Egress Gateway 插件。 指示是否启用静态出口网关加载项。 | bool |
ManagedClusterStatus
| Name | Description | Value |
|---|
ManagedClusterStorageProfile
| Name | Description | Value |
|---|---|---|
| blobCSIDriver | AzureBlob CSI 驱动对 storage 配置文件的设置。 | ManagedClusterStorageProfileBlobCSIDriver |
| diskCSIDriver | AzureDisk CSI 驱动对 storage 配置文件的设置。 | ManagedClusterStorageProfileDiskCSIDriver |
| fileCSIDriver | AzureFile CSI 驱动对 storage 配置文件的设置。 | ManagedClusterStorageProfileFileCSIDriver |
| snapshotController | storage配置文件的快照控制器设置。 | ManagedClusterStorageProfileSnapshotController |
ManagedClusterStorageProfileBlobCSIDriver
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 AzureBlob CSI 驱动程序。 默认值为 false。 | bool |
ManagedClusterStorageProfileDiskCSIDriver
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 AzureDisk CSI 驱动程序。 默认值为真。 | bool |
| 快速联结脱离 | 快速连接 AzureDisk CSI 驱动的分离设置。 快速连接分离通过绕过ARM/CRP控制平面瓶颈,实现更快速、更高规模的Azure磁盘附加和分离操作,适用于有状态的AKS工作负载。 有关详细信息,请参阅 https://aka.ms/aks/qad。 | ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach |
ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 AzureDisk CSI 驱动的快速附件分离功能。 默认值为 false。 | bool |
ManagedClusterStorageProfileFileCSIDriver
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 AzureFile CSI 驱动程序。 默认值为真。 | bool |
ManagedClusterStorageProfileSnapshotController
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用快照控制器。 默认值为真。 | bool |
ManagedClusterWebAppRoutingGatewayAPIImplementations
| Name | Description | Value |
|---|---|---|
| appRoutingIstio | 配置是通过Gateway API和应用路由使用无侧车的Istio控制平面进行托管入口。 关于通过Gateway API使用Istio进行入口的信息,请参见 https://aka.ms/gateway-on-istio 相关信息。 | ManagedClusterAppRoutingIstio |
ManagedClusterWindowsProfile
| Name | Description | Value |
|---|---|---|
| adminPassword | 指定管理员帐户的密码。 最小长度: 8 个字符 最大长度: 123 个字符 复杂性要求:需要满足以下 4 个条件中的 3 个 字符数较低 具有大写字符 包含数字 具有特殊字符(正则表达式匹配 [\W_]) 不允许的值:“abc@123”、“P@$$w 0rd”、“P@ssw0rd”、“P@ssword123”、“Pa$$word”、“pass@word1”、“Password!”、“Password1”、“Password22”、“iloveyou!” |
string Constraints: 敏感值。 以安全参数的形式传入。 |
| adminUsername | 指定管理员帐户的名称。 限制: 不能以“.” 结尾。 不允许的值:“administrator”、“admin”、“user”、“user1”、“test”、“user2”、“test1”、“user3”、“admin1”、“1”, “123”、“a”、“actuser”、“adm”、“admin2”、“aspnet”、“backup”、“console”、“david”、“guest”、“john”、“owner”、“root”、“server”、“sql”、“support”、“support_388945a0”、“sys”、“test2”、“test3”、“user4”、“user5”。 最小长度: 1 个字符 最大长度: 20 个字符 |
string (必需) |
| enableCSIProxy | 是否启用 CSI 代理。 有关CSI代理的更多细节,请参见CSI代理 GitHub repo。 | bool |
| gmsaProfile | 托管群集中的 Windows gMSA 配置文件。 | WindowsGmsaProfile |
| licenseType | 用于 Windows VM 的许可证类型。 详情请参见 Azure 混合用户优势。 | 'None' 'Windows_Server' |
ManagedClusterWorkloadAutoScalerProfile
| Name | Description | Value |
|---|---|---|
| keda | KEDA(Kubernetes 事件驱动的自动缩放)设置,用于工作负荷自动缩放程序配置文件。 | ManagedClusterWorkloadAutoScalerProfileKeda |
| verticalPodAutoscaler | 工作负荷自动缩放程序配置文件的 VPA(垂直 Pod 自动缩放程序)设置。 | ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler |
ManagedClusterWorkloadAutoScalerProfileKeda
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 KEDA。 | bool (必需) |
ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler
| Name | Description | Value |
|---|---|---|
| addonAutoscaling | 是否启用 VPA 加载项并将其配置为缩放 AKS 管理的加载项。 | 'Disabled' 'Enabled' |
| enabled | 是否启用 VPA。 默认值为 false。 | bool (必需) |
ManagedServiceIdentityUserAssignedIdentitiesValue
| Name | Description | Value |
|---|
ManualScaleProfile
| Name | Description | Value |
|---|---|---|
| count | 节点数。 | int |
| size | AKS 在创建和缩放时将使用的 VM 大小,例如“Standard_E4s_v3”、“Standard_E16s_v3”或“Standard_D16s_v5”。 | 字符串 |
节点破坏配置文件
| Name | Description | Value |
|---|---|---|
| nodeDisruptionPolicy | 关于何时允许某些需要节点重映像和触发重新部署的操作的策略配置。 例如,一些操作,比如更新 .properties。在现有托管集群上,ManagedClusterSecurityProfile.customCATrustCertificates 字段,触发节点的滚动更新。 该设置允许控制何时接受此类更新。 默认是“允许”。 有关涵盖行动的完整列表请参见 aka.ms/aks/nodedisruptionpolicy“。 | “允许” “允许维护窗口” “Block” |
NvidiaGPUProfile
| Name | Description | Value |
|---|---|---|
| 驾驶模式 | NVIDIA GPU 资源分配模式。 DevicePlugin 安装了 NVIDIA Kubernetes 设备插件。 DRA安装了NVIDIA DRA驱动。 |
“设备插件” “DRA” |
| 管理模式 | 托管GPU体验会在GPU驱动之上安装额外组件,比如数据中心GPU管理器(DCGM)指标用于监控。 想了解更多安装内容,请查看 aka.ms/aks/managed-gpu。 | 'Managed' 'Unmanaged' |
| migProfiles | 分配给每个支持的 NVIDIA GPU 的 MIG(多实例 GPU)分区配置文件的顺序列表。 当 migStrategy 时 Single,必须指定一个配置文件。 当 migStrategy 时 Mixed,可以指定一个或多个配置文件,并根据代理池 GPU 虚拟机大小的 MIG 几何结构进行验证。 同一值可能多次出现以请求多个相同大小的分区。 该字段与顶层 gpuInstanceProfile 属性互斥。 有关详细信息,请参阅 https://aka.ms/aks/managed-gpu。 |
包含任一项的字符串数组: 'MIG1g' 'MIG2g' 'MIG3g' 'MIG4g' 'MIG7g' |
| migStrategy | 设定用于托管MIG支持的MIG(多实例GPU)策略。 想了解更多不同策略的信息,请访问 aka.ms/aks/managed-gpu。 未指定时,默认为无。 | “Mixed” 'None' 'Single' |
PortRange
| Name | Description | Value |
|---|---|---|
| portEnd | 范围中包含的最大端口。 它的范围应从 1 到 65535,并且大于或等于 portStart。 | int Constraints: 最小值 = 1 最大值 = 65535 |
| portStart | 范围中包含的最小端口。 它的范围应从 1 到 65535,并且小于或等于 portEnd。 | int Constraints: 最小值 = 1 最大值 = 65535 |
| 协议 | 端口的网络协议。 | 'TCP' 'UDP' |
PowerState
| Name | Description | Value |
|---|---|---|
| 代码 | 指示群集是正在运行还是已停止 | 'Running' 'Stopped' |
PreparedImageSpecificationProfile
| Name | Description | Value |
|---|---|---|
| preparedImageSpecificationId | 准备好的图像规范资源的资源ID。 这可以包括一个版本。 省略该版本将使用最新版本的预备镜像规范。 | 字符串 |
PrivateLinkResource
| Name | Description | Value |
|---|---|---|
| groupId | 资源的组 ID。 | 字符串 |
| id | private link资源的ID。 | 字符串 |
| name | private link资源的名称。 详情请参见 命名规则 。 | 字符串 |
| requiredMembers | 资源的 RequiredMembers | string[] |
| 类型 | 资源类型。 | 字符串 |
ResourceReference
| Name | Description | Value |
|---|---|---|
| id | 完全合格的Azure资源ID。 | 字符串 |
ScaleProfile
| Name | Description | Value |
|---|---|---|
| 自动缩放 | 有关如何在预定义大小范围内自动缩放 VirtualMachines 代理池的规范。 每个配置文件针对特定的虚拟机SKU,并独立评估。 配置文件间的缩放决策由集群自动缩放扩展器控制, 可通过 ManagedCluster.properties.autoScalerProfile.expander配置。 |
AutoScaleProfile[] |
| manual | 有关如何将 VirtualMachines 代理池缩放为固定大小的规范。 | ManualScaleProfile[] |
SchedulerInstanceProfile
| Name | Description | Value |
|---|---|---|
| schedulerConfigMode | 配置模式将由 AKS 管理的调度器使用。 | “Default” 'ManagedByCRD' |
SchedulerProfile
| Name | Description | Value |
|---|---|---|
| Upstream | 带有与上游变体 kube 调度器相关设置的配置文件(https://github.com/kubernetes/kubernetes/tree/master/pkg/scheduler)。 | SchedulerInstanceProfile |
ServiceAccountImagePullProfile
| Name | Description | Value |
|---|---|---|
| defaultManagedIdentityId | 可选。 用于集群层拉取图像的默认管理身份资源ID。 配置后,如果 Pod 的服务账户没有明确指定拉取图片的身份,则使用该身份。 如果未配置且服务账户层面未指定身份,图片将通过匿名认证被拉取。 | 字符串 |
| enabled | 指示是否启用基于服务账户的映像拉取,此时需要身份绑定才能使用托管身份进行认证。 有关详细信息,请参阅https://aka.ms/aks/identity-binding-docs。 | bool |
ServiceMeshProfile
| Name | Description | Value |
|---|---|---|
| istio | Istio 服务网格配置。 | IstioServiceMesh |
| mode | 服务网格的模式。 | 'Disabled' 'Istio'(必填) |
软驱逐宽限期
| Name | Description | Value |
|---|---|---|
| 内存可用 | 内存可用的软驱逐信号宽限期,以 Go 风格的持续时间字符串表示(例如 '30s', '1m30s')。 支持的单位为“ns”、“us”、“ms”、“s”、“m”和“h”。 必须大于或等于“30”。 默认是“30多”。 | 字符串 |
| nodeFsAvailable | nodeFsAvailable 软驱逐信号的宽限期,以 Go 风格的持续时间字符串表示(例如 '30s', '1m30s')。 支持的单位为“ns”、“us”、“ms”、“s”、“m”和“h”。 必须大于或等于“30”。 默认是“2m”。 | 字符串 |
| nodeFsInodesFree(节点自由) | nodeFsInodesFree 软驱逐信号的宽限期,以 Go 风格的持续时间字符串表示(例如 '30s', '1m30s')。 支持的单位为“ns”、“us”、“ms”、“s”、“m”和“h”。 必须大于或等于“30”。 默认是“2m”。 | 字符串 |
软驱逐阈值
| Name | Description | Value |
|---|---|---|
| 内存可用 | 软舱被驱逐的可用内存阈值。 接受绝对值(例如“500英里”)或百分比值(例如“5%”)。 绝对最低距离为100英里;最低百分比是2%。 默认采用基于容量的阶梯:=8GiB节点为500Mi,16GiB <为750Mi,=32GiB为 >1024Mi(1Gi)。 还必须大于有效 hardEvictionThreshold.memoryAvailable。 | 字符串 |
| nodeFsAvailable | 软荚被驱逐的可用节点文件系统空间阈值。 接受绝对值(例如“1Gi”)或百分比值(例如“10%”)。 默认是“12%”。 必须大于或等于10% 且大于有效hardEvictionThreshold.nodeFsAvailable。 | 字符串 |
| nodeFsInodesFree(节点自由) | 节点文件系统中可用inode的阈值低于该阈值触发软荚驱逐。 接受绝对inode计数(例如“100000”)或百分比值(例如“5%”)。 默认是“7%”。 百分比值必须大于或等于5% 且大于有效hardEvictionThreshold.nodeFsInodesFree。 | 字符串 |
SysctlConfig
| Name | Description | Value |
|---|---|---|
| fsAioMaxNr | Sysctl 设置 fs.aio-max-nr。 | int |
| fsFileMax | Sysctl 设置 fs.file-max。 | int |
| fsInotifyMaxUserWatches | Sysctl 设置 fs.inotify.max_user_watches。 | int |
| fsNrOpen | Sysctl 设置fs.nr_open。 | int |
| kernelThreadsMax | Sysctl 设置 kernel.threads-max。 | int |
| netCoreNetdevMaxBacklog | Sysctl 设置net.core.netdev_max_backlog。 | int |
| netCoreOptmemMax | Sysctl 设置net.core.optmem_max。 | int |
| netCoreRmemDefault | Sysctl 设置net.core.rmem_default。 | int |
| netCoreRmemMax | Sysctl 设置net.core.rmem_max。 | int |
| netCoreSomaxconn | Sysctl 设置 net.core.somaxconn。 | int |
| netCoreWmemDefault | Sysctl 设置net.core.wmem_default。 | int |
| netCoreWmemMax | Sysctl 设置net.core.wmem_max。 | int |
| netIpv4IpLocalPortRange | Sysctl 设置net.ipv4.ip_local_port_range。 | 字符串 |
| netIpv4NeighDefaultGcThresh1 | Sysctl 设置net.ipv4.neigh.default.gc_thresh1。 | int |
| netIpv4NeighDefaultGcThresh2 | Sysctl 设置net.ipv4.neigh.default.gc_thresh2。 | int |
| netIpv4NeighDefaultGcThresh3 | Sysctl 设置net.ipv4.neigh.default.gc_thresh3。 | int |
| netIpv4TcpFinTimeout | Sysctl 设置net.ipv4.tcp_fin_timeout。 | int |
| netIpv4TcpkeepaliveIntvl | Sysctl 设置net.ipv4.tcp_keepalive_intvl。 | int Constraints: 最小值 = 10 最大值 = 90 |
| netIpv4TcpKeepaliveProbes | Sysctl 设置net.ipv4.tcp_keepalive_probes。 | int |
| netIpv4TcpKeepaliveTime | Sysctl 设置net.ipv4.tcp_keepalive_time。 | int |
| netIpv4TcpMaxSynBacklog | Sysctl 设置net.ipv4.tcp_max_syn_backlog。 | int |
| netIpv4TcpMaxTwBuckets | Sysctl 设置net.ipv4.tcp_max_tw_buckets。 | int |
| netIpv4TcpTwReuse | Sysctl 设置net.ipv4.tcp_tw_reuse。 | bool |
| netNetfilterNfConntrackBuckets | Sysctl 设置net.netfilter.nf_conntrack_buckets。 | int Constraints: 最小值 = 65536 最大值 = 524288 |
| netNetfilterNfConntrackMax | Sysctl 设置net.netfilter.nf_conntrack_max。 | int Constraints: 最小值 = 131072 最大值 = 2097152 |
| vmMaxMapCount | Sysctl 设置 vm.max_map_count。 | int |
| vmSwappiness | Sysctl 设置 vm.swappiness。 | int |
| vmVfsCachePressure | Sysctl 设置vm.vfs_cache_pressure。 | int |
TrackedResourceTags
| Name | Description | Value |
|---|
升级门设置
| Name | Description | Value |
|---|---|---|
| enabled | 升级门禁是否启用了。 当未设置时,默认为 false ,除非在新创建的集群代理池中启用升级门禁时,默认为 true。 当 true时,对相应范围内的升级激活了升级门槛健康检查。 将此 true 设置为集群范围,可以实现整个集群的门禁,包括所有代理池升级。 当集群范围未设置或 false时,代理池可以通过将其设置为 true独立选择加入。 当集群范围为 true时,代理池无法将其设置为 false。 强制升级(overrideSettings.forceUpgrade)覆盖门:在覆盖窗口激活时,升级跳过健康信号验证并继续。 |
bool |
UpgradeOverrideSettings
| Name | Description | Value |
|---|---|---|
| forceUpgrade | 是否强制升级群集。 请注意,此选项指示升级作绕过升级保护,例如检查已弃用的 API 使用情况。 仅谨慎启用此选项。 | bool |
| until | 直到重写生效为止。 请注意,这仅与升级的开始时间匹配,即使升级继续进行时 until 过期,升级的有效性也不会更改。 默认情况下不设置此字段。 必须设置重写才能生效。 |
字符串 |
UserAssignedIdentity
| Name | Description | Value |
|---|---|---|
| clientId | 用户分配标识的客户端 ID。 | 字符串 |
| objectId | 用户分配标识的对象 ID。 | 字符串 |
| resourceId | 用户分配标识的资源 ID。 | 字符串 |
VirtualMachineNodes
| Name | Description | Value |
|---|---|---|
| count | 节点数。 | int |
| size | 用于托管此节点组的代理的 VM 大小。 | 字符串 |
VirtualMachinesProfile
| Name | Description | Value |
|---|---|---|
| 缩放 | 有关如何缩放 VirtualMachines 代理池的规范。 | ScaleProfile |
WindowsGmsaProfile
| Name | Description | Value |
|---|---|---|
| dnsServer | 指定 Windows gMSA 的 DNS 服务器。 如果在用于创建托管群集的 vnet 中配置了 DNS 服务器,则将其设置为空。 |
字符串 |
| enabled | 是否启用 Windows gMSA。 指定是否在托管群集中启用 Windows gMSA。 | bool |
| rootDomainName | 指定 Windows gMSA 的根域名。 如果在用于创建托管群集的 vnet 中配置了 DNS 服务器,则将其设置为空。 |
字符串 |
Terraform (AzAPI 提供程序)资源定义
可以使用目标作部署 managedClusters 资源类型:
- 资源组 关于每个API版本中变更属性的列表,请参见 更改日志。
用法示例
Terraform 示例
一个部署托管Kubernetes 集群(也称为 AKS / Azure Kubernetes 服务)的基本示例。
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westeurope"
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "managedCluster" {
type = "Microsoft.ContainerService/managedClusters@2023-04-02-preview"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
identity {
type = "SystemAssigned"
identity_ids = []
}
body = {
properties = {
agentPoolProfiles = [
{
count = 1
mode = "System"
name = "default"
vmSize = "Standard_DS2_v2"
},
]
dnsPrefix = var.resource_name
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
Azure verified modules
以下 Azure 验证模块可用于部署该资源类型。
| Module | Description |
|---|---|
| AKS 托管集群 | 适用于 AKS 托管群集的 AVM 资源模块 |
资源格式
若要创建 Microsoft.ContainerService/managedClusters 资源,请将以下 Terraform 添加到模板。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.ContainerService/managedClusters@2026-08-02-preview"
name = "string"
parent_id = "string"
identity {
type = "string"
identity_ids = [
"string"
]
}
location = "string"
tags = {
{customized property} = "string"
}
body = {
extendedLocation = {
name = "string"
type = "string"
}
kind = "string"
properties = {
aadProfile = {
adminGroupObjectIDs = [
"string"
]
clientAppID = "string"
enableAzureRBAC = bool
managed = bool
serverAppID = "string"
serverAppSecret = "string"
tenantID = "string"
}
addonProfiles = {
{customized property} = {
config = {
{customized property} = "string"
}
enabled = bool
}
}
agentPoolProfiles = [
{
artifactStreamingProfile = {
enabled = bool
}
availabilityZones = [
"string"
]
capacityReservationGroupID = "string"
count = int
creationData = {
sourceResourceId = "string"
}
enableAutoScaling = bool
enableEncryptionAtHost = bool
enableFIPS = bool
enableNodePublicIP = bool
enableOSDiskFullCaching = bool
enableUltraSSD = bool
gatewayProfile = {
publicIPPrefixSize = int
}
gpuInstanceProfile = "string"
gpuProfile = {
driver = "string"
driverType = "string"
nvidia = {
driverMode = "string"
managementMode = "string"
migProfiles = [
"string"
]
migStrategy = "string"
}
}
hostGroupID = "string"
kubeletConfig = {
allowedUnsafeSysctls = [
"string"
]
containerLogMaxFiles = int
containerLogMaxSizeMB = int
cpuCfsQuota = bool
cpuCfsQuotaPeriod = "string"
cpuManagerPolicy = "string"
evictionMaxPodGracePeriodInSeconds = int
failSwapOn = bool
hardEvictionThreshold = {
memoryAvailable = "string"
nodeFsAvailable = "string"
nodeFsInodesFree = "string"
}
imageGcHighThreshold = int
imageGcLowThreshold = int
kubeReserved = {
cpuMillicores = int
memoryMB = int
}
podMaxPids = int
seccompDefault = "string"
softEvictionGracePeriod = {
memoryAvailable = "string"
nodeFsAvailable = "string"
nodeFsInodesFree = "string"
}
softEvictionThreshold = {
memoryAvailable = "string"
nodeFsAvailable = "string"
nodeFsInodesFree = "string"
}
topologyManagerPolicy = "string"
}
kubeletDiskType = "string"
linuxOSConfig = {
swapFileSizeMB = int
sysctls = {
fsAioMaxNr = int
fsFileMax = int
fsInotifyMaxUserWatches = int
fsNrOpen = int
kernelThreadsMax = int
netCoreNetdevMaxBacklog = int
netCoreOptmemMax = int
netCoreRmemDefault = int
netCoreRmemMax = int
netCoreSomaxconn = int
netCoreWmemDefault = int
netCoreWmemMax = int
netIpv4IpLocalPortRange = "string"
netIpv4NeighDefaultGcThresh1 = int
netIpv4NeighDefaultGcThresh2 = int
netIpv4NeighDefaultGcThresh3 = int
netIpv4TcpFinTimeout = int
netIpv4TcpkeepaliveIntvl = int
netIpv4TcpKeepaliveProbes = int
netIpv4TcpKeepaliveTime = int
netIpv4TcpMaxSynBacklog = int
netIpv4TcpMaxTwBuckets = int
netIpv4TcpTwReuse = bool
netNetfilterNfConntrackBuckets = int
netNetfilterNfConntrackMax = int
vmMaxMapCount = int
vmSwappiness = int
vmVfsCachePressure = int
}
transparentHugePageDefrag = "string"
transparentHugePageEnabled = "string"
}
localDNSProfile = {
kubeDNSOverrides = {
{customized property} = {
cacheDurationInSeconds = int
forwardDestination = "string"
forwardPolicy = "string"
maxConcurrent = int
protocol = "string"
queryLogging = "string"
serveStale = "string"
serveStaleDurationInSeconds = int
}
}
mode = "string"
vnetDNSOverrides = {
{customized property} = {
cacheDurationInSeconds = int
forwardDestination = "string"
forwardPolicy = "string"
maxConcurrent = int
protocol = "string"
queryLogging = "string"
serveStale = "string"
serveStaleDurationInSeconds = int
}
}
}
maxCount = int
maxPods = int
messageOfTheDay = "string"
minCount = int
mode = "string"
name = "string"
networkProfile = {
allowedHostPorts = [
{
portEnd = int
portStart = int
protocol = "string"
}
]
applicationSecurityGroups = [
"string"
]
dranet = {
mode = "string"
}
nodePublicIPPrefixIDs = [
"string"
]
nodePublicIPTags = [
{
ipTagType = "string"
tag = "string"
}
]
secondaryNetworkInterfaces = [
{
enableAcceleratedNetworking = bool
publicIPAddressConfiguration = {
ipTags = [
{
ipTagType = "string"
tag = "string"
}
]
publicIPAddressVersion = "string"
publicIPPrefixID = "string"
}
type = "string"
vnetSubnetId = "string"
}
]
}
nodeImageVersion = "string"
nodeInitializationTaints = [
"string"
]
nodeLabels = {
{customized property} = "string"
}
nodePublicIPPrefixID = "string"
nodeTaints = [
"string"
]
orchestratorVersion = "string"
osDiskSizeGB = int
osDiskType = "string"
osSKU = "string"
osType = "string"
podIPAllocationMode = "string"
podSubnetID = "string"
powerState = {
code = "string"
}
preparedImageSpecificationProfile = {
preparedImageSpecificationId = "string"
}
proximityPlacementGroupID = "string"
scaleDownMode = "string"
scaleSetEvictionPolicy = "string"
scaleSetPriority = "string"
securityProfile = {
enableSecureBoot = bool
enableVTPM = bool
sshAccess = "string"
}
spotMaxPrice = int
status = {
}
tags = {
{customized property} = "string"
}
type = "string"
upgradeSettings = {
drainTimeoutInMinutes = int
maxBlockedNodes = "string"
maxSurge = "string"
maxUnavailable = "string"
nodeSoakDurationInMinutes = int
undrainableNodeBehavior = "string"
upgradeGateSettings = {
enabled = bool
}
}
upgradeSettingsBlueGreen = {
batchSoakDurationInMinutes = int
drainBatchSize = "string"
drainTimeoutInMinutes = int
finalSoakDurationInMinutes = int
}
upgradeStrategy = "string"
virtualMachineNodesStatus = [
{
count = int
size = "string"
}
]
virtualMachinesProfile = {
scale = {
autoscale = [
{
maxCount = int
minCount = int
size = "string"
}
]
manual = [
{
count = int
size = "string"
}
]
}
}
vmSize = "string"
vnetSubnetID = "string"
windowsProfile = {
disableOutboundNat = bool
}
workloadRuntime = "string"
}
]
agentSandboxProfile = {
enabled = bool
}
aiToolchainOperatorProfile = {
enabled = bool
}
apiServerAccessProfile = {
authorizedIPRanges = [
"string"
]
disableRunCommand = bool
enablePrivateCluster = bool
enablePrivateClusterPublicFQDN = bool
enableVnetIntegration = bool
privateDNSZone = "string"
subnetId = "string"
}
autoScalerProfile = {
balance-similar-node-groups = "string"
daemonset-eviction-for-empty-nodes = bool
daemonset-eviction-for-occupied-nodes = bool
expander = "string"
ignore-daemonsets-utilization = bool
max-empty-bulk-delete = "string"
max-graceful-termination-sec = "string"
max-node-provision-time = "string"
max-total-unready-percentage = "string"
new-pod-scale-up-delay = "string"
ok-total-unready-count = "string"
scale-down-delay-after-add = "string"
scale-down-delay-after-delete = "string"
scale-down-delay-after-failure = "string"
scale-down-unneeded-time = "string"
scale-down-unready-time = "string"
scale-down-utilization-threshold = "string"
scan-interval = "string"
skip-nodes-with-local-storage = "string"
skip-nodes-with-system-pods = "string"
}
autoUpgradeProfile = {
nodeOSUpgradeChannel = "string"
upgradeChannel = "string"
}
azureMonitorProfile = {
appMonitoring = {
autoInstrumentation = {
enabled = bool
}
openTelemetryLogsAndTraces = {
enabled = bool
grpcPort = int
httpPort = int
}
openTelemetryMetrics = {
enabled = bool
grpcPort = int
httpPort = int
}
}
containerInsights = {
containerNetworkLogs = "string"
disablePrometheusMetricsScraping = bool
enabled = bool
logAnalyticsWorkspaceResourceId = "string"
syslogPort = int
}
metrics = {
controlPlane = {
enabled = bool
}
enabled = bool
kubeStateMetrics = {
metricAnnotationsAllowList = "string"
metricLabelsAllowlist = "string"
}
}
}
bootstrapProfile = {
artifactSource = "string"
containerRegistryId = "string"
}
controlPlaneScalingProfile = {
scalingSize = "string"
}
creationData = {
sourceResourceId = "string"
}
disableLocalAccounts = bool
diskEncryptionSetID = "string"
dnsPrefix = "string"
enableFIPS = bool
enableNamespaceResources = bool
enableNodeHardening = bool
enableRBAC = bool
fqdnSubdomain = "string"
healthMonitorProfile = {
enableContinuousControlPlaneAndAddonMonitor = bool
enableOnDemandMonitor = bool
}
hostedSystemProfile = {
enabled = bool
nodeSubnetID = "string"
systemNodeSubnetID = "string"
}
httpProxyConfig = {
enabled = bool
httpProxy = "string"
httpsProxy = "string"
noProxy = [
"string"
]
trustedCa = "string"
}
identityProfile = {
{customized property} = {
clientId = "string"
objectId = "string"
resourceId = "string"
}
}
ingressProfile = {
applicationLoadBalancer = {
enabled = bool
}
gatewayAPI = {
installation = "string"
}
webAppRouting = {
defaultDomain = {
enabled = bool
}
dnsZoneResourceIds = [
"string"
]
enabled = bool
gatewayAPIImplementations = {
appRoutingIstio = {
mode = "string"
}
}
nginx = {
defaultIngressControllerType = "string"
}
}
}
kubernetesVersion = "string"
linuxProfile = {
adminUsername = "string"
ssh = {
publicKeys = [
{
keyData = "string"
}
]
}
}
metricsProfile = {
costAnalysis = {
enabled = bool
}
}
networkProfile = {
advancedNetworking = {
enabled = bool
observability = {
enabled = bool
}
performance = {
accelerationMode = "string"
}
security = {
advancedNetworkPolicies = "string"
enabled = bool
transitEncryption = {
type = "string"
}
}
}
clusterAPIConnectivityProfile = {
bastion = {
enabled = bool
publicIpAddressId = "string"
scaleUnits = int
sku = "string"
}
cloudShell = {
mode = "string"
network = {
relayNamespaceId = "string"
subnetId = "string"
}
storage = {
fileShareName = "string"
mode = "string"
storageAccountId = "string"
}
}
}
dnsServiceIP = "string"
ipFamilies = [
"string"
]
kubeProxyConfig = {
enabled = bool
ipvsConfig = {
scheduler = "string"
tcpFinTimeoutSeconds = int
tcpTimeoutSeconds = int
udpTimeoutSeconds = int
}
mode = "string"
}
loadBalancerProfile = {
allocatedOutboundPorts = int
backendPoolType = "string"
clusterServiceLoadBalancerHealthProbeMode = "string"
enableMultipleStandardLoadBalancers = bool
idleTimeoutInMinutes = int
managedOutboundIPs = {
count = int
countIPv6 = int
}
outboundIPPrefixes = {
publicIPPrefixes = [
{
id = "string"
}
]
}
outboundIPs = {
publicIPs = [
{
id = "string"
}
]
}
}
loadBalancerSku = "string"
natGatewayId = "string"
natGatewayProfile = {
idleTimeoutInMinutes = int
managedOutboundIPProfile = {
count = int
countIPv6 = int
}
outboundIPPrefixes = {
publicIPPrefixes = [
"string"
]
}
outboundIPs = {
publicIPs = [
"string"
]
}
sku = "string"
}
networkDataplane = "string"
networkMode = "string"
networkPlugin = "string"
networkPluginMode = "string"
networkPolicy = "string"
outboundType = "string"
podCidr = "string"
podCidrs = [
"string"
]
podLinkLocalAccess = "string"
serviceCidr = "string"
serviceCidrs = [
"string"
]
staticEgressGatewayProfile = {
enabled = bool
}
}
nodeDisruptionProfile = {
nodeDisruptionPolicy = "string"
}
nodeProvisioningProfile = {
defaultNodePools = "string"
mode = "string"
}
nodeResourceGroup = "string"
nodeResourceGroupProfile = {
restrictionLevel = "string"
}
oidcIssuerProfile = {
enabled = bool
}
podIdentityProfile = {
allowNetworkPluginKubenet = bool
enabled = bool
userAssignedIdentities = [
{
bindingSelector = "string"
identity = {
clientId = "string"
objectId = "string"
resourceId = "string"
}
name = "string"
namespace = "string"
}
]
userAssignedIdentityExceptions = [
{
name = "string"
namespace = "string"
podLabels = {
{customized property} = "string"
}
}
]
}
podSnapshotProfile = {
enabled = bool
}
privateLinkResources = [
{
groupId = "string"
id = "string"
name = "string"
requiredMembers = [
"string"
]
type = "string"
}
]
publicNetworkAccess = "string"
schedulerProfile = {
upstream = {
schedulerConfigMode = "string"
}
}
securityProfile = {
azureKeyVaultKms = {
enabled = bool
keyId = "string"
keyVaultNetworkAccess = "string"
keyVaultResourceId = "string"
}
customCATrustCertificates = [
?
]
defender = {
logAnalyticsWorkspaceResourceId = "string"
securityGating = {
allowSecretAccess = bool
enabled = bool
identities = [
{
azureContainerRegistry = "string"
identity = {
clientId = "string"
objectId = "string"
resourceId = "string"
}
}
]
}
securityMonitoring = {
enabled = bool
}
}
imageCleaner = {
enabled = bool
intervalHours = int
}
imageIntegrity = {
enabled = bool
}
kubernetesResourceObjectEncryptionProfile = {
infrastructureEncryption = "string"
}
nodeRestriction = {
enabled = bool
}
serviceAccountImagePullProfile = {
defaultManagedIdentityId = "string"
enabled = bool
}
workloadIdentity = {
enabled = bool
}
}
serviceMeshProfile = {
istio = {
certificateAuthority = {
plugin = {
certChainObjectName = "string"
certObjectName = "string"
keyObjectName = "string"
keyVaultId = "string"
rootCertObjectName = "string"
}
}
components = {
egressGateways = [
{
enabled = bool
gatewayConfigurationName = "string"
name = "string"
namespace = "string"
}
]
ingressGateways = [
{
enabled = bool
mode = "string"
}
]
proxyRedirectionMechanism = "string"
}
revisions = [
"string"
]
}
mode = "string"
}
servicePrincipalProfile = {
clientId = "string"
secret = "string"
}
status = {
}
storageProfile = {
blobCSIDriver = {
enabled = bool
}
diskCSIDriver = {
enabled = bool
quickAttachDetach = {
enabled = bool
}
}
fileCSIDriver = {
enabled = bool
}
snapshotController = {
enabled = bool
}
}
supportPlan = "string"
upgradeSettings = {
overrideSettings = {
forceUpgrade = bool
until = "string"
}
upgradeGateSettings = {
enabled = bool
}
}
windowsProfile = {
adminPassword = "string"
adminUsername = "string"
enableCSIProxy = bool
gmsaProfile = {
dnsServer = "string"
enabled = bool
rootDomainName = "string"
}
licenseType = "string"
}
workloadAutoScalerProfile = {
keda = {
enabled = bool
}
verticalPodAutoscaler = {
addonAutoscaling = "string"
enabled = bool
}
}
}
sku = {
name = "string"
tier = "string"
}
}
}
属性值
Microsoft.ContainerService/managedClusters
| Name | Description | Value |
|---|---|---|
| extendedLocation | 虚拟机的扩展位置。 | ExtendedLocation |
| 标识 | 托管群集的标识(如果已配置)。 | ManagedClusterIdentity |
| kind | 这主要用于在门户中为不同类型的公开不同的 UI 体验 | 字符串 |
| 位置 | 资源所在的地理位置 | string (必需) |
| name | 资源名称 | string Constraints: 最小长度 = 1 最大长度 = 63 模式 = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$ (必需) |
| properties | 托管群集的属性。 | ManagedClusterProperties |
| sku | 托管群集 SKU。 | ManagedClusterSKU |
| tags | 资源标记 | 标记名称和值的字典。 |
| 类型 | 资源类型 | “Microsoft。容器服务/managedClusters@2026-08-02-预览” |
AdvancedNetworking
| Name | Description | Value |
|---|---|---|
| enabled | 指示在 AKS 群集上启用可观测性和安全性的高级网络功能。 如果设置为 true,除非显式禁用,否则所有可观测性和安全功能都将设置为启用。 如果未指定,则默认值为 false。 | bool |
| 可观测性 | 可观测性配置文件,用于启用具有历史上下文的高级网络指标和流日志。 | AdvancedNetworkingObservability |
| 性能 | 配置文件以启用使用 Cilium 驱动的 Azure CNI 集群的性能增强功能。 | 高级网络性能 |
| 安全 | 用于在基于 cilium 的群集上启用安全功能的安全配置文件。 | AdvancedNetworkingSecurity |
AdvancedNetworkingObservability
| Name | Description | Value |
|---|---|---|
| enabled | 指示在群集上启用高级网络可观测性功能。 | bool |
高级网络性能
| Name | Description | Value |
|---|---|---|
| 加速模式 | 启用高级网络加速选项。 这允许用户使用 BPF 主机路由配置加速。 这只能通过 Cilium 数据平面启用。 如果未指定,则默认值为 None(无加速)。 可以在预先存在的集群上更改加速模式。 详见 https://aka.ms/acnsperformance 说明 | “BpfVeth” 'None' |
AdvancedNetworkingSecurity
| Name | Description | Value |
|---|---|---|
| advancedNetworkPolicies | 启用高级网络策略。 这允许用户配置第 7 层网络策略(FQDN、HTTP、Kafka)。 必须通过 Cilium 网络策略资源配置策略本身,请参阅 https://docs.cilium.io/en/latest/security/policy/index.html。 这只能在基于 cilium 的群集上启用。 如果未指定,则默认值为 FQDN(如果 security.enabled 设置为 true)。 | 'FQDN' 'L7' 'None' |
| enabled | 此功能允许用户基于 DNS(FQDN)名称配置网络策略。 只能在基于 cilium 的群集上启用它。 如果未指定,则默认值为 false。 | bool |
| transitEncryption | 基于 Cilium 的集群的加密配置。 启用后,Cilium 托管的 Pod 之间的所有流量在离开节点边界时都将被加密。 | AdvancedNetworkingSecurityTransitEncryption |
AdvancedNetworkingSecurityTransitEncryption
| Name | Description | Value |
|---|---|---|
| 类型 | 配置 Pod 到 Pod 加密。 这只能在基于 Cilium 的群集上启用。 如果未指定,则默认值为 None。 | 'mTLS' 'None' 'WireGuard' |
AgentPoolArtifactStreamingProfile
| Name | Description | Value |
|---|---|---|
| enabled | 项目流式处理通过按需映像加载加快节点上容器的冷启动速度。 若要使用此功能,容器映像还必须在 ACR 上启用项目流式处理。 如果未指定,则默认值为 false。 | bool |
AgentPoolBlueGreenUpgradeSettings
| Name | Description | Value |
|---|---|---|
| batchSoakDurationInMinutes | 清空一批节点后的浸泡持续时间,即在清空一批节点后等待的时间(以分钟为单位)再继续下一批。 如果未指定,则默认值为 15 分钟。 | int Constraints: 最小值 = 0 最大值 = 1440 |
| 排水批量大小 | 蓝绿升级期间要批量清空的节点数或百分比。 必须是非零数字。 这可以设置为整数(例如'5')或百分比(例如'50%')。 如果指定了百分比,则该百分比占初始升级作的蓝色节点总数的百分比。 对于百分比,小数节点向上舍入。 如果未指定,则默认值为 10%。 更多信息,包括最佳实践,请参见:/azure/aks/upgrade-cluster | 字符串 |
| drainTimeoutInMinutes | 节点的 drain 超时,即等待 Pod 逐出和每个节点正常终止的时间(以分钟为单位)。 此逐出等待时间遵循等待 Pod 中断预算。 如果超过此时间,升级将失败。 如果未指定,则默认值为 30 分钟。 | int Constraints: 最小值 = 1 最大值 = 1440 |
| finalSoak持续时间在分钟 | 节点池的浸泡持续时间,即在所有旧节点被清空后,在删除旧节点之前等待的时间(以分钟为单位)。 如果未指定,则默认值为 60 分钟。 仅适用于蓝绿升级策略。 | int Constraints: 最小值 = 0 最大值 = 10080 |
AgentPoolGatewayProfile
| Name | Description | Value |
|---|---|---|
| publicIPPrefixSize | 网关代理池为每个静态出口网关关联一个公共 IPPrefix,以提供公共出口。 用户应选择公共 IPPrefix 的大小。 代理池中的每个节点都分配有 IPPrefix 中的一个 IP。 因此,IPPrefix 大小充当网关代理池大小的上限。 由于 Azure 公共 IPPrefix 大小限制,有效值范围为 [28, 31](/31 = 2 个节点/IP,/30 = 4 个节点/IP,/29 = 8 个节点/IP,/28 = 16 个节点/IP)。 默认值为 31。 | int Constraints: 最小值 = 28 最大值 = 31 |
AgentPoolNetworkInterface
| Name | Description | Value |
|---|---|---|
| enableAcceleratedNetworking | 该次级网卡是否启用了加速网络。 如果省略,只有当代理池虚拟机 SKU 支持加速网络时,这个默认才会变为真。 如果验证在不支持的SKU或NIC配置上被启用,验证将失败。 | bool |
| publicIPAddress配置 | 这个次级网卡的公共IP配置。 仅当 type 为 Standard. 设置为 publicIPAddressVersion 为每个虚拟机配置一个实例级的公共 IP,然后可选地用 ipTags 或 publicIPPrefixID来塑造。 如果省略,则不会设置公共IP。 空闲超时不可配置。 有关详细信息,请参阅 https://aka.ms/aks/multi-nic |
AgentPoolNICPublicIPAddressConfiguration |
| 类型 | 虚拟机上要配置的网卡类型。 | “Dynamic” 'Standard' |
| vnetSubnetId | 将连接到次级网络接口的子网资源ID。 当 type 是 Standard必需的;必须是空字符串()""或当 type 时 Dynamic省略。 |
字符串 |
AgentPoolNetworkProfile
| Name | Description | Value |
|---|---|---|
| allowedHostPorts | 允许access的端口范围。 允许指定的范围重叠。 | PortRange[] |
| applicationSecurityGroups | 创建代理池时将关联的应用程序安全组的 ID。 | string[] |
| 德拉内特 | 代理池的DRANET设置。 | 德拉内特档案 |
| nodePublicIPPrefixIDs | 节点公共IP前缀的资源ID。 最多只能指定一个IPv4和一个IPv6前缀。 顺序无关紧要;RP通过引用资源的publicIPAddressVersion确定IP版本。 要求 enableNodePublicIP 在代理池上为真。 与顶层nodePublicIPPrefixID属性互斥。 节点池创建后不可变。 要更改前缀,请删除并重新创建节点池。 有关详细信息,请参阅 https://aka.ms/aks/ipv6-ilpip | string[] |
| nodePublicIPTags | 实例级公共 IP 的 IPTag。 | IPTag[] |
| 次级网络接口 | 代理池中每个虚拟机的二级网络接口配置。 每个条目都是一个模板:每个条目在每个虚拟机实例上配置一个物理网卡。 这些接口是在代理池创建时创建的,且是不可变的。 列表长度必须小于NIC容量减去代理池虚拟机大小的1(AKS管理主网卡)。 例如,Standard_D8a_v4虚拟机最多支持4个网卡,因此允许的最大次级接口数为3个。 对于混合 SKU 虚拟机池,有效容量为所有 SKU 的最小值:count(次级网络接口)+ 1 <= 最小(maxNIC)。 有关详细信息,请参阅 https://aka.ms/aks/multi-nic | 代理池网络接口[] |
AgentPoolNICPublicIPAddressConfiguration
| Name | Description | Value |
|---|---|---|
| ip标签 | IP标签,用于附加到该网卡分配的公共IP。 每个标签 ipTagType 必须是 FirstPartyUsage、 NetworkDomain或 RoutingPreference。 与 publicIPPrefixID 互斥。 |
IPTag[] |
| publicIPAddress版本 | 为该网卡配置的公共IP版本。 必需:其存在是实现公共IP配置的关键,因此空配置不分配任何内容。
IPv4 是唯一被接受的数值。 |
“IPv4”(必填) |
| publicIPPrefixID | 公共IP前缀的资源ID,用于提取该网卡的公共IP。 与 ipTags 互斥。 |
字符串 |
AgentPoolSecurityProfile
| Name | Description | Value |
|---|---|---|
| enableSecureBoot | 安全启动是受信任的启动的一项功能,可确保只有已签名的作系统和驱动程序才能启动。 有关详细信息,请参阅 aka.ms/aks/trustedlaunch。 如果未指定,则默认值为 false。 | bool |
| enableVTPM | vTPM 是一项受信任的启动功能,用于为节点上本地保留的密钥和度量配置专用安全保管库。 有关详细信息,请参阅 aka.ms/aks/trustedlaunch。 如果未指定,则默认值为 false。 | bool |
| sshAccess | 代理池的SSH access方法。 | 'Disabled' “EntraId” 'LocalUser' |
AgentPoolStatus
| Name | Description | Value |
|---|
AgentPoolUpgradeSettings
| Name | Description | Value |
|---|---|---|
| drainTimeoutInMinutes | 节点的耗尽超时。 在逐出 Pod 时等待的时间量(以分钟为单位),以及每个节点的正常终止时间。 此逐出等待时间遵循等待 Pod 中断预算。 如果超过此时间,升级将失败。 如果未指定,则默认值为 30 分钟。 | int Constraints: 最小值 = 1 最大值 = 1440 |
| maxBlockedNodes | 升级期间允许在升级期间在代理池中阻止的额外节点的最大数量或百分比为 Cordon。 这可以设置为整数(例如'5')或百分比(例如'50%')。 如果指定了百分比,则它是升级时代理池大小总数的百分比。 对于百分比,小数节点向上舍入。 如果未指定,则默认值为 maxSurge。 这必须始终大于或等于 maxSurge。 更多信息,包括最佳实践,请参见:/azure/aks/upgrade-cluster | 字符串 |
| maxSurge | 升级期间激增的最大节点数或百分比。 这可以设置为整数(例如'5')或百分比(例如'50%')。 如果指定了百分比,则它是升级时代理池大小总数的百分比。 对于百分比,小数节点向上舍入。 如果未指定,则默认值为 10%。 更多信息,包括最佳实践,请参见:/azure/aks/upgrade-cluster | 字符串 |
| maxUnavailable | 升级期间可同时不可用的最大节点数或百分比。 这可以设置为整数(例如'1')或百分比(例如'5%')。 如果指定了百分比,则它是升级时代理池大小总数的百分比。 对于百分比,小数节点向上舍入。 如果未指定,则默认值为 0。 更多信息,包括最佳实践,请参见:/azure/aks/upgrade-cluster | 字符串 |
| nodeSoakDurationInMinutes | 节点的 soak 持续时间。 清空节点后以及重新映像节点并转到下一个节点之前等待的时间(以分钟为单位)。 如果未指定,则默认值为 0 分钟。 | int Constraints: 最小值 = 0 最大值 = 30 |
| undrainableNodeBehavior | 定义升级期间不可透支节点的行为。 不透支节点的最常见原因是 Pod 中断预算(PDB),但其他问题(例如 Pod 终止宽限期超出剩余的每节点排空超时或 Pod 仍在运行状态)也可能导致无法执行的节点。 | 'Cordon' 'Schedule' |
| 升级门设置 | 关于该代理池升级门槛的设置。 健康信号是由 HealthSignal 集群中运行的监控组件发布的自定义资源。 当集群层 enabled 级未设置或 false时,该代理池可以独立选择加入。 当集群层enabled为 时,门控被继承,且将该代理池enabled设置为 被false拒绝;新创建的代理池中省略的值默认为 truetrue。 |
升级门设置 |
AgentPoolWindowsProfile
| Name | Description | Value |
|---|---|---|
| disableOutboundNat | 是否在 Windows 节点中禁用 OutboundNAT。 默认值为 false。 仅当群集 outboundType 为 NAT 网关且 Windows 代理池未启用节点公共 IP 时,才能禁用出站 NAT。 | bool |
AutoScaleProfile
| Name | Description | Value |
|---|---|---|
| maxCount | 指定大小的最大节点数。 | int |
| minCount | 指定大小的最小节点数。 | int |
| size | AKS 在创建和缩放时将使用的 VM 大小,例如“Standard_E4s_v3”、“Standard_E16s_v3”或“Standard_D16s_v5”。 | 字符串 |
AzureKeyVaultKms
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 Azure 密钥保管库 密钥管理服务。 默认值为 false。 | bool |
| keyId | Azure 密钥保管库 密钥的标识符。 欲了解更多信息,请参见 Azure 密钥保管库 密钥标识符。 当启用 Azure 密钥保管库 密钥管理服务时,该属性是必需的;当服务被禁用时,必须省略。 从API版本2026-07-01和2026-07-02-preview开始,版本化密钥标识符使用旧版KMS体验,而无版本密钥标识符使用新的KMS体验。 更多信息请参见 KMS数据加密概念。 | 字符串 |
| keyVaultNetworkAccess | key vault的网络access。 key vault的网络access。 可能的值为 Public 和 Private。
Public表示key vault允许所有网络的公共access。
Private 表示key vault关闭公共access并启用private link。 默认值为 Public。 |
'Private' 'Public' |
| keyVaultResourceId | key vault 的资源 ID。 keyVaultNetworkAccess Private时,此字段是必需的,并且必须是有效的资源 ID。 如果 keyVaultNetworkAccess 为 Public,请将字段留空。 |
字符串 |
堡垒简介
| Name | Description | Value |
|---|---|---|
| enabled | 指示是否启用了管理堡垒。 | bool |
| 公共 IpAddressId | 与托管堡垒关联的公共IP地址的资源ID。 在创建时提供时,托管堡垒会引用这个现有的公共IP地址,而不是新建一个。 所引用的公共IP地址必须与托管集群处于同一订阅和区域。 如果创建时未提供,AKS 会自动创建一个新的公共 IP 地址。 此字段无法更新。 创建后要更改 IP 地址,请禁用并重新启用新的公共 IP 地址的托管堡垒。 |
字符串 |
| scaleUnits | 管理堡垒的比例单位。 默认值为 2。 | int Constraints: 最小值 = 2 最大值 = 50 |
| sku | 管理堡垒的SKU。 仅支持标准和高级SKU。 不允许SKU降级。 要降级SKU,请先禁用并重新启用管理堡垒并使用新的SKU。 有关详细信息,请参阅 https://aka.ms/aks/BastionSKUs。 |
'Premium' 'Standard' |
CloudShellNetworkProfile
| Name | Description | Value |
|---|---|---|
| relayNamespaceID | Azure 中继 命名空间由 Cloud Shell 使用。 对于自定义网络,必须使用现有命名空间 带有 subnetId。 Grant the cluster identity Reader and the Azure Container Instance service principal Contributor 在命名空间上。 当Cloud Shell模式为自定义时,必须使用。 |
字符串 |
| subnetId | Cloud Shell 容器使用的专用 IPv4 子网。 对于自定义网络,该子网必须是 委派给 Microsoft。ContainerInstance/containerGroups,且为 /24 或更大。 赋予簇身份 包含虚拟网络的Network Contributor,并授予Azure Container Instance服务主体 该子网或其包含虚拟网络的网络贡献者。 当Cloud Shell模式为自定义时,必须使用。 |
字符串 |
CloudShell配置文件
| Name | Description | Value |
|---|---|---|
| mode | 无论Cloud Shell连接被禁用、使用AKS管理的网络资源,还是使用用户提供 建立网络资源。 创建时省略时默认为禁用。 更新时,省略保留了现有内容 模式。 将该属性设置为禁用会移除 AKS 创建的资源和连接伪影。 对于习俗 模式中,AKS 取消注册用户提供的资源,但不删除它们。 |
'Custom' 'Disabled' 'Managed' |
| 网络 | Cloud Shell 使用的网络资源。 在配置自定义网络时,用户必须提供 subnetId 和 relayNamespaceId。 在更新现有的自定义配置时,任一资源ID都可以是 独立更改;省略字段保持其现有值。 在自定义模式下,AKS返回用户提供的 价值观。 在托管模式下,AKS 会填充有效值。 用户可以省略管理值或重新提交值 GET返回时保持不变;不同的值被拒绝。 当模式被禁用时,必须省略该属性。 参见 https://aka.ms/aks/CloudShellConnect “自定义网络需求”。 |
CloudShellNetworkProfile |
| 存储 | 用于 Cloud Shell 文件持久化的存储资源。 在配置自定义存储时,用户 必须同时提供storageAccountId和fileShareName。 在更新现有的自定义配置时,以下 属性可以独立更改;省略字段保留其现有值。 自定义模式下,AKS回归 用户提供的值。 在托管模式下,AKS 会填充有效值。 用户可以省略管理值或 重新提交由GET返回的值不变;不同的值被拒绝。 当 模式为禁用。 参见 https://aka.ms/aks/CloudShellConnect “定制存储需求”。 |
CloudShellStorageProfile |
CloudShellStorageProfile
| Name | Description | Value |
|---|---|---|
| fileShareName | 用于Cloud Shell文件的文件共享。 自定义模式时必须使用。 | string Constraints: 最小长度 = 3 最大长度 = 63 图案 = ^[a-z0-9]+(?:-[a-z0-9]+)*$ |
| mode | 无论持久存储是被禁用的、由AKS管理,还是由用户提供。 当 在最初启用 Cloud Shell 时省略了。 更新时,省略模式保留了现有模式。 |
'Custom' 'Disabled' 'Managed' |
| storageAccountId | 用于Cloud Shell文件的存储账户。 对于自定义存储,授予集群身份 存储文件数据 SMB 共享贡献者在此现有存储账户上。 自定义模式时必须使用。 |
字符串 |
ClusterAPIConnectivityProfile
| Name | Description | Value |
|---|---|---|
| 堡垒 | Azure Bastion connectivity settings. 有关详细信息,请参阅 https://aka.ms/aks/BastionConnect。 |
堡垒简介 |
| 云壳 | Cloud Shell 连接设置。 有关详细信息,请参阅 https://aka.ms/aks/CloudShellConnect。 |
CloudShell配置文件 |
ClusterUpgradeSettings
| Name | Description | Value |
|---|---|---|
| overrideSettings | 替代的设置。 | UpgradeOverrideSettings |
| 升级门设置 | 在这个托管集群中升级门禁的设置。 健康信号是由 HealthSignal 集群中运行的监控组件发布的自定义资源。
enabled这里true设置为一个集群范围的选择加入,适用于该集群中所有代理池升级;代理池不能选择退出。 |
升级门设置 |
ContainerServiceLinuxProfile
| Name | Description | Value |
|---|---|---|
| adminUsername | 用于 Linux VM 的管理员用户名。 | string Constraints: 模式 = ^[A-Za-z][-A-Za-z0-9_]*$ (必需) |
| ssh | 运行在 Azure 上的基于 Linux 虚拟机的 SSH 配置。 | ContainerServiceSshConfiguration (必需) |
ContainerServiceNetworkProfile
| Name | Description | Value |
|---|---|---|
| advancedNetworking | 用于在群集上启用可观测性和安全功能套件的高级网络配置文件。 有关详细信息,请参阅 aka.ms/aksadvancednetworking。 | AdvancedNetworking |
| clusterAPIConnectivityProfile | 配置通过 Bastion 或 Cloud Shell 访问托管集群 API。 | ClusterAPIConnectivityProfile |
| dnsServiceIP | 分配给 Kubernetes DNS 服务的 IP 地址。 它必须位于 serviceCidr 中指定的 Kubernetes 服务地址范围内。 | string Constraints: 图案 = ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$ |
| ipFamilies | 用于指定群集可用的 IP 版本的 IP 系列。 IP 系列用于确定单堆栈或双堆栈群集。 对于单堆栈,预期值为 IPv4。 对于双堆栈,预期值为 IPv4 和 IPv6。 | 包含任一项的字符串数组: 'IPv4' 'IPv6' |
| kubeProxyConfig | 保留 kube-proxy 的配置自定义。 未定义的任何值都将使用 kube-proxy 默认行为。 请参阅 https://v<version.docs.kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/>,其中<版本>由<主版本次要版本><>字符串表示。 Kubernetes 版本 1.23 将是“1-23”。 | ContainerServiceNetworkProfileKubeProxyConfig |
| loadBalancerProfile | 集群load balancer的配置文件。 | ManagedClusterLoadBalancerProfile |
| loadBalancerSku | 管理集群的load balancer sku。 默认值为“standard”。 有关load balancer SKU之间的差异,请参见Azure 负载均衡器 SKUs。 | 'basic' “服务” 'standard' |
| natGatewayId | 当 outboundType 用于集群启动时用于出口的 NAT 网关的 Azure 资源 ID 是 'userAssignedNATGateway',使用 StandardV2 公共 IP,后端池类型是 podIP,负载均衡器类型是服务 SKU。 这种形式为:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways/{natGatewayName}'. 使用托管NATGateway时,该字段会自动填充。 有关详细信息,请参阅 https://aka.ms/aks/container-native-slb | 字符串 |
| natGatewayProfile | 群集 NAT 网关的配置文件。 | ManagedClusterNATGatewayProfile |
| networkDataplane | Kubernetes 群集中使用的网络数据平面。 | “azure” 'cilium' |
| networkMode | Azure CNI 配置的网络模式。 如果 networkPlugin 不是 'azure',则无法指定。 | 'bridge' 'transparent' |
| networkPlugin | 用于生成 Kubernetes 网络的网络插件。 | “azure” 'kubenet' 'none' |
| networkPluginMode | 网络插件应使用的模式。 | 'overlay' |
| networkPolicy | 用于生成 Kubernetes 网络的网络策略。 | “azure” 'calico' 'cilium' 'none' |
| outboundType | 出站(出口)路由方法。 这只能在群集创建时设置,以后无法更改。 更多信息请参见出站类型。 | 'loadBalancer' 'managedNATGateway' 'none' 'userAssignedNATGateway' 'userDefinedRouting' |
| podCidr | 使用 kubenet 时分配 Pod IP 的 CIDR 表示法 IP 范围。 | string Constraints: 图案 = ^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$ |
| podCidrs | CIDR 表示法 IP 范围,从中分配 Pod IP。 单堆栈网络需要一个 IPv4 CIDR。 对于双堆栈网络,每个 IP 系列(IPv4/IPv6)都有两个CIDR。 | string[] |
| podLinkLocalAccess | 定义access为带有 hostNetwork=false 的 pod 特殊链接本地地址(Azure 实例元数据服务,即 IMDS)。 如果未指定,则默认值为“IMDS”。 | 'IMDS' 'None' |
| serviceCidr | 从中分配服务群集 IP 的 CIDR 表示法 IP 范围。 它不得与任何子网 IP 范围重叠。 | string Constraints: 图案 = ^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$ |
| serviceCidrs | CIDR 表示法 IP 范围,从中分配服务群集 IP。 单堆栈网络需要一个 IPv4 CIDR。 对于双堆栈网络,每个 IP 系列(IPv4/IPv6)都有两个CIDR。 它们不得与任何子网 IP 范围重叠。 | string[] |
| staticEgressGatewayProfile | 静态出口网关加载项的配置文件。 有关静态出口网关的更多详细信息,请参阅 https://aka.ms/aks/static-egress-gateway。 | ManagedClusterStaticEgressGatewayProfile |
ContainerServiceNetworkProfileKubeProxyConfig
| Name | Description | Value |
|---|---|---|
| enabled | 是否在群集上的 kube-proxy 上启用(如果没有“kubeProxyConfig”存在),则默认情况下在 AKS 中启用 kube-proxy,而无需进行这些自定义。 | bool |
| ipvsConfig | 保存 IPVS 的配置自定义。 仅当“mode”设置为“IPVS”时,才能指定。 | ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig |
| mode | 指定要使用的代理模式(“IPTABLES”、“IPVS”或“NFTABLES”) | 'IPTABLES' 'IPVS' “国家电影表” |
ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig
| Name | Description | Value |
|---|---|---|
| scheduler | IPVS 计划程序,有关详细信息,请参阅 http://www.linuxvirtualserver.org/docs/scheduling.html。 | 'LeastConnection' 'RoundRobin' |
| tcpFinTimeoutSeconds | 接收 FIN 后用于 IPVS TCP 会话的超时值(以秒为单位)。 必须是正整数值。 | int |
| tcpTimeoutSeconds | 用于空闲 IPVS TCP 会话的超时值(以秒为单位)。 必须是正整数值。 | int |
| udpTimeoutSeconds | 用于 IPVS UDP 数据包的超时值(以秒为单位)。 必须是正整数值。 | int |
ContainerServiceSshConfiguration
| Name | Description | Value |
|---|---|---|
| publicKeys | 用于通过基于 Linux 的 VM 进行身份验证的 SSH 公钥列表。 最多可以指定 1 个键。 | ContainerServiceSshPublicKey[](必需) |
ContainerServiceSshPublicKey
| Name | Description | Value |
|---|---|---|
| keyData | 用于通过 SSH 向 VM 进行身份验证的证书公钥。 证书必须采用 PEM 格式(带或不带标头)。 | string (必需) |
CreationData
| Name | Description | Value |
|---|---|---|
| sourceResourceId | 这是用于创建目标对象的源对象的 ARM ID。 | 字符串 |
DelegatedResource
| Name | Description | Value |
|---|---|---|
| 位置 | 源资源位置 - 仅供内部使用。 | 字符串 |
| referralResource | 引荐委派(可选)的委托 ID - 仅供内部使用。 | 字符串 |
| resourceId | 委派资源的 ARM 资源 ID - 仅供内部使用。 | 字符串 |
| tenantId | 委托资源的租户 ID - 仅供内部使用。 | string Constraints: 最小长度 = 36 最大长度 = 36 图案 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
德拉内特档案
| Name | Description | Value |
|---|---|---|
| mode | 特工池的DRANET模式。 | 'Managed' 'Unmanaged' |
ExtendedLocation
| Name | Description | Value |
|---|---|---|
| name | 扩展位置的名称。 | 字符串 |
| 类型 | 扩展位置的类型。 | 'EdgeZone' |
GPUProfile
| Name | Description | Value |
|---|---|---|
| driver | 是否安装 GPU 驱动程序。 如果未指定,则默认为“安装”。 | 'Install' 'None' |
| driverType | 指定要在创建 Windows 代理池时安装的 GPU 驱动程序的类型。 如果未提供,AKS 会根据系统兼容性选择驱动程序。 创建 AgentPool 后,无法更改此更改。 这不能在 Linux AgentPools 上设置。 对于 Linux AgentPools,根据系统兼容性选择驱动程序。 | 'CUDA' 'GRID' |
| nvidia | NVIDIA 专用的显卡设置。 | NvidiaGPUProfile |
硬驱逐阈值
| Name | Description | Value |
|---|---|---|
| 内存可用 | 即在该内存以下触发驱逐的门槛。 接受绝对值(例如“500英里”)或百分比值(例如“5%”)。 绝对值必须大于或等于100英里。 百分比值必须大于或等于2%。 | 字符串 |
| nodeFsAvailable | 即触发 pod 驱逐的可用节点文件系统空间阈值。 接受绝对值(例如“1Gi”)或百分比值(例如“10%”)。 必须大于或等于系统默认值10%。 | 字符串 |
| nodeFsInodesFree(节点自由) | 节点文件系统中可用inode的阈值低于该阈值触发了Pod驱逐。 接受绝对inode计数(例如“100000”)或百分比值(例如“5%”)。 百分比值必须大于或等于系统默认值5%。 | 字符串 |
IPTag
| Name | Description | Value |
|---|---|---|
| ipTagType | IP 标记类型。 示例:RoutingPreference。 | 字符串 |
| 标签 | 与公共 IP 关联的 IP 标记的值。 示例:Internet。 | 字符串 |
IstioCertificateAuthority
| Name | Description | Value |
|---|---|---|
| plugin | 服务网格的插件证书信息。 | IstioPluginCertificateAuthority |
IstioComponents
| Name | Description | Value |
|---|---|---|
| egressGateways | Istio 出口网关。 | IstioEgressGateway[] |
| ingressGateways | Istio 入口网关。 | IstioIngressGateway[] |
| 代理重定向机制 | 流量重定向的模式。 | “CNIChaining” “初始容器” |
IstioEgressGateway
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用出口网关。 | bool (必需) |
| gatewayConfigurationName | Istio 加载项出口网关的网关配置自定义资源的名称。 启用 Istio 出口网关时必须指定。 必须部署在 Istio 出口网关将部署到的同一命名空间中。 | 字符串 |
| name | Istio 加载项出口网关的名称。 | string Constraints: 模式 = [a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)* (必需) |
| 命名空间 | 应在其中部署 Istio 加载项出口网关的命名空间。 如果未指定,则默认值为 aks-istio-egress。 | 字符串 |
IstioIngressGateway
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用入口网关。 | bool (必需) |
| mode | 入口网关的模式。 | 'External' “内部”(必填) |
IstioPluginCertificateAuthority
| Name | Description | Value |
|---|---|---|
| certChainObjectName | Azure 密钥保管库 中的 Certificate chain object name. | 字符串 |
| certObjectName | Azure 密钥保管库 中的 Intermediate certificate object name. | 字符串 |
| keyObjectName | Azure 密钥保管库 中的中间证书私钥对象名称。 | 字符串 |
| keyVaultId | 密钥保管库的资源ID。 | 字符串 |
| rootCertObjectName | Azure 密钥保管库 中的根证书对象名称。 | 字符串 |
IstioServiceMesh
| Name | Description | Value |
|---|---|---|
| certificateAuthority | Istio 服务网格证书颁发机构 (CA) 配置。 目前,我们仅支持插件证书,如下所示 https://aka.ms/asm-plugin-ca | IstioCertificateAuthority |
| components | Istio 组件配置。 | IstioComponents |
| revisions | Istio 控制平面的修订列表。 升级未进行时,这将保留一个值。 当 Canary 升级正在进行时,这只能保留两个连续值。 欲了解更多信息,请参见:/azure/aks/istio-upgrade | string[] |
KubeletConfig
| Name | Description | Value |
|---|---|---|
| allowedUnsafeSysctls | 允许的不安全 sysctls 或不安全的 sysctl 模式列表(以结尾 *)。 |
string[] |
| containerLogMaxFiles | 一个容器可以存在的最大容器日志文件数。 该数字必须≥ 2。 | int Constraints: 最小值 = 2 |
| containerLogMaxSizeMB | 在轮换容器日志文件之前,容器日志文件的最大大小(例如 10Mi)。 | int |
| cpuCfsQuota | 如果为指定 CPU 限制的容器启用了 CPU CFS 配额强制实施。 默认值为 true。 | bool |
| cpuCfsQuotaPeriod | CPU CFS 配额周期值。 默认值为“100ms”。 有效值是包含可选分数和单位后缀的小数序列。 例如:“300ms”、“2h45m”。 支持的单位为“ns”、“us”、“ms”、“s”、“m”和“h”。 | 字符串 |
| cpuManagerPolicy | 要使用的 CPU 管理器策略。 默认值为“none”。 有关详细信息,请参阅 Kubernetes CPU 管理策略 。 允许的值为“none”和“static”。 | 字符串 |
| 驱逐最大波德恩惠秒内 | 软淘汰期间,舱体终止的最大宽限期为秒;限制了舱体终止的宽限期秒。 默认值为60,当簇 enableNodeHardening 属性为真时应用。 仅适用于Linux的节点池。 |
int Constraints: 最小值 = 0 |
| failSwapOn | 如果设置为 true,则如果在节点上启用了交换,则 Kubelet 将无法启动。 | bool |
| 硬驱逐阈值 | Kubelet的硬性驱逐门槛。 当阈值未被设置时,系统默认值会被使用。 有关计算默认值的详细信息,请参见 AKS 节点资源预留 。 仅适用于Linux的节点池。 | 硬驱逐阈值 |
| imageGcHighThreshold | 磁盘使用率的百分比,之后映像垃圾回收始终运行。 如果要禁用映像垃圾回收,则设置为 100。 默认值为 85% | int |
| imageGcLowThreshold | 从不运行映像垃圾回收之前磁盘使用量的百分比。 这不能设置为高于 imageGcHighThreshold。 默认值为 80% | int |
| kubeReserved | kube保留值用于kubelet。 当未设置值时,会使用基于虚拟机大小的系统计算默认值。 有关计算默认值的详细信息,请参见 AKS 节点资源预留 。 仅适用于Linux的节点池。 | 库比预留 |
| podMaxPids | 每个 Pod 的最大进程数。 | int |
| seccompDefault | 指定应用于所有工作负荷的默认 seccomp 配置文件。 如果未指定,则默认使用“未完成”。 | 'RuntimeDefault' 'Unconfined' |
| soft驱逐宽限期 | 软驱逐信号的宽限期——在淘汰前必须保持多长时间的门槛。 默认和配对规则和softEvictionThreshold一样。 这些数值是围棋式的持续时间字符串(例如“1分30秒”);支援单位包括“NS”、“US”、“MS”、“S”、“M”和“H”。 仅适用于Linux的节点池。 | 软驱逐宽限期 |
| soft驱逐阈值 | 库贝莱特的软性驱逐门槛。 交叉时,荚果会在成对的软驱逐宽限期后被驱逐。 当集群 enableNodeHardening 属性为真时,系统默认值适用;否则不会配置软驱逐。 对于每个信号(memoryAvailable、nodeFsAvailable、nodeFsInodesFree),softEvictionThreshold 和 softEvictionGracePeriod 中的条目必须处于相同状态:两者都省略(默认)、两者都非空(覆盖),或两串为空字符串(选择退出该信号)。 仅适用于Linux的节点池。 请参阅 https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/#soft-eviction-thresholds。 |
软驱逐阈值 |
| topologyManagerPolicy | 要使用的拓扑管理器策略。 有关详细信息,请参阅 Kubernetes 拓扑管理器。 默认值为“none”。 允许的值为“none”、“best-effort”、“restricted”和“single-numa-node”。 | 字符串 |
库比预留
| Name | Description | Value |
|---|---|---|
| cpu毫厘核心 | 为Kubernetes系统守护进程预留的CPU数量,单位为毫核。 必须大于或等于140。 例如,200 表示 200m(0.2 CPU 核心)。 | int |
| 内存MB | 为Kubernetes系统守护进程预留的内存量,以MiB计。 必须大于或等于750。 | int |
KubernetesResourceObjectEncryptionProfile
| Name | Description | Value |
|---|---|---|
| 基础设施加密 | 是否使用服务托管密钥启用 Kubernetes 资源对象的静态加密。 有关这方面的更多信息,请参阅 https://aka.ms/aks/kubernetesResourceObjectEncryption。 | 'Enabled' |
LinuxOSConfig
| Name | Description | Value |
|---|---|---|
| swapFileSizeMB | 将在每个节点上创建的交换文件的大小(以 MB 为单位)。 | int |
| sysctls | Linux 代理节点的 Sysctl 设置。 | SysctlConfig |
| transparentHugePageDefrag | 内核是否应积极利用内存压缩,使更多的大页可用。 有效值为“always”、“defer”、“defer+madvise”、“madvise”和“never”。 默认值为“madvise”。 有关详细信息,请参阅 透明巨页。 | 字符串 |
| transparentHugePageEnabled | 是否启用透明巨页。 有效值为“always”、“madvise”和“never”。 默认值为“always”。 有关详细信息,请参阅 透明巨页。 | 字符串 |
本地DNS虚拟
| Name | Description | Value |
|---|---|---|
| cacheDurationInSeconds | 缓存最大 TTL(以秒为单位)。 有关更多信息,请参阅 缓存插件 。 | int |
| forwardDestination | 要从 localDNS 转发的 DNS 查询的目标服务器。 | 'ClusterCoreDNS' 'VnetDNS' |
| forwardPolicy | 用于选择上游 DNS 服务器的转发策略。 有关更多信息,请参阅 forward plugin 。 | “Random” 'RoundRobin' 'Sequential' |
| maxConcurrent | 最大并发查询数。 有关更多信息,请参阅 forward plugin 。 | int |
| 协议 | 对于从 localDNS 到上游 DNS 服务器的连接,强制执行 TCP 或首选 UDP 协议。 | 'ForceTCP' 'PreferUDP' |
| queryLogging | localDNS 中 DNS 查询的日志级别。 | 'Error' 'Log' |
| serveStale | 用于提供过时数据的策略。 有关更多信息,请参阅 缓存插件 。 | “禁用” 'Immediate' 'Verify' |
| serveStaleDurationInSeconds | 提供过时的持续时间(以秒为单位)。 有关更多信息,请参阅 缓存插件 。 | int |
LocalDNSProfile
| Name | Description | Value |
|---|---|---|
| kubeDNSOverrides | KubeDNS 覆盖适用于来自 dnsPolicy:ClusterFirst 的 Pod 的 DNS 流量(称为 KubeDNS 流量)。 | LocalDNSProfileKubeDNSOverrides |
| mode | localDNS 的启用模式。 | 'Disabled' 'Preferred' “必需” |
| vnetDNSOverrides | VnetDNS 覆盖适用于来自 dnsPolicy:default 或 kubelet 的 Pod 的 DNS 流量(称为 VnetDNS 流量)。 | LocalDNSProfileVnetDNSOverrides |
LocalDNSProfileKubeDNSOverrides
| Name | Description | Value |
|---|
LocalDNSProfileVnetDNSOverrides
| Name | Description | Value |
|---|
ManagedClusterAADProfile
| Name | Description | Value |
|---|---|---|
| adminGroupObjectIDs | 将具有群集管理员角色的 AAD 组对象 ID 的列表。 | string[] |
| clientAppID | (已弃用)客户端 AAD 应用程序 ID。 更多信息请访问 https://aka.ms/aks/aad-legacy。 | 字符串 |
| enableAzureRBAC | 是否启用 Azure RBAC for Kubernetes 授权。 | bool |
| 托管的 | 是否启用托管 AAD。 | bool |
| serverAppID | (已弃用)服务器 AAD 应用程序 ID。 更多信息请访问 https://aka.ms/aks/aad-legacy。 | 字符串 |
| serverAppSecret | (已弃用)服务器 AAD 应用程序机密。 更多信息请访问 https://aka.ms/aks/aad-legacy。 | string Constraints: 敏感值。 以安全参数的形式传入。 |
| tenantID | 用于身份验证的 AAD 租户 ID。 如果未指定,将使用部署订阅的租户。 | 字符串 |
ManagedClusterAddonProfile
| Name | Description | Value |
|---|---|---|
| config | 用于配置加载项的键值对。 | ManagedClusterAddonProfileConfig |
| enabled | 是否启用加载项。 | bool (必需) |
ManagedClusterAddonProfileConfig
| Name | Description | Value |
|---|
ManagedClusterAgentPoolProfile
| Name | Description | Value |
|---|---|---|
| artifactStreamingProfile | 用于在 AKS 上使用项目流式传输的配置。 | AgentPoolArtifactStreamingProfile |
| availabilityZones | 用于节点的Availability zones列表。 仅当 AgentPoolType 属性为“VirtualMachineScaleSets”时,才能指定此值。 | string[] |
| capacityReservationGroupID | 容量预留组的完全限定资源ID,用于从保留的虚拟机组中提供virtual machines。 其形式为:'/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Compute/capacityreservationgroups/{capacityReservationGroupName}' 客户使用该文件创建包含指定CRG的代理池。 更多信息请参见 容量预留 | 字符串 |
| count | 用于托管 docker 容器的代理数(VM)。 允许的值必须在用户池的 0 到 1000(含)范围内,系统池的范围为 1 到 1000(含)。 默认值为 1。 | int |
| creationData | 如果使用快照创建/升级节点池,则用于指定源快照 ID 的 CreationData。 | CreationData |
| enableAutoScaling | 是否启用自动缩放程序 | bool |
| enableEncryptionAtHost | 是否启用基于主机的 OS 和数据驱动器加密。 这只支持某些虚拟机规模和某些 Azure 区域。 更多信息请参见:/azure/aks/enable-host-encryption | bool |
| enableFIPS | 是否使用已启用 FIPS 的 OS。 详情请参见 添加支持 FIPS 的节点池。 | bool |
| enableNodePublicIP | 是否为每个节点分配自己的公共 IP。 某些方案可能需要节点池中的节点接收其自己的专用公共 IP 地址。 游戏工作负载就是一种常见方案,此时控制台需要直接连接到云虚拟机才能尽量减少画面跳跃。 更多信息请参见为每个节点分配公共IP。 默认值为 false。 | bool |
| enableOSDiskFullCaching | 是否启用全缓存临时操作系统磁盘功能。 启用此功能后,整个操作系统将本地缓存在临时操作系统磁盘上,防止因网络故障引发的 E17 事件。 | bool |
| enableUltraSSD | 是否启用 UltraSSD | bool |
| gatewayProfile | 特定于网关模式下托管代理池的配置文件。 如果代理池模式不是网关,则无法设置此字段。 | AgentPoolGatewayProfile |
| gpuInstanceProfile | 用于为支持的 GPU VM SKU 指定 GPU MIG 实例配置文件的 GPUInstanceProfile。 | 'MIG1g' 'MIG2g' 'MIG3g' 'MIG4g' 'MIG7g' |
| gpuProfile | 代理池的 GPU 设置。 | GPUProfile |
| hostGroupID | 专用主机组的完全限定资源ID,用于配置virtual machines,仅在创建场景中使用,且一旦设置后不允许更改。 此格式为:/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}。 更多信息请参见 Azure专用主机。 | 字符串 |
| kubeletConfig | 代理池节点上的 Kubelet 配置。 | KubeletConfig |
| kubeletDiskType | 确定空Dir卷、容器运行时数据根和Kubelet临时storage的放置。 | 'OS' 'Temporary' |
| linuxOSConfig | Linux 代理节点的 OS 配置。 | LinuxOSConfig |
| localDNSProfile | 使用 VnetDNS 和 KubeDNS 覆盖配置每个节点的本地 DNS。 LocalDNS 有助于提高 AKS 群集中 DNS 解析的性能和可靠性。 有关更多详细信息,请参阅 aka.ms/aks/localdns。 | LocalDNSProfile |
| maxCount | 自动缩放的最大节点数 | int |
| maxPods | 可在节点上运行的 Pod 的最大数目。 | int |
| messageOfTheDay | Linux 节点的当天消息(base64 编码)。 一个 base64 编码的字符串,将在解码后写入 /etc/motd。 这允许自定义 Linux 节点当天的消息。 它不得为 Windows 节点指定。 它必须是静态字符串(即,将打印为原始字符串,而不是作为脚本执行)。 | 字符串 |
| minCount | 自动缩放的最小节点数 | int |
| mode | 代理池的模式。 群集必须随时至少有一个“系统”代理池。 有关代理池限制和最佳实践的更多信息,请参见:/azure/aks/use-system-pools | 'Gateway' 'Machines' 'ManagedSystem' 'System' 'User' |
| name | 订阅和资源组上下文中代理池配置文件的唯一名称。 Windows 代理池名称必须为 6 个字符或更少。 | string Constraints: 模式 = ^[a-z][a-z0-9]{0,11}$ (必需) |
| networkProfile | 代理池的网络相关设置。 | AgentPoolNetworkProfile |
| nodeImageVersion (节点映像版本) | 节点映像的版本。 设置该值会触发agentPool回滚。 只允许取值 recentlyUsedVersions 。 |
字符串 |
| nodeInitializationTaints | 创建期间在节点上添加的污点,AKS 不会协调。 这些污点不会被 AKS 协调,并且可以通过 kubectl 调用删除。 创建节点池后,可以修改此字段,但在需要重新执行的其他作(例如节点映像升级)之前,不会使用新的污点重新创建节点。 这些污点允许在节点准备好接受工作负载之前运行所需的配置,例如“key1=value1:NoSchedule”,然后可以使用 kubectl taint nodes node1 key1=value1:NoSchedule- |
string[] |
| nodeLabels | 要跨代理池中的所有节点保留的节点标签。 | ManagedClusterAgentPoolProfilePropertiesNodeLabels |
| nodePublicIPPrefixID | VM 节点应使用 IP 的公共 IP 前缀 ID。 此格式为:/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName} | 字符串 |
| nodeTaints | 在节点池创建和缩放期间添加到新节点的污点。 例如,key=value:NoSchedule。 | string[] |
| orchestratorVersion | 用户指定的 Kubernetes 版本。 支持修补程序版本 <major.minor.patch> (例如 1.20.13)和 <major.minor> (例如 1.20)。 指定 major.minor< 后>,会自动选择最新的受支持的 GA 修补程序版本。 <创建群集后使用相同的 major.minor> 更新群集(例如 1.14.x -> 1.14)不会触发升级,即使有较新的修补程序版本可用也是如此。 最佳做法是将 AKS 群集中的所有节点池升级到相同的 Kubernetes 版本。 节点池版本必须与控制平面具有相同的主版本。 节点池次要版本必须位于控制平面版本的两个次要版本中。 节点池版本不能大于控制平面版本。 更多信息请参见 升级节点池。 | 字符串 |
| osDiskSizeGB | OS 磁盘大小(以 GB 为单位)用于为主/代理池中的每个计算机指定磁盘大小。 如果指定 0,它将根据指定的 vmSize 应用默认 osDisk 大小。 | int Constraints: 最小值 = 0 最大值 = 2048 |
| osDiskType | 要用于代理池中的计算机的 OS 磁盘类型。 如果 VM 支持该 VM 并且缓存磁盘大于请求的 OSDiskSizeGB,则默认值为“临时”。 否则,默认为“Managed”。 创建后可能不会更改。 更多信息请参见Ephemeral OS。 | 'Ephemeral' 'Managed' |
| osSKU | 指定代理池使用的 OS SKU。 如果 OSType 为 Linux,则默认值为 Ubuntu。 当 Kubernetes <= 1.24 或 Windows2022(如果 OSType 为 Windows)时 >,默认值为 Windows2019。 | 'AzureContainerLinux' 'AzureLinux' 'AzureLinux3' 'CBLMariner' “平车” 'Mariner' 'Ubuntu' 'Ubuntu2204' 'Ubuntu2404' 'Ubuntu2604' 'Windows2019' 'Windows2022' “窗户2025” 'WindowsAnnual' |
| osType | 作系统类型。 默认值为 Linux。 | 'Linux' 'Windows' |
| podIPAllocationMode | Pod IP 分配模式。 代理池中 Pod 的 IP 分配模式。 必须与 podSubnetId 一起使用。 默认值为“DynamicIndividual”。 | 'DynamicIndividual' 'StaticBlock' |
| podSubnetID | 启动时 Pod 将加入的子网的 ID。 如果省略,则会在节点子网上静态分配 Pod IP(有关详细信息,请参阅 vnetSubnetID)。 此格式为:/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName} | 字符串 |
| powerState | 代理池是正在运行还是已停止。 首次创建代理池时,它最初正在运行。 可以通过将此字段设置为“已停止”来停止代理池。 已停止的代理池会停止其所有 VM,不会产生计费费用。 仅当代理池正在运行并且预配状态为“成功”时,才能停止代理池 | PowerState |
| preparedImageSpecificationProfile | 设置以确定用于配置池中节点的预备镜像规范。 | PreparedImageSpecificationProfile |
| proximityPlacementGroupID | 邻近放置组的 ID。 | 字符串 |
| scaleDownMode | 缩放代理池时要使用的缩减模式。 这也会影响群集自动缩放程序的行为。 如果未指定,则默认为 Delete。 | 'Deallocate' 'Delete' |
| scaleSetEvictionPolicy | 虚拟机规模集逐出策略。 驱逐政策明确了虚拟机被驱逐时to do处理方式。 默认值为“删除”。 有关驱逐的更多信息,请参见 spot 虚拟机 | 'Deallocate' 'Delete' |
| scaleSetPriority | 虚拟机规模集优先级。 | 'Regular' 'Spot' |
| securityProfile | 代理池的安全设置。 | AgentPoolSecurityProfile |
| spotMaxPrice | 你愿意支付现成实例的最大价格(以美元为单位)。 可能的值是大于零或 -1 的任何小数值,指示要按需 up-to 的默认价格。 可能的值是大于零或 -1 的任何小数值,表示愿意支付任何按需价格。 有关现货价格的更多详情,请参见现货虚拟机价格 | int |
| 状态 | 包含有关代理池的只读信息。 | AgentPoolStatus |
| tags | 要保留在代理池虚拟机规模集上的标记。 | ManagedClusterAgentPoolProfilePropertiesTags |
| 类型 | 代理池的类型。 | 'AvailabilitySet' “FlexNodes” 'VirtualMachines' 'VirtualMachineScaleSets' |
| upgradeSettings | 用于升级代理池的设置 | AgentPoolUpgradeSettings |
| 升级设置蓝绿 | 代理池上 Blue-Green 升级的设置。 当升级策略设置为 BlueGreen 时适用。 | AgentPoolBlueGreenUpgradeSettings |
| 升级策略 | 定义代理池的升级策略。 默认值为滚动。 | “蓝绿” 'Rolling' |
| virtualMachineNodesStatus | VirtualMachines 代理池中的节点的状态。 | VirtualMachineNodes[] |
| virtualMachinesProfile | VirtualMachines 代理池上的规范。 | VirtualMachinesProfile |
| vmSize | 代理池 VM 的大小。 VM 大小可用性因区域而异。 如果节点包含的计算资源(内存、cpu 等)Pod 不足,可能无法正常运行。 有关受限虚拟机规模的更多细节,请参见:/azure/aks/quotas-skus-regions | 字符串 |
| vnetSubnetID | 代理池节点和(可选)Pod 将在启动时加入的子网的 ID。 如果未指定,将生成和使用 VNET 和子网。 如果未指定 podSubnetID,则这适用于节点和 Pod,否则它仅适用于节点。 此格式为:/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName} | 字符串 |
| windowsProfile | Windows 代理池的特定配置文件。 | AgentPoolWindowsProfile |
| workloadRuntime | 确定节点可以运行的工作负荷的类型。 | 'KataMshvVmIsolation' “KataVm隔离” 'OCIContainer' 'WasmWasi' |
ManagedClusterAgentPoolProfilePropertiesNodeLabels
| Name | Description | Value |
|---|
ManagedClusterAgentPoolProfilePropertiesTags
| Name | Description | Value |
|---|
ManagedClusterAgentSandboxProfile
| Name | Description | Value |
|---|---|---|
| enabled | 集群是否启用了Agent Sandbox核心扩展。 在集群创建时,默认是 false。 | bool |
ManagedClusterAIToolchainOperatorProfile
| Name | Description | Value |
|---|---|---|
| enabled | 是否为集群启用 AI toolchain Operator。 指示 AI 工具链作员是否已启用。 | bool |
ManagedClusterAPIServerAccessProfile
| Name | Description | Value |
|---|---|---|
| authorizedIPRanges | 授权access Kubernetes API服务器的IP范围。 IP 范围以 CIDR 格式指定,例如 137.117.106.88/29。 该功能不兼容使用公共 IP Per Node 的集群,或使用 Basic 负载均衡器 的集群。 更多信息请参见 API 服务器授权 IP 范围。 | string[] |
| disableRunCommand | 是否禁用群集的 run 命令。 | bool |
| enablePrivateCluster | 是否创建群集作为专用群集。 更多细节请参见 创建私有 AKS 集群。 | bool |
| enablePrivateClusterPublicFQDN | 是否为专用群集创建其他公共 FQDN。 | bool |
| enableVnetIntegration | 是否为群集启用 apiserver vnet 集成。 有关详细信息,请参阅 aka.ms/AksVnetIntegration。 | bool |
| privateDNSZone | 集群的private DNS区域模式。 默认值为 System。 更多详情请参见configure private DNS zone。 允许的值为“system”和“none”。 | 字符串 |
| subnetId | 启用 apiserver vnet 集成时要使用的子网。 使用 BYO Vnet 创建新集群时,或者更新现有集群以启用 apiserver vnet 集成时,需要它。 | 字符串 |
ManagedClusterAppRoutingIstio
| Name | Description | Value |
|---|---|---|
| mode | 是否启用 Istio 作为 Gateway API 实现,用于与应用路由的托管入口。 | 'Disabled' 'Enabled' |
ManagedClusterAutoUpgradeProfile
| Name | Description | Value |
|---|---|---|
| nodeOSUpgradeChannel | 节点作系统升级通道。 更新节点上 OS 的方式。 默认值为 NodeImage。 | 'NodeImage' 'None' 'SecurityPatch' 'Unmanaged' |
| upgradeChannel | 用于自动升级的升级通道。 默认值为“none”。 更多信息请参见 setting AKS 集群自动升级通道。 | 'node-image' 'none' 'patch' 'rapid' 'stable' |
ManagedClusterAzureMonitorProfile
| Name | Description | Value |
|---|---|---|
| appMonitoring | Kubernetes 应用程序容器的应用程序监视配置文件。 通过使用 Azure Monitor OpenTelemetry 的 SDK 自动监测应用,收集应用日志、指标和追踪数据。 有关概述,请参阅 aka.ms/AzureMonitorApplicationMonitoring。 | ManagedClusterAzureMonitorProfileAppMonitoring |
| containerInsights | 设置它以启用并配置集群的 Azure Monitor Container Insights,该系统收集 Kubernetes 事件、库存以及容器的标准和标准日志。 有关概述,请参阅 aka.ms/AzureMonitorContainerInsights。 | ManagedClusterAzureMonitorProfileContainerInsights |
| 指标 | 适用于 Prometheus 加载项的 Azure Monitor 托管服务的指标配置文件。 收集开箱即用的Kubernetes基础设施指标,发送到Azure监控工作区,并为自定义目标配置额外的抓取。 有关概述,请参阅 aka.ms/AzureManagedPrometheus。 | ManagedClusterAzureMonitorProfileMetrics |
ManagedClusterAzureMonitorProfileAppMonitoring
| Name | Description | Value |
|---|---|---|
| autoInstrumentation | AKS的应用监控自动仪表。 部署一个webhook,自动对Microsoft OpenTelemetry发行版的工作负载进行监测,以收集OpenTelemetry的指标、日志和跟踪数据。 参见 https://aka.ms/AKSAppMonitoringDocs 和 https://aka.ms/AzureMonitorApplicationMonitoring 以获取概述。 | ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation |
| 开放遥测日志与追踪 | 应用监控 OpenTelemetry 日志与追踪配置文件适用于 AKS。 利用基于 Azure Monitor 的 OpenTelemetry SDK 收集 OpenTelemetry 日志和应用的跟踪数据。 参见 https://aka.ms/AKSAppMonitoringDocs 和 https://aka.ms/AzureMonitorApplicationMonitoring 以获取概述。 | ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces |
| openTelemetryMetrics | 应用监控 AKS 的 OpenTelemetry 指标配置文件。 利用基于 Azure Monitor 的 OpenTelemetry SDK 收集应用的 OpenTelemetry 指标。 参见 https://aka.ms/AKSAppMonitoringDocs 和 https://aka.ms/AzureMonitorApplicationMonitoring 以获取概述。 | ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics |
ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation
| Name | Description | Value |
|---|---|---|
| enabled | 指示是否启用应用监控自动仪表。 | bool |
ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces
| Name | Description | Value |
|---|---|---|
| enabled | 指示是否启用应用监控OpenTelemetry Logs and trace。 | bool |
| grpcPort | OpenTelemetry GRPC 的主机端口是日志和追踪。 如果未指定,默认端口是28332。 | int |
| httpPort | OpenTelemetry HTTP/PROTOBUF 日志和追踪的主机端口。 如果未指定,则默认端口为 28331。 | int |
ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics
| Name | Description | Value |
|---|---|---|
| enabled | 指示是否启用了应用监控OpenTelemetry Metrics。 | bool |
| grpcPort | OpenTelemetry GRPC 指标的主机端口。 如果未指定,默认端口是28334。 | int |
| httpPort | OpenTelemetry HTTP/PROTOBUF 指标的主机端口。 如果未指定,则默认端口为 28333。 | int |
ManagedClusterAzureMonitorProfileContainerInsights
| Name | Description | Value |
|---|---|---|
| containerNetworkLogs | 用 Azure Monitor 配置容器网络日志摄取。 所摄取的日志类型由相关的CRD控制;如果未指定,则默认为 Disabled。 有关详细信息,请参阅 https://aka.ms/ContainerNetworkLogsDoc 和 https://aka.ms/acns/howtoenablecnl 了解详细信息。 |
'Disabled' 'Enabled' |
| disablePrometheusMetricsScraping | 指示是否禁用 prometheus 指标擦除。 如果未指定,默认值为 false,即 prometheus 抓取已被启用。 | bool |
| enabled | 提示是否启用了 Azure Monitor 容器洞察日志插件。 | bool |
| logAnalyticsWorkspaceResourceId | Azure Log Analytics Workspace 的 Fully Qualified ARM Resource ID for storageing Azure Monitor Container Insights Logs. | 字符串 |
| syslogPort | syslog 主机端口。 如果未指定,则默认端口为 28330。 | int |
ManagedClusterAzureMonitorProfileKubeStateMetrics
| Name | Description | Value |
|---|---|---|
| metricAnnotationsAllowList | 将在资源的标签指标中使用的 Kubernetes 批注键的逗号分隔列表(示例:'namespaces=[kubernetes.io/team,...],pods=[kubernetes.io/team],...')。 默认情况下,指标仅包含资源名称和命名空间标签。 | 字符串 |
| metricLabelsAllowlist | 将在资源的标签指标中使用的其他 Kubernetes 标签键的逗号分隔列表(示例:'namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...')。 默认情况下,指标仅包含资源名称和命名空间标签。 | 字符串 |
ManagedClusterAzureMonitorProfileMetrics
| Name | Description | Value |
|---|---|---|
| controlPlane的 | Control plane metrics collection profile for the Azure Managed Prometheus addon. 配置来自托管控制平面组件(kube-apiserver、etcd 等)的运行时指标收集。 请参见 aka.ms/aks/controlplane-metrics 了解概况。 | ManagedClusterAzureMonitorProfileMetricsControlPlane |
| enabled | 是否启用或禁用Azure托管Prometheus插件用于Prometheus监控。 有关启用和禁用的详细信息,请参阅 aka.ms/AzureManagedPrometheus-aks-enable。 | bool (必需) |
| kubeStateMetrics | Azure 托管 Prometheus 加载项的 Kube 状态指标配置文件。 这些可选设置适用于使用加载项部署的 kube-state-metrics Pod。 有关详细信息,请参阅 aka.ms/AzureManagedPrometheus-optional-parameters。 | ManagedClusterAzureMonitorProfileKubeStateMetrics |
ManagedClusterAzureMonitorProfileMetricsControlPlane
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用或禁用Azure托管Prometheus插件对控制平面指标的收集。 默认设置为禁用。 详情请参见 aka.ms/aks/controlplane-metrics。 | bool |
ManagedClusterBootstrapProfile
| Name | Description | Value |
|---|---|---|
| artifactSource | 项目源。 artifacts 下载的来源。 | 'Cache' 'Direct' |
| containerRegistryId | The resource ID of Azure 容器注册表. 注册局必须具备私有网络access、高级SKU和区域冗余。 | 字符串 |
ManagedClusterControlPlaneScalingProfile
| Name | Description | Value |
|---|---|---|
| 缩放大小 | 控制平面的缩放尺寸。 扩展规模提供保证容量和可预测的 Kubernetes 性能,超出标准层默认。 更大的H尺寸能提供更高的性能保证。 有关各尺寸的性能指标详情请参见 https://aka.ms/aks/hyperscale 。 | “H2” “H4” “H8”(必填) |
ManagedClusterCostAnalysis
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用成本分析。 托管群集 sku.tier 必须设置为“标准”或“高级”才能启用此功能。 启用此功能后,Kubernetes 命名空间和部署细节会添加到 Azure portal 的成本分析视图中。 如果未指定,则默认值为 false。 有关详细信息,请参阅 aka.ms/aks/docs/cost-analysis。 | bool |
ManagedClusterHealthMonitorProfile
| Name | Description | Value |
|---|---|---|
| enenable ContinuousControlPlaneAndAddonMonitor | 是否启用连续控制平面和附加监视器。 | bool |
| enableOnDemandMonitor | 是否启用按需监控。 | bool |
ManagedClusterHosted系统配置文件
| Name | Description | Value |
|---|---|---|
| enabled | 是否为群集启用托管系统插件。 | bool |
| nodeSubnetID | 将由node autoprovisioner管理的工作负载节点加入的子网ID,用于在租户中运行工作负载Pod。 这必须与 systemNodeSubnetID 和 apiserverAccessProfile.subnetId一起提供,且三个子网 ID 必须在同一个 VNet 中。 如果你没有指定,AKS 会在托管资源组中用默认的 /16 CIDR 创建一个子网。 |
字符串 |
| systemNodeSubnetID | 由 AKS 管理和托管的系统节点连接的子网 ID,用于运行关键系统插件。 该 ID 必须与 nodeSubnetID 和 apiserverAccessProfile.subnetId一起提供,且所有三个子网 ID 必须属于同一个 VNet。 如果你没有指定,AKS 会在托管资源组中用默认的 /26 CIDR 创建一个子网。 |
字符串 |
ManagedClusterHttpProxyConfig
| Name | Description | Value |
|---|---|---|
| enabled | 是否开启 HTTP 代理。 如果被禁用,指定的代理配置将不会在 pod 和节点上设置。 如果未指定,则默认值为 true。 | bool |
| httpProxy | 要使用的 HTTP 代理服务器终结点。 | 字符串 |
| httpsProxy | 要使用的 HTTPS 代理服务器终结点。 | 字符串 |
| noProxy | 不应通过代理的终结点。 | string[] |
| trustedCa | 用于连接到代理服务器的替代 CA 证书。 | 字符串 |
ManagedClusterIdentity
| Name | Description | Value |
|---|---|---|
| delegatedResources | 分配给此托管群集的委托标识资源。 这只能由其他 Azure 资源提供者设置,而托管集群只能接受一个委派的身份资源。 仅供内部使用。 | ManagedClusterIdentityDelegatedResources |
| 类型 | 用于托管群集的标识类型。 更多信息请参见AKS中的 |
'None' 'SystemAssigned' 'UserAssigned' |
| userAssignedIdentities | 与托管群集关联的用户标识。 此标识将用于控制平面。 仅允许一个用户分配的标识。 密钥必须是 ARM 资源 ID,格式为“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 | ManagedClusterIdentityUserAssignedIdentities |
ManagedClusterIdentityDelegatedResources
| Name | Description | Value |
|---|
ManagedClusterIdentityUserAssignedIdentities
| Name | Description | Value |
|---|
ManagedClusterIngressDefaultDomainProfile
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用默认域。 | bool |
ManagedClusterIngressProfile
| Name | Description | Value |
|---|---|---|
| applicationLoadBalancer | 托管应用负载均衡器安装设置 | ManagedClusterIngressProfileApplicationLoadBalancer |
| 网关API | 托管网关 API 安装的设置 | ManagedClusterIngressProfileGateway配置 |
| webAppRouting | 入口配置文件的应用路由设置。 你可以在 /azure/aks/app-routing?tabs=default%2Cdeploy-app-default 找到该功能的概述和入职指南。 | ManagedClusterIngressProfileWebAppRouting |
ManagedClusterIngressProfileApplicationLoadBalancer
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 Application 负载均衡器。 | bool |
ManagedClusterIngressProfileGateway配置
| Name | Description | Value |
|---|---|---|
| 安装 | 托管网关 API 安装的配置。 如果未指定,则默认值为“禁用”。 有关详细信息,请参阅 https://aka.ms/k8s-gateway-api。 | 'Disabled' 'Standard' |
ManagedClusterIngressProfileNginx
| Name | Description | Value |
|---|---|---|
| defaultIngressControllerType | 默认 NginxIngressController 自定义资源的入口类型 | 'AnnotationControlled' 'External' 'Internal' 'None' |
ManagedClusterIngressProfileWebAppRouting
| Name | Description | Value |
|---|---|---|
| defaultDomain | 默认域的配置。 这是一个唯一的自动生成域,带有签名的 TLS 证书,允许安全 HTTPS。 有关更多说明,请参阅 默认域文档 。 | ManagedClusterIngressDefaultDomainProfile |
| dnsZoneResourceIds | 要与应用程序路由加载项关联的 DNS 区域的资源 ID。 仅在启用应用程序路由加载项时使用。 公有和private DNS区域可以属于不同的资源组,但所有公共DNS区域必须属于同一资源组,所有private DNS区域也必须属于同一资源组。 | string[] |
| enabled | 是否启用应用程序路由加载项。 | bool |
| gatewayAPIImplementations | 用于应用路由管理入口的Gateway API提供者配置。 有关Gateway API的更多信息,请参见 https://aka.ms/k8s-gateway-api 。 | ManagedClusterWebAppRoutingGatewayAPIImplementations |
| nginx | 默认 NginxIngressController 的配置。 更多请访问 /azure/aks/app-routing-nginx-configuration#the-default-nginx-ingress-controller。 | ManagedClusterIngressProfileNginx |
ManagedClusterLoadBalancerProfile
| Name | Description | Value |
|---|---|---|
| allocatedOutboundPorts | 每个 VM 分配的 SNAT 端口的所需数量。 允许的值为 0 到 64000(含)。 默认值为0,这会导致Azure动态分配端口。 | int Constraints: 最小值 = 0 最大值 = 64000 |
| backendPoolType | 受管理的入站负载均衡器后端池类型。 | 'NodeIP' 'NodeIPConfiguration' “PodIP” |
| clusterServiceLoadBalancerHealthProbeMode | 外部流量策略群集服务的运行状况探测行为。 | 'ServiceNodePort' “共享” |
| enableMultipleStandardLoadBalancers | 为每个 AKS 群集启用多个标准负载均衡器。 | bool |
| idleTimeoutInMinutes | 所需的出站流空闲超时(以分钟为单位)。 允许的值为 4 到 120(含)。 默认值为 30 分钟。 | int Constraints: 最小值 = 4 最大值 = 120 |
| managedOutboundIPs | 集群load balancer的期望托管出站IP。 | ManagedClusterLoadBalancerProfileManagedOutboundIPs |
| outboundIPPrefixes | 集群load balancer所需的出站IP前缀资源。 | ManagedClusterLoadBalancerProfileOutboundIPPrefixes |
| outboundIPs | 集群load balancer的期望出站IP资源。 | ManagedClusterLoadBalancerProfileOutboundIPs |
ManagedClusterLoadBalancerProfileManagedOutboundIPs
| Name | Description | Value |
|---|---|---|
| count | 这是Azure为集群load balancer创建和管理的IPv4出站IP的期望数量。 允许的值必须介于 1 到 100 之间(含)。 默认值为 1。 | int Constraints: 最小值 = 1 最大值 = 100 |
| countIPv6 | Azure为集群load balancer创建和管理的IPv6出站IP数量。 允许的值必须介于 1 到 100 之间(含)。 对于单堆栈,默认值为 0,双堆栈的默认值为 1。 | int Constraints: 最小值 = 0 最大值 = 100 |
ManagedClusterLoadBalancerProfileOutboundIPPrefixes
| Name | Description | Value |
|---|---|---|
| publicIPPrefixes | 公共 IP 前缀资源的列表。 | ResourceReference[] |
ManagedClusterLoadBalancerProfileOutboundIPs
| Name | Description | Value |
|---|---|---|
| publicIPs | 公共 IP 资源的列表。 | ResourceReference[] |
ManagedClusterManagedOutboundIPProfile
| Name | Description | Value |
|---|---|---|
| count | 由 Azure 创建和管理的期望出站 IP 数量。 允许的值必须介于 1 到 16 之间(含)。 默认值为 1。 | int Constraints: 最小值 = 1 最大值 = 16 |
| countIPv6 | Azure创建/管理的IPv6出站IP数量。 允许的值必须介于 1 到 16 之间(含)。 | int Constraints: 最小值 = 1 最大值 = 16 |
ManagedClusterMetricsProfile
| Name | Description | Value |
|---|---|---|
| costAnalysis | 每个 Kubernetes 资源成本分析的详细配置。 | ManagedClusterCostAnalysis |
ManagedClusterNATGatewayProfile
| Name | Description | Value |
|---|---|---|
| idleTimeoutInMinutes | 所需的出站流空闲超时(以分钟为单位)。 允许的值为 4 到 120(含)。 默认值为 4 分钟。 | int Constraints: 最小值 = 4 最大值 = 120 |
| managedOutboundIPProfile | 群集 NAT 网关的托管出站 IP 资源的配置文件。 | ManagedClusterManagedOutboundIPProfile |
| outboundIPPrefixes | 托管NAT网关的期望出站IP前缀资源。 仅兼容NAT网关V2。 | ManagedClusterNATGatewayProfileOutboundIPPrefixes |
| outboundIPs | 托管NAT网关的期望出站IP资源。 | ManagedClusterNATGatewayProfileOutboundIPS |
| sku | 托管集群NAT网关的SKU。 在该地区有“StandardV2”默认设置,否则为“Standard”。 | 'Standard' 'StandardV2' |
ManagedClusterNATGatewayProfileOutboundIPPrefixes
| Name | Description | Value |
|---|---|---|
| publicIPPrefixes | 公共 IP 前缀资源的列表。 | string[] |
ManagedClusterNATGatewayProfileOutboundIPS
| Name | Description | Value |
|---|---|---|
| publicIPs | 公共 IP 资源的列表。 | string[] |
ManagedClusterNodeProvisioningProfile
| Name | Description | Value |
|---|---|---|
| defaultNodePools | 为节点预置配置的默认 Karpenter 节点池 (CRD) 集。 除非 mode 为 'Auto',否则此字段无效。 警告:在现有集群上将其从 Auto 更改为 None 将导致默认的 Karpenter NodePools 被删除,这将耗尽并删除与这些池关联的节点。 强烈建议不要这样做,除非有空闲节点准备好接收该作驱逐的 Pod。 如果未指定,则默认值为 Auto。有关更多信息,请参阅 aka.ms/aks/nap#node-pools。 | 'Auto' 'None' |
| mode | 节点预配模式。 如果未指定,则默认值为 Manual。 | 'Auto' 'Manual' |
ManagedClusterNodeResourceGroupProfile
| Name | Description | Value |
|---|---|---|
| restrictionLevel | 应用于群集节点资源组的限制级别。 如果未指定,则默认值为“未限制” | 'ReadOnly' 'Unrestricted' |
ManagedClusterOidcIssuerProfile
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 OIDC 颁发者。 | bool |
ManagedClusterPodIdentity
| Name | Description | Value |
|---|---|---|
| bindingSelector | 要用于 AzureIdentityBinding 资源的绑定选择器。 | 字符串 |
| 标识 | 用户分配的标识详细信息。 | UserAssignedIdentity (必需) |
| name | Pod 标识的名称。 | string (必需) |
| 命名空间 | Pod 标识的命名空间。 | string (必需) |
ManagedClusterPodIdentityException
| Name | Description | Value |
|---|---|---|
| name | Pod 标识异常的名称。 | string (必需) |
| 命名空间 | Pod 标识异常的命名空间。 | string (必需) |
| podLabels | 要匹配的 Pod 标签。 | ManagedClusterPodIdentityExceptionPodLabels (必需) |
ManagedClusterPodIdentityExceptionPodLabels
| Name | Description | Value |
|---|
ManagedClusterPodIdentityProfile
| Name | Description | Value |
|---|---|---|
| allowNetworkPluginKubenet | 是否允许使用 Kubenet 网络在群集上运行 Pod 标识。 默认情况下,由于 AAD Pod 标识的安全相关特性以及 IP 欺骗的风险,在 Kubenet 中运行会禁用。 更多信息请参见using Kubenet网络插件配合AAD Pod Identity。 | bool |
| enabled | 是否启用 Pod 标识加载项。 | bool |
| userAssignedIdentities | 群集中使用的 Pod 标识。 | ManagedClusterPodIdentity[] |
| userAssignedIdentityExceptions | 允许的 Pod 标识异常。 | ManagedClusterPodIdentityException[] |
ManagedClusterPodSnapshotProfile
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用了Pod快照恢复核心扩展。 | bool |
ManagedClusterProperties
| Name | Description | Value |
|---|---|---|
| aadProfile | Azure Active Directory配置。 | ManagedClusterAADProfile |
| addonProfiles | 托管群集加载项的配置文件。 | ManagedClusterPropertiesAddonProfiles |
| agentPoolProfiles | 代理池属性。 | ManagedClusterAgentPoolProfile[] |
| agentSandboxProfile(代理沙盒配置文件) | 适用于整个集群的代理沙箱设置。 | ManagedClusterAgentSandboxProfile |
| aiToolchainOperatorProfile | 适用于整个群集的 AI 工具链作员设置。 | ManagedClusterAIToolchainOperatorProfile |
| apiServerAccessProfile | 托管集群API服务器的access配置文件。 | ManagedClusterAPIServerAccessProfile |
| autoScalerProfile | 启用时要应用于群集自动缩放程序的参数 | ManagedClusterPropertiesAutoScalerProfile |
| autoUpgradeProfile | 自动升级配置。 | ManagedClusterAutoUpgradeProfile |
| azureMonitorProfile | Azure Monitor 插件配置文件用于监控托管集群。 | ManagedClusterAzureMonitorProfile |
| bootstrapProfile | 群集启动配置的配置文件。 | ManagedClusterBootstrapProfile |
| controlPlaneScalingProfile | 配置文件用于提供可扩展且性能保证的控制平面容量,以在高负载下提供稳定的性能。 需要Kubernetes 1.33.0或更高版本。 | ManagedClusterControlPlaneScalingProfile |
| creationData | 如果使用快照创建/升级群集,则用于指定源快照 ID 的 CreationData。 | CreationData |
| disableLocalAccounts | 如果应在托管群集上禁用本地帐户。 如果设置为 true,将禁用此群集的静态凭据。 这只能在启用了 AAD 的托管群集上使用。 更多详情请参见disable local accounts。 | bool |
| diskEncryptionSetID | 用于启用静态加密的磁盘加密集的资源 ID。 此格式为:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{encryptionSetName}” | 字符串 |
| dnsPrefix | 托管群集的 DNS 前缀。 创建托管群集后,无法更新此功能。 | 字符串 |
| enableFIPS | 是否在集群层面启用FIPS模式。 启用后,该设置会强制所有 AKS 管理组件(如节点操作系统、插件和 受管理容器化组件)符合 FIPS 标准。 详情请参见 “启用集群范围的FIPS ”。 启用该属性后,集群中的所有节点池也必须启用FIPS。 尽管该特性在稳定的API版本中可用,但集群范围的FIPS仍是一个预览功能。 将该属性设置为true的写请求需要 Microsoft.ContainerService/EnableFIPSPreview 订阅功能注册。 |
bool |
| enableNamespaceResources | 启用命名空间作为 Azure 资源。 默认值为 false。 可以在创建和更新托管群集时启用/禁用它。 有关命名空间作为 ARM 资源的更多详细信息,请参阅 https://aka.ms/NamespaceARMResource 。 | bool |
| enableNodeHardening | 是否在集群层面启用节点硬化。 启用后,AKS 会对集群中所有 Linux 节点池应用软驱逐阈值、库比保留和系统保留的硬默认值。 每个节点池的kubeletConfig设置优先于固化默认值。 在运行Kubernetes 1.37及更高版本的代理池中,节点硬化默认启用且无法禁用;将该字段设置为虚假对这些池没有影响。 | bool |
| enableRBAC | 是否启用 Kubernetes Role-Based 访问控制。 | bool |
| fqdnSubdomain | 私有集群的FQDN子域,带有自定义的private dns区域。 创建托管群集后,无法更新此功能。 | 字符串 |
| 健康监测档案 | 管理集群的健康监控配置文件。 | ManagedClusterHealthMonitorProfile |
| 托管系统配置文件 | 托管系统插件的设置。 有关详细信息,请参阅 https://aka.ms/aks/automatic/systemcomponents。 | ManagedClusterHosted系统配置文件 |
| httpProxyConfig | 使用 HTTP 代理服务器预配群集的配置。 | ManagedClusterHttpProxyConfig |
| identityProfile | 与托管群集关联的用户标识。 kubelet 将使用此标识。 仅允许一个用户分配的标识。 唯一接受的密钥为“kubeletidentity”,值为“resourceId”:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 | ManagedClusterPropertiesIdentityProfile |
| ingressProfile | 托管群集的入口配置文件。 | ManagedClusterIngressProfile |
| kubernetesVersion | 用户指定的 Kubernetes 版本。 支持修补程序版本 <major.minor.patch> (例如 1.20.13)和 <major.minor> (例如 1.20)。 指定 major.minor< 后>,会自动选择最新的受支持的 GA 修补程序版本。 <创建群集后使用相同的 major.minor> 更新群集(例如 1.14.x -> 1.14)不会触发升级,即使有较新的修补程序版本可用也是如此。 升级支持的 AKS 群集时,无法跳过 Kubernetes 次要版本。 所有升级都必须按主版本号按顺序执行。 例如,允许在 1.14.x -> 1.15.x 或 1.15.x -> 1.16.x 之间进行升级,但不允许使用 1.14.x -> 1.16.x。 详情请参见升级一个AKS集群。 | 字符串 |
| linuxProfile | 托管群集中 Linux VM 的配置文件。 | ContainerServiceLinuxProfile |
| metricsProfile | 可选群集指标配置。 | ManagedClusterMetricsProfile |
| networkProfile | 网络配置文件。 | ContainerServiceNetworkProfile |
| nodeDisruptionProfile | 托管集群的节点中断配置文件。 | 节点破坏配置文件 |
| nodeProvisioningProfile | 适用于整个群集的节点预配设置。 | ManagedClusterNodeProvisioningProfile |
| nodeResourceGroup | 包含代理池节点的资源组的名称。 | 字符串 |
| nodeResourceGroupProfile | 节点资源组配置的配置文件。 | ManagedClusterNodeResourceGroupProfile |
| oidcIssuerProfile | 托管群集的 OIDC 颁发者配置文件。 | ManagedClusterOidcIssuerProfile |
| podIdentityProfile | 托管群集的 Pod 标识配置文件。 有关AAD舱体身份集成的更多细节,请参见use AAD pod idid。 | ManagedClusterPodIdentityProfile |
| pod快照配置文件 | 托管集群的Pod快照恢复配置文件。 | ManagedClusterPodSnapshotProfile |
| privateLinkResources | 与集群关联的Private link资源。 | PrivateLinkResource[] |
| publicNetworkAccess | PublicNetworkAccess 的 PublicNetworkAccess 中。 允许或拒绝AKS的公共网络access | 'Disabled' 'Enabled' “SecuredByPerimeter” |
| schedulerProfile | 带有调度器相关设置的配置文件,比如每个调度器由 AKS 管理的配置模式。 请参阅 https://aka.ms/aks/scheduler-profile。 | SchedulerProfile |
| securityProfile | 托管群集的安全配置文件。 | ManagedClusterSecurityProfile |
| serviceMeshProfile | 托管群集的服务网格配置文件。 | ServiceMeshProfile |
| servicePrincipalProfile | 关于集群用于作Azure API的服务主体身份信息。 | ManagedClusterServicePrincipalProfile |
| 状态 | 包含有关托管群集的只读信息。 | ManagedClusterStatus |
| storageProfile | 管理集群的 Storage 配置文件。 | ManagedClusterStorageProfile |
| supportPlan | 托管群集的支持计划。 如果未指定,则默认值为“KubernetesOfficial”。 | 'AKSLongTermSupport' 'KubernetesOfficial' |
| upgradeSettings | 用于升级群集的设置。 | ClusterUpgradeSettings |
| windowsProfile | 托管群集中 Windows VM 的配置文件。 | ManagedClusterWindowsProfile |
| workloadAutoScalerProfile | 托管群集的工作负荷自动缩放程序配置文件。 | ManagedClusterWorkloadAutoScalerProfile |
ManagedClusterPropertiesAddonProfiles
| Name | Description | Value |
|---|
ManagedClusterPropertiesAutoScalerProfile
| Name | Description | Value |
|---|---|---|
| balance-similar-node-groups | 检测类似节点池并在各池之间均衡节点数。 有效值为“true”和“false” | 字符串 |
| daemonset-eviction-for-empty-nodes | DaemonSet Pod 将从空节点正常终止。 如果设置为 true,则会在删除节点之前逐出空节点上的所有守护程序集 Pod。 如果无法逐出守护程序集 Pod,则会选择另一个节点进行缩放。 如果设置为 false,则会删除节点,而无需确保删除或逐出守护程序集 Pod。 | bool |
| daemonset-eviction-for-occupied-nodes | DaemonSet Pod 将从非空节点正常终止。 如果设置为 true,则会在删除节点之前逐出占用节点上的所有守护程序集 Pod。 如果无法逐出守护程序集 Pod,则会选择另一个节点进行缩放。 如果设置为 false,则会删除节点,而无需确保删除或逐出守护程序集 Pod。 | bool |
| expander | 纵向扩展时要使用的扩展器。 如果未指定,则默认值为“random”。 更多信息请参见扩展器。 | 'least-waste' 'most-pods' 'priority' 'random' |
| ignore-daemonsets-utilization | CA 在计算缩减的资源利用率时是否应该忽略 DaemonSet Pod。 如果设置为 true,则当做出缩减决策时,将考虑守护程序集使用的资源。 | bool |
| max-empty-bulk-delete | 可以同时删除的最大空节点数。 这必须是正整数。 默认值是10。 | 字符串 |
| max-graceful-termination-sec | 群集自动缩放程序在尝试缩减节点时等待 Pod 终止的最大秒数。 默认值为 600。 | 字符串 |
| max-node-provision-time | 自动缩放程序等待预配节点的最长时间。 默认值为“15m”。 值必须是后跟“m”的整数。 不支持除分钟(m)以外的时间单位。 | 字符串 |
| max-total-unready-percentage | 群集中未读节点的最大百分比。 超过此百分比后,群集自动缩放程序将停止作。 默认值为 45。 最大值为 100,最小值为 0。 | 字符串 |
| new-pod-scale-up-delay | 在某个年龄之前忽略未计划的 Pod。 对于在 kubernetes 计划程序可以计划所有 Pod 之前不希望 CA 执行作的突发/批处理缩放方案,可以告诉 CA 在某个年龄之前忽略未计划的 Pod。 默认值为“0s”。 值必须是一个整数,后跟一个单位(以秒为单位,“m”表示分钟,“h”表示小时等)。 | 字符串 |
| ok-total-unready-count | 允许的未读节点数,而不考虑最大总未读百分比。 这必须是整数。 默认值是3。 | 字符串 |
| scale-down-delay-after-add | 纵向扩展后多长时间纵向缩减评估恢复。 默认值为“10m”。 值必须是后跟“m”的整数。 不支持除分钟(m)以外的时间单位。 | 字符串 |
| scale-down-delay-after-delete | 删除节点后多长时间纵向缩减评估恢复。 默认值为扫描间隔。 值必须是后跟“m”的整数。 不支持除分钟(m)以外的时间单位。 | 字符串 |
| scale-down-delay-after-failure | 纵向缩减失败后多长时间纵向缩减评估恢复。 默认值为“3m”。 值必须是后跟“m”的整数。 不支持除分钟(m)以外的时间单位。 | 字符串 |
| scale-down-unneeded-time | 节点在有资格缩减之前,应该不需要多长时间。 默认值为“10m”。 值必须是后跟“m”的整数。 不支持除分钟(m)以外的时间单位。 | 字符串 |
| scale-down-unready-time | 未就绪的节点在符合缩减条件之前应不需要多长时间。 默认值为“20m”。 值必须是后跟“m”的整数。 不支持除分钟(m)以外的时间单位。 | 字符串 |
| scale-down-utilization-threshold | 节点利用率级别(定义为请求的资源之和除以容量)后,可以考虑节点进行缩减。 默认值为“0.5”。 | 字符串 |
| scan-interval | 重新评估群集以纵向扩展或缩减的频率。 默认值为“10”。 值必须是整数秒数。 | 字符串 |
| 带本地节点的跳storage | 如果集群自动扩展器会跳过带有本地storage的节点,比如EmptyDir或HostPath。 默认值为 true。 | 字符串 |
| skip-nodes-with-system-pods | 如果集群自动扩缩器会跳过从 kube-system 中删除带有 Pod 的节点(DaemonSet 或镜像 Pod 除外)。 默认值为 true。 | 字符串 |
ManagedClusterPropertiesIdentityProfile
| Name | Description | Value |
|---|
ManagedClusterSecurityProfile
| Name | Description | Value |
|---|---|---|
| azureKeyVaultKms | Azure 密钥保管库 密钥管理服务安全配置文件的设置。 | AzureKeyVaultKms |
| customCATrustCertificates | 最多 10 个 base64 编码 CA 的列表,该 CA 将添加到群集中所有节点上的信任存储中。 更多信息请参见自定义CA信任证书。 | any[] |
| defender | Microsoft Defender 关于安全配置文件的设置。 | ManagedClusterSecurityProfileDefender |
| imageCleaner | 安全配置文件的图像清理器设置。 | ManagedClusterSecurityProfileImageCleaner |
| imageIntegrity | 图像完整性是一项与 Azure Policy 配合使用的功能,用于通过签名验证图像完整性。 除非应用 Azure Policy 强制执行镜像签名,否则这不会有任何影响。 了解如何 https://aka.ms/aks/image-integrity 通过策略使用此功能。 | ManagedClusterSecurityProfileImageIntegrity |
| kubernetesResourceObjectEncryptionProfile | 对 Kubernetes 资源对象进行静态加密。 有关这方面的更多信息,请访问 https://aka.ms/aks/kubernetesResourceObjectEncryption | KubernetesResourceObjectEncryptionProfile |
| nodeRestriction | 节点限制设置 安全配置文件。 | ManagedClusterSecurityProfileNodeRestriction |
| serviceAccountImagePullProfile | 定义基于服务账户的图片拉取设置。 | ServiceAccountImagePullProfile |
| workloadIdentity | 安全配置文件的工作负荷标识设置。 工作负载身份使 Kubernetes 应用能够通过 Azure AD 安全地access Azure云资源。 有关详细信息,请参阅 https://aka.ms/aks/wi。 | ManagedClusterSecurityProfileWorkloadIdentity |
ManagedClusterSecurityProfileDefender
| Name | Description | Value |
|---|---|---|
| logAnalyticsWorkspaceResourceId | 与 Microsoft Defender 关联的日志分析工作区资源 ID。 启用 Microsoft Defender 时,该字段为必填且必须是有效的工作空间资源 ID。 禁用 Microsoft Defender 时,保持字段空白。 | 字符串 |
| securityGating | Microsoft Defender 关于安全门控的设置。 这验证了基于Defender for Containers安全发现的容器映像部署资格。 通过使用准入控制器,它会审计或阻止不符合安全标准的镜像部署。 有关详细信息,请参阅 https://aka.ms/KubernetesDefenderAuditRule。 | ManagedClusterSecurityProfileDefenderSecurityGating |
| securityMonitoring | Microsoft Defender 威胁检测,用于安全配置文件的云设置。 | ManagedClusterSecurityProfileDefenderSecurityMonitoring |
ManagedClusterSecurityProfileDefenderSecurityGating
| Name | Description | Value |
|---|---|---|
| allowSecretAccess | 仅在注册表访问通过秘密身份而非托管身份授予时使用。 设置是否授予Defender门控代理访问集群机密以从注册库拉取图像的权限。 如果秘密访问被拒绝且注册表要求拉取密钥,插件将不会进行镜像验证。 默认值为 false。 | bool |
| enabled | 是否启用 Defender 安全检查。 启用后,门控功能会扫描容器镜像,并审计或阻止不符合配置安全规则安全标准的镜像部署。 有关详细信息,请参阅 https://aka.ms/KubernetesDefenderAuditRule。 | bool |
| 身份 | 准入控制员用来从注册库拉取安全工件的身份列表。 这些标识与群集用于拉取容器映像的标识相同。 有关配置该身份的更多信息,请参见 /azure/defender-for-cloud/gated-deployment-infrastructure-as-code。 | 管理集群安全配置文件防御者安全门关身份[] |
ManagedClusterSecurityProfileDefenderSecurityGatingIdentity
| Name | Description | Value |
|---|---|---|
| azureContainerRegistry | 将为其使用标识的容器注册表;此处指定的标识应附加联合标识凭据。 | 字符串 |
| 标识 | 用于access注册表的身份对象 | UserAssignedIdentity |
ManagedClusterSecurityProfileDefenderSecurityMonitoring
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 Defender 威胁检测 | bool |
ManagedClusterSecurityProfileImageCleaner
| Name | Description | Value |
|---|---|---|
| enabled | 是否在 AKS 群集上启用映像清理器。 | bool |
| intervalHours | 图像清理器扫描间隔(以小时为单位)。 | int |
ManagedClusterSecurityProfileImageIntegrity
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用映像完整性。 默认值为 false。 | bool |
ManagedClusterSecurityProfileNodeRestriction
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用节点限制 | bool |
ManagedClusterSecurityProfileWorkloadIdentity
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用工作负荷标识。 | bool |
ManagedClusterServicePrincipalProfile
| Name | Description | Value |
|---|---|---|
| clientId | 服务主体的 ID。 | string (必需) |
| 机密 | 以纯文本形式与服务主体关联的机密密码。 | string Constraints: 敏感值。 以安全参数的形式传入。 |
ManagedClusterSKU
| Name | Description | Value |
|---|---|---|
| name | 托管群集 SKU 的名称。 | 'Automatic' 'Base' |
| 分层 | 托管群集 SKU 的层。 如果未指定,则默认值为“Free”。 详情请参见AKS定价层级。 | 'Free' 'Premium' 'Standard' |
ManagedClusterStaticEgressGatewayProfile
| Name | Description | Value |
|---|---|---|
| enabled | 启用 Static Egress Gateway 插件。 指示是否启用静态出口网关加载项。 | bool |
ManagedClusterStatus
| Name | Description | Value |
|---|
ManagedClusterStorageProfile
| Name | Description | Value |
|---|---|---|
| blobCSIDriver | AzureBlob CSI 驱动对 storage 配置文件的设置。 | ManagedClusterStorageProfileBlobCSIDriver |
| diskCSIDriver | AzureDisk CSI 驱动对 storage 配置文件的设置。 | ManagedClusterStorageProfileDiskCSIDriver |
| fileCSIDriver | AzureFile CSI 驱动对 storage 配置文件的设置。 | ManagedClusterStorageProfileFileCSIDriver |
| snapshotController | storage配置文件的快照控制器设置。 | ManagedClusterStorageProfileSnapshotController |
ManagedClusterStorageProfileBlobCSIDriver
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 AzureBlob CSI 驱动程序。 默认值为 false。 | bool |
ManagedClusterStorageProfileDiskCSIDriver
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 AzureDisk CSI 驱动程序。 默认值为真。 | bool |
| 快速联结脱离 | 快速连接 AzureDisk CSI 驱动的分离设置。 快速连接分离通过绕过ARM/CRP控制平面瓶颈,实现更快速、更高规模的Azure磁盘附加和分离操作,适用于有状态的AKS工作负载。 有关详细信息,请参阅 https://aka.ms/aks/qad。 | ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach |
ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 AzureDisk CSI 驱动的快速附件分离功能。 默认值为 false。 | bool |
ManagedClusterStorageProfileFileCSIDriver
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 AzureFile CSI 驱动程序。 默认值为真。 | bool |
ManagedClusterStorageProfileSnapshotController
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用快照控制器。 默认值为真。 | bool |
ManagedClusterWebAppRoutingGatewayAPIImplementations
| Name | Description | Value |
|---|---|---|
| appRoutingIstio | 配置是通过Gateway API和应用路由使用无侧车的Istio控制平面进行托管入口。 关于通过Gateway API使用Istio进行入口的信息,请参见 https://aka.ms/gateway-on-istio 相关信息。 | ManagedClusterAppRoutingIstio |
ManagedClusterWindowsProfile
| Name | Description | Value |
|---|---|---|
| adminPassword | 指定管理员帐户的密码。 最小长度: 8 个字符 最大长度: 123 个字符 复杂性要求:需要满足以下 4 个条件中的 3 个 字符数较低 具有大写字符 包含数字 具有特殊字符(正则表达式匹配 [\W_]) 不允许的值:“abc@123”、“P@$$w 0rd”、“P@ssw0rd”、“P@ssword123”、“Pa$$word”、“pass@word1”、“Password!”、“Password1”、“Password22”、“iloveyou!” |
string Constraints: 敏感值。 以安全参数的形式传入。 |
| adminUsername | 指定管理员帐户的名称。 限制: 不能以“.” 结尾。 不允许的值:“administrator”、“admin”、“user”、“user1”、“test”、“user2”、“test1”、“user3”、“admin1”、“1”, “123”、“a”、“actuser”、“adm”、“admin2”、“aspnet”、“backup”、“console”、“david”、“guest”、“john”、“owner”、“root”、“server”、“sql”、“support”、“support_388945a0”、“sys”、“test2”、“test3”、“user4”、“user5”。 最小长度: 1 个字符 最大长度: 20 个字符 |
string (必需) |
| enableCSIProxy | 是否启用 CSI 代理。 有关CSI代理的更多细节,请参见CSI代理 GitHub repo。 | bool |
| gmsaProfile | 托管群集中的 Windows gMSA 配置文件。 | WindowsGmsaProfile |
| licenseType | 用于 Windows VM 的许可证类型。 详情请参见 Azure 混合用户优势。 | 'None' 'Windows_Server' |
ManagedClusterWorkloadAutoScalerProfile
| Name | Description | Value |
|---|---|---|
| keda | KEDA(Kubernetes 事件驱动的自动缩放)设置,用于工作负荷自动缩放程序配置文件。 | ManagedClusterWorkloadAutoScalerProfileKeda |
| verticalPodAutoscaler | 工作负荷自动缩放程序配置文件的 VPA(垂直 Pod 自动缩放程序)设置。 | ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler |
ManagedClusterWorkloadAutoScalerProfileKeda
| Name | Description | Value |
|---|---|---|
| enabled | 是否启用 KEDA。 | bool (必需) |
ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler
| Name | Description | Value |
|---|---|---|
| addonAutoscaling | 是否启用 VPA 加载项并将其配置为缩放 AKS 管理的加载项。 | 'Disabled' 'Enabled' |
| enabled | 是否启用 VPA。 默认值为 false。 | bool (必需) |
ManagedServiceIdentityUserAssignedIdentitiesValue
| Name | Description | Value |
|---|
ManualScaleProfile
| Name | Description | Value |
|---|---|---|
| count | 节点数。 | int |
| size | AKS 在创建和缩放时将使用的 VM 大小,例如“Standard_E4s_v3”、“Standard_E16s_v3”或“Standard_D16s_v5”。 | 字符串 |
节点破坏配置文件
| Name | Description | Value |
|---|---|---|
| nodeDisruptionPolicy | 关于何时允许某些需要节点重映像和触发重新部署的操作的策略配置。 例如,一些操作,比如更新 .properties。在现有托管集群上,ManagedClusterSecurityProfile.customCATrustCertificates 字段,触发节点的滚动更新。 该设置允许控制何时接受此类更新。 默认是“允许”。 有关涵盖行动的完整列表请参见 aka.ms/aks/nodedisruptionpolicy“。 | “允许” “允许维护窗口” “Block” |
NvidiaGPUProfile
| Name | Description | Value |
|---|---|---|
| 驾驶模式 | NVIDIA GPU 资源分配模式。 DevicePlugin 安装了 NVIDIA Kubernetes 设备插件。 DRA安装了NVIDIA DRA驱动。 |
“设备插件” “DRA” |
| 管理模式 | 托管GPU体验会在GPU驱动之上安装额外组件,比如数据中心GPU管理器(DCGM)指标用于监控。 想了解更多安装内容,请查看 aka.ms/aks/managed-gpu。 | 'Managed' 'Unmanaged' |
| migProfiles | 分配给每个支持的 NVIDIA GPU 的 MIG(多实例 GPU)分区配置文件的顺序列表。 当 migStrategy 时 Single,必须指定一个配置文件。 当 migStrategy 时 Mixed,可以指定一个或多个配置文件,并根据代理池 GPU 虚拟机大小的 MIG 几何结构进行验证。 同一值可能多次出现以请求多个相同大小的分区。 该字段与顶层 gpuInstanceProfile 属性互斥。 有关详细信息,请参阅 https://aka.ms/aks/managed-gpu。 |
包含任一项的字符串数组: 'MIG1g' 'MIG2g' 'MIG3g' 'MIG4g' 'MIG7g' |
| migStrategy | 设定用于托管MIG支持的MIG(多实例GPU)策略。 想了解更多不同策略的信息,请访问 aka.ms/aks/managed-gpu。 未指定时,默认为无。 | “Mixed” 'None' 'Single' |
PortRange
| Name | Description | Value |
|---|---|---|
| portEnd | 范围中包含的最大端口。 它的范围应从 1 到 65535,并且大于或等于 portStart。 | int Constraints: 最小值 = 1 最大值 = 65535 |
| portStart | 范围中包含的最小端口。 它的范围应从 1 到 65535,并且小于或等于 portEnd。 | int Constraints: 最小值 = 1 最大值 = 65535 |
| 协议 | 端口的网络协议。 | 'TCP' 'UDP' |
PowerState
| Name | Description | Value |
|---|---|---|
| 代码 | 指示群集是正在运行还是已停止 | 'Running' 'Stopped' |
PreparedImageSpecificationProfile
| Name | Description | Value |
|---|---|---|
| preparedImageSpecificationId | 准备好的图像规范资源的资源ID。 这可以包括一个版本。 省略该版本将使用最新版本的预备镜像规范。 | 字符串 |
PrivateLinkResource
| Name | Description | Value |
|---|---|---|
| groupId | 资源的组 ID。 | 字符串 |
| id | private link资源的ID。 | 字符串 |
| name | private link资源的名称。 详情请参见 命名规则 。 | 字符串 |
| requiredMembers | 资源的 RequiredMembers | string[] |
| 类型 | 资源类型。 | 字符串 |
ResourceReference
| Name | Description | Value |
|---|---|---|
| id | 完全合格的Azure资源ID。 | 字符串 |
ScaleProfile
| Name | Description | Value |
|---|---|---|
| 自动缩放 | 有关如何在预定义大小范围内自动缩放 VirtualMachines 代理池的规范。 每个配置文件针对特定的虚拟机SKU,并独立评估。 配置文件间的缩放决策由集群自动缩放扩展器控制, 可通过 ManagedCluster.properties.autoScalerProfile.expander配置。 |
AutoScaleProfile[] |
| manual | 有关如何将 VirtualMachines 代理池缩放为固定大小的规范。 | ManualScaleProfile[] |
SchedulerInstanceProfile
| Name | Description | Value |
|---|---|---|
| schedulerConfigMode | 配置模式将由 AKS 管理的调度器使用。 | “Default” 'ManagedByCRD' |
SchedulerProfile
| Name | Description | Value |
|---|---|---|
| Upstream | 带有与上游变体 kube 调度器相关设置的配置文件(https://github.com/kubernetes/kubernetes/tree/master/pkg/scheduler)。 | SchedulerInstanceProfile |
ServiceAccountImagePullProfile
| Name | Description | Value |
|---|---|---|
| defaultManagedIdentityId | 可选。 用于集群层拉取图像的默认管理身份资源ID。 配置后,如果 Pod 的服务账户没有明确指定拉取图片的身份,则使用该身份。 如果未配置且服务账户层面未指定身份,图片将通过匿名认证被拉取。 | 字符串 |
| enabled | 指示是否启用基于服务账户的映像拉取,此时需要身份绑定才能使用托管身份进行认证。 有关详细信息,请参阅https://aka.ms/aks/identity-binding-docs。 | bool |
ServiceMeshProfile
| Name | Description | Value |
|---|---|---|
| istio | Istio 服务网格配置。 | IstioServiceMesh |
| mode | 服务网格的模式。 | 'Disabled' 'Istio'(必填) |
软驱逐宽限期
| Name | Description | Value |
|---|---|---|
| 内存可用 | 内存可用的软驱逐信号宽限期,以 Go 风格的持续时间字符串表示(例如 '30s', '1m30s')。 支持的单位为“ns”、“us”、“ms”、“s”、“m”和“h”。 必须大于或等于“30”。 默认是“30多”。 | 字符串 |
| nodeFsAvailable | nodeFsAvailable 软驱逐信号的宽限期,以 Go 风格的持续时间字符串表示(例如 '30s', '1m30s')。 支持的单位为“ns”、“us”、“ms”、“s”、“m”和“h”。 必须大于或等于“30”。 默认是“2m”。 | 字符串 |
| nodeFsInodesFree(节点自由) | nodeFsInodesFree 软驱逐信号的宽限期,以 Go 风格的持续时间字符串表示(例如 '30s', '1m30s')。 支持的单位为“ns”、“us”、“ms”、“s”、“m”和“h”。 必须大于或等于“30”。 默认是“2m”。 | 字符串 |
软驱逐阈值
| Name | Description | Value |
|---|---|---|
| 内存可用 | 软舱被驱逐的可用内存阈值。 接受绝对值(例如“500英里”)或百分比值(例如“5%”)。 绝对最低距离为100英里;最低百分比是2%。 默认采用基于容量的阶梯:=8GiB节点为500Mi,16GiB <为750Mi,=32GiB为 >1024Mi(1Gi)。 还必须大于有效 hardEvictionThreshold.memoryAvailable。 | 字符串 |
| nodeFsAvailable | 软荚被驱逐的可用节点文件系统空间阈值。 接受绝对值(例如“1Gi”)或百分比值(例如“10%”)。 默认是“12%”。 必须大于或等于10% 且大于有效hardEvictionThreshold.nodeFsAvailable。 | 字符串 |
| nodeFsInodesFree(节点自由) | 节点文件系统中可用inode的阈值低于该阈值触发软荚驱逐。 接受绝对inode计数(例如“100000”)或百分比值(例如“5%”)。 默认是“7%”。 百分比值必须大于或等于5% 且大于有效hardEvictionThreshold.nodeFsInodesFree。 | 字符串 |
SysctlConfig
| Name | Description | Value |
|---|---|---|
| fsAioMaxNr | Sysctl 设置 fs.aio-max-nr。 | int |
| fsFileMax | Sysctl 设置 fs.file-max。 | int |
| fsInotifyMaxUserWatches | Sysctl 设置 fs.inotify.max_user_watches。 | int |
| fsNrOpen | Sysctl 设置fs.nr_open。 | int |
| kernelThreadsMax | Sysctl 设置 kernel.threads-max。 | int |
| netCoreNetdevMaxBacklog | Sysctl 设置net.core.netdev_max_backlog。 | int |
| netCoreOptmemMax | Sysctl 设置net.core.optmem_max。 | int |
| netCoreRmemDefault | Sysctl 设置net.core.rmem_default。 | int |
| netCoreRmemMax | Sysctl 设置net.core.rmem_max。 | int |
| netCoreSomaxconn | Sysctl 设置 net.core.somaxconn。 | int |
| netCoreWmemDefault | Sysctl 设置net.core.wmem_default。 | int |
| netCoreWmemMax | Sysctl 设置net.core.wmem_max。 | int |
| netIpv4IpLocalPortRange | Sysctl 设置net.ipv4.ip_local_port_range。 | 字符串 |
| netIpv4NeighDefaultGcThresh1 | Sysctl 设置net.ipv4.neigh.default.gc_thresh1。 | int |
| netIpv4NeighDefaultGcThresh2 | Sysctl 设置net.ipv4.neigh.default.gc_thresh2。 | int |
| netIpv4NeighDefaultGcThresh3 | Sysctl 设置net.ipv4.neigh.default.gc_thresh3。 | int |
| netIpv4TcpFinTimeout | Sysctl 设置net.ipv4.tcp_fin_timeout。 | int |
| netIpv4TcpkeepaliveIntvl | Sysctl 设置net.ipv4.tcp_keepalive_intvl。 | int Constraints: 最小值 = 10 最大值 = 90 |
| netIpv4TcpKeepaliveProbes | Sysctl 设置net.ipv4.tcp_keepalive_probes。 | int |
| netIpv4TcpKeepaliveTime | Sysctl 设置net.ipv4.tcp_keepalive_time。 | int |
| netIpv4TcpMaxSynBacklog | Sysctl 设置net.ipv4.tcp_max_syn_backlog。 | int |
| netIpv4TcpMaxTwBuckets | Sysctl 设置net.ipv4.tcp_max_tw_buckets。 | int |
| netIpv4TcpTwReuse | Sysctl 设置net.ipv4.tcp_tw_reuse。 | bool |
| netNetfilterNfConntrackBuckets | Sysctl 设置net.netfilter.nf_conntrack_buckets。 | int Constraints: 最小值 = 65536 最大值 = 524288 |
| netNetfilterNfConntrackMax | Sysctl 设置net.netfilter.nf_conntrack_max。 | int Constraints: 最小值 = 131072 最大值 = 2097152 |
| vmMaxMapCount | Sysctl 设置 vm.max_map_count。 | int |
| vmSwappiness | Sysctl 设置 vm.swappiness。 | int |
| vmVfsCachePressure | Sysctl 设置vm.vfs_cache_pressure。 | int |
TrackedResourceTags
| Name | Description | Value |
|---|
升级门设置
| Name | Description | Value |
|---|---|---|
| enabled | 升级门禁是否启用了。 当未设置时,默认为 false ,除非在新创建的集群代理池中启用升级门禁时,默认为 true。 当 true时,对相应范围内的升级激活了升级门槛健康检查。 将此 true 设置为集群范围,可以实现整个集群的门禁,包括所有代理池升级。 当集群范围未设置或 false时,代理池可以通过将其设置为 true独立选择加入。 当集群范围为 true时,代理池无法将其设置为 false。 强制升级(overrideSettings.forceUpgrade)覆盖门:在覆盖窗口激活时,升级跳过健康信号验证并继续。 |
bool |
UpgradeOverrideSettings
| Name | Description | Value |
|---|---|---|
| forceUpgrade | 是否强制升级群集。 请注意,此选项指示升级作绕过升级保护,例如检查已弃用的 API 使用情况。 仅谨慎启用此选项。 | bool |
| until | 直到重写生效为止。 请注意,这仅与升级的开始时间匹配,即使升级继续进行时 until 过期,升级的有效性也不会更改。 默认情况下不设置此字段。 必须设置重写才能生效。 |
字符串 |
UserAssignedIdentity
| Name | Description | Value |
|---|---|---|
| clientId | 用户分配标识的客户端 ID。 | 字符串 |
| objectId | 用户分配标识的对象 ID。 | 字符串 |
| resourceId | 用户分配标识的资源 ID。 | 字符串 |
VirtualMachineNodes
| Name | Description | Value |
|---|---|---|
| count | 节点数。 | int |
| size | 用于托管此节点组的代理的 VM 大小。 | 字符串 |
VirtualMachinesProfile
| Name | Description | Value |
|---|---|---|
| 缩放 | 有关如何缩放 VirtualMachines 代理池的规范。 | ScaleProfile |
WindowsGmsaProfile
| Name | Description | Value |
|---|---|---|
| dnsServer | 指定 Windows gMSA 的 DNS 服务器。 如果在用于创建托管群集的 vnet 中配置了 DNS 服务器,则将其设置为空。 |
字符串 |
| enabled | 是否启用 Windows gMSA。 指定是否在托管群集中启用 Windows gMSA。 | bool |
| rootDomainName | 指定 Windows gMSA 的根域名。 如果在用于创建托管群集的 vnet 中配置了 DNS 服务器,则将其设置为空。 |
字符串 |