Skip to content

Commit

Permalink
Monitorpool (#1418)
Browse files Browse the repository at this point in the history
* Add monitor pool in bootstrap

* Update taint

* Update taint

---------

Co-authored-by: Automatic Update <[email protected]>
  • Loading branch information
sveinpj and Automatic Update authored Jul 31, 2024
1 parent 717245f commit c4da3a7
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
25 changes: 25 additions & 0 deletions scripts/aks/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions scripts/aks/production.env
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c4da3a7

Please sign in to comment.