Skip to content

Commit

Permalink
Update AKS API versions to 2024-02-02-preview
Browse files Browse the repository at this point in the history
  • Loading branch information
sebassem committed Sep 8, 2024
1 parent 825987b commit ca5e65e
Show file tree
Hide file tree
Showing 10 changed files with 72 additions and 18 deletions.
6 changes: 5 additions & 1 deletion azure_arc_app_services_jumpstart/aks/ARM/aks.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
},
"resources": [
{
"apiVersion": "2022-02-01",
"apiVersion": "2024-02-02-preview",
"type": "Microsoft.ContainerService/managedClusters",
"location": "[parameters('location')]",
"name": "[parameters('clusterName')]",
Expand All @@ -130,6 +130,10 @@
"networkProfile": {
"networkPlugin": "azure"
},
"autoUpgradeProfile": {
"upgradeChannel": "stable",
"nodeOSUpgradeChannel": "NodeImage"
},
"linuxProfile": {
"adminUsername": "[parameters('linuxAdminUsername')]",
"ssh": {
Expand Down
6 changes: 5 additions & 1 deletion azure_arc_data_jumpstart/aks/ARM/aks.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
},
"resources": [
{
"apiVersion": "2022-03-02-preview",
"apiVersion": "2024-02-02-preview",
"type": "Microsoft.ContainerService/managedClusters",
"location": "[parameters('location')]",
"name": "[parameters('clusterName')]",
Expand Down Expand Up @@ -154,6 +154,10 @@
]
}
},
"autoUpgradeProfile": {
"upgradeChannel": "stable",
"nodeOSUpgradeChannel": "NodeImage"
},
"servicePrincipalProfile": {
"clientId": "[parameters('spnClientId')]",
"Secret": "[parameters('spnClientSecret')]"
Expand Down
12 changes: 10 additions & 2 deletions azure_arc_data_jumpstart/aks/DR/ARM/aks.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
},
"resources": [
{
"apiVersion": "2022-03-02-preview",
"apiVersion": "2024-02-02-preview",
"type": "Microsoft.ContainerService/managedClusters",
"location": "[parameters('location')]",
"name": "[concat(parameters('clusterName'),'-Primary')]",
Expand Down Expand Up @@ -183,6 +183,10 @@
]
}
},
"autoUpgradeProfile": {
"upgradeChannel": "stable",
"nodeOSUpgradeChannel": "NodeImage"
},
"servicePrincipalProfile": {
"clientId": "[parameters('spnClientId')]",
"Secret": "[parameters('spnClientSecret')]"
Expand All @@ -193,7 +197,7 @@
}
},
{
"apiVersion": "2022-03-02-preview",
"apiVersion": "2024-02-02-preview",
"type": "Microsoft.ContainerService/managedClusters",
"location": "[parameters('location')]",
"name": "[concat(parameters('clusterName'),'-Secondary')]",
Expand Down Expand Up @@ -234,6 +238,10 @@
]
}
},
"autoUpgradeProfile": {
"upgradeChannel": "stable",
"nodeOSUpgradeChannel": "NodeImage"
},
"servicePrincipalProfile": {
"clientId": "[parameters('spnClientId')]",
"Secret": "[parameters('spnClientSecret')]"
Expand Down
6 changes: 5 additions & 1 deletion azure_arc_data_jumpstart/aks/Migration/ARM/aks.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
},
"resources": [
{
"apiVersion": "2022-01-02-preview",
"apiVersion": "2024-02-02-preview",
"type": "Microsoft.ContainerService/managedClusters",
"location": "[parameters('location')]",
"name": "[parameters('clusterName')]",
Expand Down Expand Up @@ -142,6 +142,10 @@
]
}
},
"autoUpgradeProfile": {
"upgradeChannel": "stable",
"nodeOSUpgradeChannel": "NodeImage"
},
"servicePrincipalProfile": {
"clientId": "[parameters('spnClientId')]",
"Secret": "[parameters('spnClientSecret')]"
Expand Down
6 changes: 5 additions & 1 deletion azure_arc_k8s_jumpstart/aks/arm_template/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
},
"resources": [
{
"apiVersion": "2022-02-01",
"apiVersion": "2024-02-02-preview",
"type": "Microsoft.ContainerService/managedClusters",
"location": "[parameters('location')]",
"name": "[parameters('clusterName')]",
Expand Down Expand Up @@ -135,6 +135,10 @@
]
}
},
"autoUpgradeProfile": {
"upgradeChannel": "stable",
"nodeOSUpgradeChannel": "NodeImage"
},
"servicePrincipalProfile": {
"clientId": "[parameters('servicePrincipalClientId')]",
"Secret": "[parameters('servicePrincipalClientSecret')]"
Expand Down
6 changes: 5 additions & 1 deletion azure_arc_ml_jumpstart/aks/arm_template/aks.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
},
"resources": [
{
"apiVersion": "2020-03-01",
"apiVersion": "2024-02-02-preview",
"type": "Microsoft.ContainerService/managedClusters",
"location": "[parameters('location')]",
"name": "[parameters('clusterName')]",
Expand Down Expand Up @@ -134,6 +134,10 @@
]
}
},
"autoUpgradeProfile": {
"upgradeChannel": "stable",
"nodeOSUpgradeChannel": "NodeImage"
},
"servicePrincipalProfile": {
"clientId": "[parameters('spnClientId')]",
"Secret": "[parameters('spnClientSecret')]"
Expand Down
6 changes: 5 additions & 1 deletion azure_jumpstart_ag/retail/bicep/kubernetes/aks.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ param kubernetesVersion string = '1.28.5'
var serviceCidr_staging = '10.21.64.0/19'
var dnsServiceIP_staging = '10.21.64.10'

resource aksStaging 'Microsoft.ContainerService/managedClusters@2023-05-02-preview' = {
resource aksStaging 'Microsoft.ContainerService/managedClusters@2024-04-02-preview' = {
location: location
name: aksStagingClusterName
tags: resourceTags
Expand Down Expand Up @@ -102,6 +102,10 @@ resource aksStaging 'Microsoft.ContainerService/managedClusters@2023-05-02-previ
enabled: true
}
}
autoUpgradeProfile: {
upgradeChannel: 'stable'
nodeOSUpgradeChannel: 'NodeImage'
}
networkProfile: {
networkPlugin: 'azure'
serviceCidr: serviceCidr_staging
Expand Down
12 changes: 10 additions & 2 deletions azure_jumpstart_arcbox/ARM/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -9099,7 +9099,7 @@
"resources": [
{
"type": "Microsoft.ContainerService/managedClusters",
"apiVersion": "2023-10-02-preview",
"apiVersion": "2024-02-02-preview",
"name": "[parameters('aksClusterName')]",
"location": "[parameters('location')]",
"identity": {
Expand Down Expand Up @@ -9143,12 +9143,16 @@
}
]
}
},
"autoUpgradeProfile": {
"upgradeChannel": "stable",
"nodeOSUpgradeChannel": "NodeImage"
}
}
},
{
"type": "Microsoft.ContainerService/managedClusters",
"apiVersion": "2023-10-02-preview",
"apiVersion": "2024-02-02-preview",
"name": "[parameters('drClusterName')]",
"location": "[parameters('location')]",
"identity": {
Expand Down Expand Up @@ -9192,6 +9196,10 @@
}
]
}
},
"autoUpgradeProfile": {
"upgradeChannel": "stable",
"nodeOSUpgradeChannel": "NodeImage"
}
}
},
Expand Down
18 changes: 12 additions & 6 deletions azure_jumpstart_arcbox/ARM/kubernetes/aks.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
},
"resources": [
{
"apiVersion": "2022-07-02-preview",
"apiVersion": "2024-02-02-preview",
"type": "Microsoft.ContainerService/managedClusters",
"location": "[parameters('location')]",
"name": "[parameters('aksClusterName')]",
Expand All @@ -151,8 +151,7 @@
"networkProfile": {
"networkPlugin": "azure",
"serviceCidr": "[variables('serviceCidr-primary')]",
"dnsServiceIP": "[variables('dnsServiceIP-primary')]",
"dockerBridgeCidr": "[variables('dockerBridgeCidr-primary')]"
"dnsServiceIP": "[variables('dnsServiceIP-primary')]"
},
"linuxProfile": {
"adminUsername": "[parameters('linuxAdminUsername')]",
Expand All @@ -164,6 +163,10 @@
]
}
},
"autoUpgradeProfile": {
"upgradeChannel": "stable",
"nodeOSUpgradeChannel": "NodeImage"
},
"servicePrincipalProfile": {
"clientId": "[parameters('spnClientId')]",
"Secret": "[parameters('spnClientSecret')]"
Expand All @@ -174,7 +177,7 @@
}
},
{
"apiVersion": "2022-07-02-preview",
"apiVersion": "2024-02-02-preview",
"type": "Microsoft.ContainerService/managedClusters",
"location": "[parameters('location')]",
"name": "[parameters('drClusterName')]",
Expand All @@ -201,8 +204,7 @@
"networkProfile": {
"networkPlugin": "azure",
"serviceCidr": "[variables('serviceCidr-secondary')]",
"dnsServiceIP": "[variables('dnsServiceIP-secondary')]",
"dockerBridgeCidr": "[variables('dockerBridgeCidr-secondary')]"
"dnsServiceIP": "[variables('dnsServiceIP-secondary')]"
},
"linuxProfile": {
"adminUsername": "[parameters('linuxAdminUsername')]",
Expand All @@ -214,6 +216,10 @@
]
}
},
"autoUpgradeProfile": {
"upgradeChannel": "stable",
"nodeOSUpgradeChannel": "NodeImage"
},
"servicePrincipalProfile": {
"clientId": "[parameters('spnClientId')]",
"Secret": "[parameters('spnClientSecret')]"
Expand Down
12 changes: 10 additions & 2 deletions azure_jumpstart_arcbox/bicep/kubernetes/aks.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ var aksSubnetName = '${namingPrefix}-AKS-Subnet'
var drVirtualNetworkName = '${namingPrefix}-DR-VNet'
var drSubnetName = '${namingPrefix}-DR-Subnet'

resource aksClusterName_resource 'Microsoft.ContainerService/managedClusters@2023-10-02-preview' = {
resource aksClusterName_resource 'Microsoft.ContainerService/managedClusters@2024-04-02-preview' = {
location: location
name: aksClusterName
identity: {
Expand Down Expand Up @@ -93,6 +93,10 @@ resource aksClusterName_resource 'Microsoft.ContainerService/managedClusters@202
serviceCidr: serviceCidr_primary
dnsServiceIP: dnsServiceIP_primary
}
autoUpgradeProfile: {
nodeOSUpgradeChannel: 'NodeImage'
upgradeChannel: 'stable'
}
linuxProfile: {
adminUsername: linuxAdminUsername
ssh: {
Expand All @@ -106,7 +110,7 @@ resource aksClusterName_resource 'Microsoft.ContainerService/managedClusters@202
}
}

resource drClusterName_resource 'Microsoft.ContainerService/managedClusters@2023-10-02-preview' = {
resource drClusterName_resource 'Microsoft.ContainerService/managedClusters@2024-04-02-preview' = {
location: location
name: drClusterName
identity: {
Expand Down Expand Up @@ -151,6 +155,10 @@ resource drClusterName_resource 'Microsoft.ContainerService/managedClusters@2023
]
}
}
autoUpgradeProfile: {
nodeOSUpgradeChannel: 'NodeImage'
upgradeChannel: 'stable'
}
}
}

Expand Down

0 comments on commit ca5e65e

Please sign in to comment.