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:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user