feat(infra): enable always-on pool autoscaling to 2 nodes

Services moved off L40S GPU node to always-on DEV1-M pool.
Single DEV1-M couldn't fit all services, so enable autoscaling
with max_size=2 to allow a second node when needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jgrusewski
2026-02-27 10:03:09 +01:00
parent 94f98c65f8
commit fbbd6bac22
3 changed files with 14 additions and 3 deletions

View File

@@ -9,7 +9,8 @@ terraform {
inputs = {
cluster_name = "foxhunt"
k8s_version = "1.34"
always_on_type = "DEV1-M"
always_on_type = "DEV1-M"
always_on_max_size = 2
# GitLab CE pool (dedicated for GitLab + Prometheus + Runner manager)
enable_gitlab_pool = true

View File

@@ -32,11 +32,15 @@ resource "scaleway_k8s_pool" "always_on" {
node_type = var.always_on_type
size = 1
min_size = 1
max_size = 1
autoscaling = false
max_size = var.always_on_max_size
autoscaling = true
autohealing = true
public_ip_disabled = var.public_ip_disabled
region = var.region
lifecycle {
ignore_changes = [size]
}
}
# GitLab CE node pool (dedicated DEV1-L for GitLab + Runner manager)

View File

@@ -21,6 +21,12 @@ variable "always_on_type" {
default = "DEV1-M"
}
variable "always_on_max_size" {
description = "Maximum number of nodes in the always-on pool (autoscaling)"
type = number
default = 2
}
variable "enable_gitlab_pool" {
description = "Create dedicated node pool for GitLab CE"
type = bool