Adding taints to peered vnet sample
This commit is contained in:
Родитель
70eba446b1
Коммит
82350dab35
|
@ -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'
|
||||
]
|
||||
}
|
||||
}]
|
||||
|
|
Загрузка…
Ссылка в новой задаче