Adding taints to peered vnet sample

This commit is contained in:
Gordonby 2022-03-21 12:15:03 +00:00
Родитель 70eba446b1
Коммит 82350dab35
2 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -24,6 +24,10 @@ var autoScale = agentCountMax > agentCount
@description('The maximum number of pods per node.')
param maxPods int = 30
@description('Any taints that should be applied to the node pool')
param nodeTaints array = []
@description('The subnet the node pool will use')
param subnetId string
resource aks 'Microsoft.ContainerService/managedClusters@2021-10-01' existing = {
@ -50,5 +54,6 @@ resource nodepool 'Microsoft.ContainerService/managedClusters/agentPools@2021-10
upgradeSettings: {
maxSurge: '33%'
}
nodeTaints: nodeTaints
}
}

Просмотреть файл

@ -134,9 +134,12 @@ module aksNodePools '../../bicep/aksagentpool.bicep' = [for pool in extraAksNod
PoolName: pool
subnetId: gridVnet.outputs.aksSubnetId
agentCount: 0
agentCountMax: 3
agentCountMax: 10
agentVMSize: 'Standard_B2s'
maxPods: 10
osDiskType: 'Managed'
nodeTaints: [
'selbrowser=${pool}:PreferNoSchedule'
]
}
}]