diff --git a/scripts/aks/bootstrap.sh b/scripts/aks/bootstrap.sh index c30d23e01..c9d5a0c74 100755 --- a/scripts/aks/bootstrap.sh +++ b/scripts/aks/bootstrap.sh @@ -749,6 +749,31 @@ AKS_ARM64_PIPELINE_OPTIONS=( echo "Create Arm64 pipelinepool" az aks nodepool add "${AKS_ARM64_PIPELINE_OPTIONS[@]}" +####################################################################################### +### Add dedicated Monitor pool in prod +### + +if [ "$RADIX_ZONE" = "prod" ]; then + AKS_MONITOR_OPTIONS=( + --cluster-name "$CLUSTER_NAME" + --nodepool-name "monitorpool" + --resource-group "$AZ_RESOURCE_GROUP_CLUSTERS" + --enable-cluster-autoscaler + --kubernetes-version "$KUBERNETES_VERSION" + --max-count "$MONITOR_MAX_COUNT" + --min-count "$MONITOR_MIN_COUNT" + --max-pods "$POD_PER_NODE" + --mode User + --node-count "$MONITOR_BOOTSTRAP_COUNT" + --node-osdisk-size "$MONITOR_DISK_SIZE" + --node-vm-size "$MONITOR_VM_SIZE" + --vnet-subnet-id "$SUBNET_ID" + --node-taints "nodetasks=monitor:NoSchedule" + --labels "nodepooltasks=monitor" + ) + echo "Create monitor pool" + az aks nodepool add "${AKS_MONITOR_OPTIONS[@]}" +fi ####################################################################################### ### Add GPU node pools diff --git a/scripts/aks/production.env b/scripts/aks/production.env index 81cf4ffed..e96ca36a8 100644 --- a/scripts/aks/production.env +++ b/scripts/aks/production.env @@ -23,6 +23,12 @@ ARM_PIPE_MIN_COUNT="1" ARM_USER_MAX_COUNT="30" ARM_USER_MIN_COUNT="1" +MONITOR_BOOTSTRAP_COUNT="1" +MONITOR_DISK_SIZE="1023" +MONITOR_VM_SIZE="Standard_E20ps_v5" +MONITOR_MAX_COUNT="2" +MONITOR_MIN_COUNT="1" + X86_BOOTSTRAP_COUNT="16" X86_DISK_SIZE="1023" X86_VM_SIZE="Standard_E16as_v5"