Skip to content

Commit

Permalink
add new sku to aks
Browse files Browse the repository at this point in the history
  • Loading branch information
zedy committed Aug 26, 2024
1 parent 10f64a5 commit 6df8344
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 8 deletions.
20 changes: 20 additions & 0 deletions avm/res/container-service/managed-cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ module managedCluster 'br/public:avm/res/container-service/managed-cluster:<vers
managedIdentities: {
systemAssigned: true
}
skuName: 'Automatic'
}
}
```
Expand Down Expand Up @@ -141,6 +142,9 @@ module managedCluster 'br/public:avm/res/container-service/managed-cluster:<vers
"value": {
"systemAssigned": true
}
},
"skuName": {
"value": "Automatic"
}
}
}
Expand Down Expand Up @@ -1654,6 +1658,7 @@ module managedCluster 'br/public:avm/res/container-service/managed-cluster:<vers
| [`publicNetworkAccess`](#parameter-publicnetworkaccess) | string | Allow or deny public network access for AKS. |
| [`roleAssignments`](#parameter-roleassignments) | array | Array of role assignments to create. |
| [`serviceCidr`](#parameter-servicecidr) | string | A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges. |
| [`skuName`](#parameter-skuname) | string | Name of a managed cluster SKU. |
| [`skuTier`](#parameter-skutier) | string | Tier of a managed cluster SKU. |
| [`sshPublicKey`](#parameter-sshpublickey) | string | Specifies the SSH RSA public key string for the Linux nodes. |
| [`supportPlan`](#parameter-supportplan) | string | The support plan for the Managed Cluster. |
Expand Down Expand Up @@ -3292,6 +3297,21 @@ A CIDR notation IP range from which to assign service cluster IPs. It must not o
- Required: No
- Type: string

### Parameter: `skuName`

Name of a managed cluster SKU.

- Required: No
- Type: string
- Default: `'Base'`
- Allowed:
```Bicep
[
'Automatic'
'Base'
]
```

### Parameter: `skuTier`

Tier of a managed cluster SKU.
Expand Down
9 changes: 8 additions & 1 deletion avm/res/container-service/managed-cluster/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ param backendPoolType string = 'NodeIPConfiguration'
])
param outboundType string = 'loadBalancer'

@description('Optional. Name of a managed cluster SKU.')
@allowed([
'Base'
'Automatic'
])
param skuName string = 'Base'

@description('Optional. Tier of a managed cluster SKU.')
@allowed([
'Free'
Expand Down Expand Up @@ -525,7 +532,7 @@ resource managedCluster 'Microsoft.ContainerService/managedClusters@2024-03-02-p
tags: tags
identity: identity
sku: {
name: 'Base'
name: skuName
tier: skuTier
}
properties: {
Expand Down
25 changes: 18 additions & 7 deletions avm/res/container-service/managed-cluster/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.29.47.4906",
"templateHash": "6707709888421096485"
"version": "0.28.1.47646",
"templateHash": "6309836800313804859"
},
"name": "Azure Kubernetes Service (AKS) Managed Clusters",
"description": "This module deploys an Azure Kubernetes Service (AKS) Managed Cluster.",
Expand Down Expand Up @@ -816,6 +816,17 @@
"description": "Optional. Specifies outbound (egress) routing method."
}
},
"skuName": {
"type": "string",
"defaultValue": "Base",
"allowedValues": [
"Base",
"Automatic"
],
"metadata": {
"description": "Optional. Name of a managed cluster SKU."
}
},
"skuTier": {
"type": "string",
"defaultValue": "Standard",
Expand Down Expand Up @@ -1556,7 +1567,7 @@
"tags": "[parameters('tags')]",
"identity": "[variables('identity')]",
"sku": {
"name": "Base",
"name": "[parameters('skuName')]",
"tier": "[parameters('skuTier')]"
},
"properties": {
Expand Down Expand Up @@ -1831,8 +1842,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.29.47.4906",
"templateHash": "12168542117744033419"
"version": "0.28.1.47646",
"templateHash": "14041521425406296021"
},
"name": "Azure Kubernetes Service (AKS) Managed Cluster Maintenance Configurations",
"description": "This module deploys an Azure Kubernetes Service (AKS) Managed Cluster Maintenance Configurations.",
Expand Down Expand Up @@ -2028,8 +2039,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.29.47.4906",
"templateHash": "2004205618690542488"
"version": "0.28.1.47646",
"templateHash": "6644048800784630485"
},
"name": "Azure Kubernetes Service (AKS) Managed Cluster Agent Pools",
"description": "This module deploys an Azure Kubernetes Service (AKS) Managed Cluster Agent Pool.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ module testDeployment '../../../main.bicep' = [
params: {
name: '${namePrefix}${serviceShort}001'
location: resourceLocation
skuName: 'Automatic'
maintenanceConfiguration: {
maintenanceWindow: {
schedule: {
Expand Down

0 comments on commit 6df8344

Please sign in to comment.