Skip to content

Commit

Permalink
chore(infracijioagent1/cijioagent1): enable autoscaling for the syste…
Browse files Browse the repository at this point in the history
…m pool (#758)

during the upgrade to kubernetes 1.28
jenkins-infra/helpdesk#4144, we saw a long
time to upgrade system pool and this may be due to the fact that the
system pools of those 2 clusters: `cijioagents1` and `infracijioagent1`
are not on autoscale.
This may improve next upgrade.
  • Loading branch information
smerle33 authored Jun 26, 2024
1 parent 488b46e commit 05112af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions ci.jenkins.io-kubernetes-agents.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ resource "azurerm_kubernetes_cluster" "cijenkinsio_agents_1" {
os_disk_size_gb = 150 # Ref. Cache storage size athttps://learn.microsoft.com/fr-fr/azure/virtual-machines/dasv5-dadsv5-series#dadsv5-series (depends on the instance size)
orchestrator_version = local.kubernetes_versions["cijenkinsio_agents_1"]
kubelet_disk_type = "OS"
enable_auto_scaling = false
node_count = 3 # 3 nodes for HA as per AKS best practises
enable_auto_scaling = true
min_count = 2 # for best practises
max_count = 3 # for upgrade
vnet_subnet_id = data.azurerm_subnet.ci_jenkins_io_kubernetes_sponsorship.id
tags = local.default_tags
zones = local.cijenkinsio_agents_1_compute_zones
Expand Down
5 changes: 3 additions & 2 deletions infraci.jenkins.io-kubernetes-sponsored-agents.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ resource "azurerm_kubernetes_cluster" "infracijenkinsio_agents_1" {
os_disk_size_gb = 150 # Ref. Cache storage size athttps://learn.microsoft.com/fr-fr/azure/virtual-machines/dasv5-dadsv5-series#dadsv5-series (depends on the instance size)
orchestrator_version = local.kubernetes_versions["infracijenkinsio_agents_1"]
kubelet_disk_type = "OS"
enable_auto_scaling = false
node_count = 3 # 3 nodes for HA as per AKS best practises
enable_auto_scaling = true
min_count = 2 # for best practises
max_count = 3 # for upgrade
vnet_subnet_id = data.azurerm_subnet.infraci_jenkins_io_kubernetes_agent_sponsorship.id
tags = local.default_tags
zones = local.infracijenkinsio_agents_1_compute_zones
Expand Down

0 comments on commit 05112af

Please sign in to comment.