@@ -177,6 +177,7 @@ connectedClusterName="${resourcesPrefix}-connected-aks"
177177nodePoolRg=" ${aks} -agentpool-rg"
178178nodeVmSize=" Standard_D4a_v4" # 4 vcpus, 16 GB RAM
179179workerVmSize=" Standard_D32a_v4" # 32 vcpus, 128 GB RAM
180+ summarizationWorkerVmSize=" Standard_F32s_v2" # 32 vcpus, 64 GB RAM
180181tags=" createdBy=vi-arc-extension"
181182# =========Install CLI Tools if needed =====================#
182183if [[ $install_cli_tools == " true" ]]; then
@@ -230,13 +231,13 @@ if [[ $install_aks_cluster == "true" ]]; then
230231 fi
231232
232233 echo -e " \t create aks cluster Name: $aks , Resource Group $rg - ***done***"
233- echo " Adding another workload node pool"
234+ echo " Adding two new node pool types, workload and workloadf32 "
234235 # Check if the node pool already exists
235236 nodePoolExists=$( az aks nodepool show -g $rg --cluster-name $aks -n workload --query " name" -o tsv)
236237 if [[ ! -z $nodePoolExists ]]; then
237238 echo " Workload node pool already exists. Skipping node pool creation"
238239 else
239- echo " Adding another workload node pool"
240+ echo " Adding workload node pool"
240241 aks_nodecreate_output=$( az aks nodepool add -g $rg --cluster-name $aks -n workload \
241242 --os-sku AzureLinux \
242243 --mode User \
@@ -249,13 +250,39 @@ if [[ $install_aks_cluster == "true" ]]; then
249250 --enable-cluster-autoscaler \
250251 --max-pods 110)
251252 if [[ $? -eq 0 ]]; then
252- echo " Adding secondary node pool succeeded"
253+ echo " Adding workload node pool succeeded"
253254 else
254- echo " Adding secondary node pool Failed. Exiting"
255+ echo " Adding workload node pool Failed. Exiting"
256+ exit 1
257+ fi
258+ fi
259+
260+ nodePoolSummarizationExists=$( az aks nodepool show -g $rg --cluster-name $aks -n workloadf32 --query " name" -o tsv)
261+ if [[ ! -z $nodePoolSummarizationExists ]]; then
262+ echo " workloadf32 node pool already exists. Skipping node pool creation"
263+ else
264+ echo " Adding workloadf32 node pool"
265+ aks_nodecreate_output_summary=$( az aks nodepool add -g $rg --cluster-name $aks -n workloadf32 \
266+ --os-sku AzureLinux \
267+ --mode User \
268+ --node-vm-size $summarizationWorkerVmSize \
269+ --node-osdisk-size 100 \
270+ --node-count 0 \
271+ --max-count 5 \
272+ --min-count 0 \
273+ --tags $tags \
274+ --enable-cluster-autoscaler \
275+ --labels workload=summarization \
276+ --max-pods 110)
277+ if [[ $? -eq 0 ]]; then
278+ echo " Adding workloadf32 node pool succeeded"
279+ else
280+ echo " Adding workloadf32 node pool Failed. Exiting"
255281 exit 1
256282 fi
257283 fi
258- echo " Adding another workload node pool ***done***"
284+ echo " Adding two new node pool types, workload and workloadf32 ***done***"
285+
259286 # =============================================#
260287 # ============== AKS Credentials ==============#
261288 # =============================================#
0 commit comments