-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.bicep
More file actions
70 lines (70 loc) · 1.5 KB
/
app.bicep
File metadata and controls
70 lines (70 loc) · 1.5 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// Example Bicep file for an Azure Kubernetes Service (AKS) cluster with custom node pool and settings
resource aksCluster 'Microsoft.ContainerService/managedClusters@2023-01-01' = {
name: 'myAksCluster'
location: 'eastus'
properties: {
kubernetesVersion: '1.29.0'
dnsPrefix: 'myaksdns'
agentPoolProfiles: [
{
name: 'nodepool1'
count: 3
vmSize: 'Standard_DS2_v2'
osType: 'Linux'
mode: 'System'
enableAutoScaling: true
minCount: 1
maxCount: 5
}
{
name: 'nodepool2'
count: 2
vmSize: 'Standard_DS3_v2'
osType: 'Linux'
mode: 'User'
enableAutoScaling: false
}
]
networkProfile: {
networkPlugin: 'azure'
loadBalancerSku: 'standard'
networkPolicy: 'azure'
}
apiServerAccessProfile: {
enablePrivateCluster: false
authorizedIpRanges: [
'203.0.113.0/24'
'198.51.100.0/24'
]
}
addonProfiles: {
kubeDashboard: {
enabled: false
}
azurePolicy: {
enabled: true
}
}
identity: {
type: 'SystemAssigned'
}
linuxProfile: {
adminUsername: 'azureuser'
ssh: {
publicKeys: [
{
keyData: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD...generatedkey... user@host'
}
]
}
}
sku: {
name: 'Basic'
tier: 'Free'
}
tags: {
environment: 'dev'
owner: 'team-aks'
}
}
}