@@ -13,7 +13,7 @@ param logAnalyticsWorkspaceId string
13
13
@description ('The auto-upgrade profile.' )
14
14
param autoUpgradeProfile object = {
15
15
nodeOsUpgradeChannel : 'NodeImage'
16
- upgradeChannel : 'patch '
16
+ upgradeChannel : 'node-image '
17
17
***REMOVED ***
18
18
19
19
@description ('Optional DNS prefix to use with hosted Kubernetes API server FQDN.' )
@@ -27,7 +27,7 @@ param systemOsDiskSizeGB int = 128
27
27
@description ('The number of nodes for the system node pool.' )
28
28
@minValue (1 )
29
29
@maxValue (50 )
30
- param systemNodeCount int = 3
30
+ param systemNodeCount int = 1
31
31
32
32
@description ('The size of the system Virtual Machine.' )
33
33
param systemVMSize string = 'standard_d4s_v5'
@@ -73,34 +73,25 @@ resource aks 'Microsoft.ContainerService/managedClusters@2023-10-01' = {
73
73
agentPoolProfiles : [
74
74
{
75
75
name : 'agentpool'
76
- osDiskSizeGB : systemOsDiskSizeGB
77
- count : systemNodeCount
78
- vmSize : systemVMSize
79
- osType : 'Linux'
80
- mode : 'System'
81
- enableEncryptionAtHost : enableEncryptionAtHost
82
- vnetSubnetID : vnetSubnetIdVar
83
- ***REMOVED ***
84
- {
85
- name : 'graphrag'
86
76
enableAutoScaling : true
77
+ upgradeSettings : {
78
+ maxSurge : '50%'
79
+ ***REMOVED ***
87
80
minCount : 1
88
81
maxCount : 10
89
82
osDiskSizeGB : systemOsDiskSizeGB
90
- count : graphragNodeCount
91
- vmSize : graphragVMSize
83
+ count : systemNodeCount
84
+ vmSize : systemVMSize
92
85
osType : 'Linux'
93
- mode : 'User '
86
+ mode : 'System '
94
87
enableEncryptionAtHost : enableEncryptionAtHost
95
88
vnetSubnetID : vnetSubnetIdVar
96
- nodeLabels : {
97
- workload : 'graphrag'
98
- ***REMOVED ***
99
- tags : {
100
- workload : 'graphrag'
101
- ***REMOVED ***
89
+ type : 'VirtualMachineScaleSets'
102
90
***REMOVED ***
103
91
]
92
+ autoScalerProfile : {
93
+ expander : 'least-waste'
94
+ ***REMOVED ***
104
95
linuxProfile : {
105
96
adminUsername : linuxAdminUsername
106
97
ssh : {
@@ -125,6 +116,68 @@ resource aks 'Microsoft.ContainerService/managedClusters@2023-10-01' = {
125
116
***REMOVED ***
126
117
***REMOVED ***
127
118
***REMOVED ***
119
+
120
+ resource graphragNodePool 'agentPools@2024-02-01' = {
121
+ name : 'graphrag'
122
+ properties : {
123
+ enableAutoScaling : true
124
+ upgradeSettings : {
125
+ maxSurge : '50%'
126
+ ***REMOVED ***
127
+ minCount : 1
128
+ maxCount : 10
129
+ osDiskSizeGB : systemOsDiskSizeGB
130
+ count : graphragNodeCount
131
+ vmSize : graphragVMSize
132
+ osType : 'Linux'
133
+ mode : 'User'
134
+ enableEncryptionAtHost : enableEncryptionAtHost
135
+ vnetSubnetID : vnetSubnetIdVar
136
+ nodeLabels : {
137
+ workload : 'graphrag'
138
+ ***REMOVED ***
139
+ tags : {
140
+ workload : 'graphrag'
141
+ ***REMOVED ***
142
+ type : 'VirtualMachineScaleSets'
143
+ ***REMOVED ***
144
+ ***REMOVED ***
145
+ ***REMOVED ***
146
+
147
+ resource aksManagedAutoUpgradeSchedule 'Microsoft.ContainerService/managedClusters/maintenanceConfigurations@2024-03-02-preview' = {
148
+ parent : aks
149
+ name : 'aksManagedAutoUpgradeSchedule'
150
+ properties : {
151
+ maintenanceWindow : {
152
+ schedule : {
153
+ weekly : {
154
+ intervalWeeks : 1
155
+ dayOfWeek : 'Sunday'
156
+ ***REMOVED ***
157
+ ***REMOVED ***
158
+ durationHours : 4
159
+ startDate : '2024-06-11'
160
+ startTime : '12:00'
161
+ ***REMOVED ***
162
+ ***REMOVED ***
163
+ ***REMOVED ***
164
+
165
+ resource aksManagedNodeOSUpgradeSchedule 'Microsoft.ContainerService/managedClusters/maintenanceConfigurations@2024-03-02-preview' = {
166
+ parent : aks
167
+ name : 'aksManagedNodeOSUpgradeSchedule'
168
+ properties : {
169
+ maintenanceWindow : {
170
+ schedule : {
171
+ weekly : {
172
+ intervalWeeks : 1
173
+ dayOfWeek : 'Saturday'
174
+ ***REMOVED ***
175
+ ***REMOVED ***
176
+ durationHours : 4
177
+ startDate : '2024-06-11'
178
+ startTime : '12:00'
179
+ ***REMOVED ***
180
+ ***REMOVED ***
128
181
***REMOVED ***
129
182
130
183
output name string = aks .name
0 commit comments