Merge pull request #153 from Azure/fix/integrate-with-ALZ
Fix/integrate with alz
This commit is contained in:
Коммит
2d5314b0b0
|
@ -23,6 +23,7 @@ param spokeSubnetAppGWPrefix string = '10.1.2.0/27'
|
|||
param spokeSubnetVMPrefix string = '10.1.3.0/24'
|
||||
param spokeSubnetPLinkervicePrefix string = '10.1.4.0/24'
|
||||
param remotePeeringName string = 'spoke-hub-peering'
|
||||
param vmSize string = 'Standard_DS2_v2'
|
||||
|
||||
var privateDNSZoneAKSSuffixes = {
|
||||
AzureCloud: '.azmk8s.io'
|
||||
|
@ -350,7 +351,7 @@ module virtualMachine 'br/public:avm/res/compute/virtual-machine:0.5.0' = {
|
|||
}
|
||||
}
|
||||
osType: 'Linux'
|
||||
vmSize: 'Standard_DS2_v2'
|
||||
vmSize: vmSize
|
||||
zone: 0
|
||||
// Non-required parameters
|
||||
disablePasswordAuthentication: false
|
||||
|
|
|
@ -15,6 +15,7 @@ param keyvaultName string
|
|||
param acrName string
|
||||
param aksClusterName string
|
||||
param enablePrivateCluster bool = true
|
||||
param vmSize string = 'Standard_D4d_v5'
|
||||
|
||||
|
||||
@allowed([
|
||||
|
@ -106,7 +107,7 @@ module managedCluster 'br/public:avm/res/container-service/managed-cluster:0.1.2
|
|||
osType: 'Linux'
|
||||
serviceCidr: ''
|
||||
type: 'VirtualMachineScaleSets'
|
||||
vmSize: 'Standard_D4d_v5'
|
||||
vmSize: vmSize
|
||||
vnetSubnetID: aksSubnet.id
|
||||
}
|
||||
]
|
||||
|
|
|
@ -251,6 +251,7 @@ param azureBastionSubnetName string = 'AzureBastionSubnet'
|
|||
param azureBastionSubnetAddressPrefix string = '10.0.2.0/27'
|
||||
param vmsubnetSubnetName string = 'vmsubnet'
|
||||
param vmsubnetSubnetAddressPrefix string = '10.0.3.0/24'
|
||||
param linuxVirtualMachineVMSize string = 'Standard_DS2_v2'
|
||||
|
||||
/////////////////
|
||||
// 05-AKS-Supporting
|
||||
|
@ -299,6 +300,7 @@ param aksadminaccessprincipalId string
|
|||
param kubernetesVersion string = '1.30'
|
||||
param networkPlugin string = 'azure'
|
||||
param aksClusterName string = 'aksCluster'
|
||||
param aksVMSize string = 'Standard_D4d_v5'
|
||||
|
||||
//////////////////////////////////
|
||||
//////////////////////////////////
|
||||
|
@ -366,6 +368,7 @@ module networkSpoke '../04-Network-LZ/main.bicep' = {
|
|||
spokeSubnetVMPrefix:spokeSubnetVMPrefix
|
||||
spokeSubnetPLinkervicePrefix: spokeSubnetPLinkervicePrefix
|
||||
remotePeeringName: remotePeeringName
|
||||
vmSize: linuxVirtualMachineVMSize
|
||||
|
||||
}
|
||||
dependsOn: deployHub ? [networkHub] : []
|
||||
|
@ -411,5 +414,6 @@ module aksCluster '../06-AKS-Cluster/main.bicep' = {
|
|||
networkPlugin: networkPlugin
|
||||
acrName: aksSupporting.outputs.acrName
|
||||
aksClusterName: aksClusterName
|
||||
vmSize: aksVMSize
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
"metadata": {
|
||||
"_generator": {
|
||||
"name": "bicep",
|
||||
"version": "0.28.1.47646",
|
||||
"templateHash": "5950662107880979924"
|
||||
"version": "0.30.23.60470",
|
||||
"templateHash": "2060098085920409973"
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
|
@ -365,6 +365,10 @@
|
|||
"type": "string",
|
||||
"defaultValue": "10.0.3.0/24"
|
||||
},
|
||||
"linuxVirtualMachineVMSize": {
|
||||
"type": "string",
|
||||
"defaultValue": "Standard_DS2_v2"
|
||||
},
|
||||
"subnetName": {
|
||||
"type": "string",
|
||||
"defaultValue": "servicespe"
|
||||
|
@ -437,6 +441,10 @@
|
|||
"aksClusterName": {
|
||||
"type": "string",
|
||||
"defaultValue": "aksCluster"
|
||||
},
|
||||
"aksVMSize": {
|
||||
"type": "string",
|
||||
"defaultValue": "Standard_D4d_v5"
|
||||
}
|
||||
},
|
||||
"resources": [
|
||||
|
@ -519,8 +527,8 @@
|
|||
"metadata": {
|
||||
"_generator": {
|
||||
"name": "bicep",
|
||||
"version": "0.28.1.47646",
|
||||
"templateHash": "14622037900232296803"
|
||||
"version": "0.30.23.60470",
|
||||
"templateHash": "4940105280913712153"
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
|
@ -7634,8 +7642,8 @@
|
|||
"metadata": {
|
||||
"_generator": {
|
||||
"name": "bicep",
|
||||
"version": "0.28.1.47646",
|
||||
"templateHash": "2475204222112158833"
|
||||
"version": "0.30.23.60470",
|
||||
"templateHash": "3968621880291748711"
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
|
@ -7745,6 +7753,9 @@
|
|||
},
|
||||
"remotePeeringName": {
|
||||
"value": "[parameters('remotePeeringName')]"
|
||||
},
|
||||
"vmSize": {
|
||||
"value": "[parameters('linuxVirtualMachineVMSize')]"
|
||||
}
|
||||
},
|
||||
"template": {
|
||||
|
@ -7753,8 +7764,8 @@
|
|||
"metadata": {
|
||||
"_generator": {
|
||||
"name": "bicep",
|
||||
"version": "0.28.1.47646",
|
||||
"templateHash": "1962386068872565768"
|
||||
"version": "0.30.23.60470",
|
||||
"templateHash": "7704816282859867531"
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
|
@ -7832,6 +7843,10 @@
|
|||
"remotePeeringName": {
|
||||
"type": "string",
|
||||
"defaultValue": "spoke-hub-peering"
|
||||
},
|
||||
"vmSize": {
|
||||
"type": "string",
|
||||
"defaultValue": "Standard_DS2_v2"
|
||||
}
|
||||
},
|
||||
"variables": {
|
||||
|
@ -22010,8 +22025,8 @@
|
|||
"metadata": {
|
||||
"_generator": {
|
||||
"name": "bicep",
|
||||
"version": "0.28.1.47646",
|
||||
"templateHash": "10032112452026088344"
|
||||
"version": "0.30.23.60470",
|
||||
"templateHash": "16081152647582805778"
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
|
@ -22649,7 +22664,7 @@
|
|||
"value": "Linux"
|
||||
},
|
||||
"vmSize": {
|
||||
"value": "Standard_DS2_v2"
|
||||
"value": "[parameters('vmSize')]"
|
||||
},
|
||||
"zone": {
|
||||
"value": 0
|
||||
|
@ -28076,8 +28091,8 @@
|
|||
"metadata": {
|
||||
"_generator": {
|
||||
"name": "bicep",
|
||||
"version": "0.28.1.47646",
|
||||
"templateHash": "18380292763349642779"
|
||||
"version": "0.30.23.60470",
|
||||
"templateHash": "17393039019645740941"
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
|
@ -37930,6 +37945,9 @@
|
|||
},
|
||||
"aksClusterName": {
|
||||
"value": "[parameters('aksClusterName')]"
|
||||
},
|
||||
"vmSize": {
|
||||
"value": "[parameters('aksVMSize')]"
|
||||
}
|
||||
},
|
||||
"template": {
|
||||
|
@ -37938,8 +37956,8 @@
|
|||
"metadata": {
|
||||
"_generator": {
|
||||
"name": "bicep",
|
||||
"version": "0.28.1.47646",
|
||||
"templateHash": "1662336602186095921"
|
||||
"version": "0.30.23.60470",
|
||||
"templateHash": "1266465176582274116"
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
|
@ -37990,6 +38008,10 @@
|
|||
"type": "bool",
|
||||
"defaultValue": true
|
||||
},
|
||||
"vmSize": {
|
||||
"type": "string",
|
||||
"defaultValue": "Standard_D4d_v5"
|
||||
},
|
||||
"networkPlugin": {
|
||||
"type": "string",
|
||||
"allowedValues": [
|
||||
|
@ -40484,7 +40506,7 @@
|
|||
"osType": "Linux",
|
||||
"serviceCidr": "",
|
||||
"type": "VirtualMachineScaleSets",
|
||||
"vmSize": "Standard_D4d_v5",
|
||||
"vmSize": "[parameters('vmSize')]",
|
||||
"vnetSubnetID": "[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, parameters('rgName')), 'Microsoft.Network/virtualNetworks/subnets', split(format('{0}/{1}', parameters('vnetName'), parameters('subnetName')), '/')[0], split(format('{0}/{1}', parameters('vnetName'), parameters('subnetName')), '/')[1])]"
|
||||
}
|
||||
]
|
||||
|
|
|
@ -605,6 +605,38 @@
|
|||
"infoMessages": [],
|
||||
"visible": true
|
||||
},
|
||||
{
|
||||
"name": "aksVMSize",
|
||||
"type": "Microsoft.Common.TextBox",
|
||||
"label": "AKS VM Size",
|
||||
"subLabel": "",
|
||||
"defaultValue": "Standard_D4d_v5",
|
||||
"toolTip": "VM size availability varies by region",
|
||||
"constraints": {
|
||||
"required": true,
|
||||
"regex": "",
|
||||
"validationMessage": "",
|
||||
"validations": []
|
||||
},
|
||||
"infoMessages": [],
|
||||
"visible": true
|
||||
},
|
||||
{
|
||||
"name": "linuxVirtualMachineVMSize",
|
||||
"type": "Microsoft.Common.TextBox",
|
||||
"label": "Linux Jumpbox VM Size",
|
||||
"subLabel": "",
|
||||
"defaultValue": "Standard_DS2_v2",
|
||||
"toolTip": "VM size availability varies by region",
|
||||
"constraints": {
|
||||
"required": true,
|
||||
"regex": "",
|
||||
"validationMessage": "",
|
||||
"validations": []
|
||||
},
|
||||
"infoMessages": [],
|
||||
"visible": true
|
||||
},
|
||||
{
|
||||
"name": "aksSubnetName",
|
||||
"type": "Microsoft.Common.TextBox",
|
||||
|
|
Загрузка…
Ссылка в новой задаче