-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathaks_config.bicep
More file actions
56 lines (50 loc) · 1.45 KB
/
aks_config.bicep
File metadata and controls
56 lines (50 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
@description('The name of the Managed Cluster resource.')
param clusterName string = 'openstudio-server'
@description('The location of the Managed Cluster resource.')
param location string = resourceGroup().location
@description('The size of the Virtual Machine.')
param agentVMSize string = 'd4ps_v6'
@description('The Kubernetes version of the Managed Cluster resource.')
param kubernetesVersion string = '1.29'
@description('DNS prefix for the public DNS name of the cluster.')
param dnsPrefix string = '${clusterName}${uniqueString(resourceGroup().id)}'
// Revise vm and count etc. to match eks config files
resource aksCluster 'Microsoft.ContainerService/managedClusters@2024-02-01' = {
name: clusterName
location: location
identity: {
type: 'SystemAssigned'
}
properties: {
kubernetesVersion: kubernetesVersion
dnsPrefix: dnsPrefix
agentPoolProfiles: [
{
name: 'webgroup'
osDiskSizeGB: 550
count: 2
vmSize: agentVMSize
osType: 'Linux'
nodeLabels: {
nodegroup: 'web-group'
}
mode: 'System'
}
{
name: 'workergroup'
osDiskSizeGB: 400
count: 1
vmSize: agentVMSize
osType: 'Linux'
nodeLabels: {
nodegroup: 'worker-group'
}
enableAutoScaling: true
minCount: 0
maxCount: 6
mode: 'User'
}
]
}
}
output controlPlaneFQDN string = aksCluster.properties.fqdn