Skip to content

Commit 67dd293

Browse files
committed
feat: add cgroup & sysctls
1 parent fa5202b commit 67dd293

File tree

4 files changed

+48
-2
lines changed

4 files changed

+48
-2
lines changed

Diff for: modules/safer-cluster-update-variant/main.tf

+3-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ module "gke" {
9393
node_pools_taints = var.node_pools_taints
9494
node_pools_tags = var.node_pools_tags
9595

96-
node_pools_oauth_scopes = var.node_pools_oauth_scopes
96+
node_pools_oauth_scopes = var.node_pools_oauth_scopes
97+
node_pools_linux_node_configs_sysctls = var.node_pools_linux_node_configs_sysctls
98+
node_pools_cgroup_mode = var.node_pools_cgroup_mode
9799

98100
cluster_autoscaling = var.cluster_autoscaling
99101

Diff for: modules/safer-cluster-update-variant/variables.tf

+21
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,27 @@ variable "node_pools_oauth_scopes" {
224224
}
225225
}
226226

227+
variable "node_pools_linux_node_configs_sysctls" {
228+
type = map(map(string))
229+
description = "Map of maps containing linux node config sysctls by node-pool name"
230+
231+
# Default is being set in variables_defaults.tf
232+
default = {
233+
all = {}
234+
default-node-pool = {}
235+
}
236+
}
237+
variable "node_pools_cgroup_mode" {
238+
type = map(string)
239+
description = "Map of strings containing cgroup node config by node-pool name"
240+
241+
# Default is being set in variables_defaults.tf
242+
default = {
243+
all = ""
244+
default-node-pool = ""
245+
}
246+
}
247+
227248
variable "cluster_autoscaling" {
228249
type = object({
229250
enabled = bool

Diff for: modules/safer-cluster/main.tf

+3-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ module "gke" {
9393
node_pools_taints = var.node_pools_taints
9494
node_pools_tags = var.node_pools_tags
9595

96-
node_pools_oauth_scopes = var.node_pools_oauth_scopes
96+
node_pools_oauth_scopes = var.node_pools_oauth_scopes
97+
node_pools_linux_node_configs_sysctls = var.node_pools_linux_node_configs_sysctls
98+
node_pools_cgroup_mode = var.node_pools_cgroup_mode
9799

98100
cluster_autoscaling = var.cluster_autoscaling
99101

Diff for: modules/safer-cluster/variables.tf

+21
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,27 @@ variable "node_pools_oauth_scopes" {
224224
}
225225
}
226226

227+
variable "node_pools_linux_node_configs_sysctls" {
228+
type = map(map(string))
229+
description = "Map of maps containing linux node config sysctls by node-pool name"
230+
231+
# Default is being set in variables_defaults.tf
232+
default = {
233+
all = {}
234+
default-node-pool = {}
235+
}
236+
}
237+
variable "node_pools_cgroup_mode" {
238+
type = map(string)
239+
description = "Map of strings containing cgroup node config by node-pool name"
240+
241+
# Default is being set in variables_defaults.tf
242+
default = {
243+
all = ""
244+
default-node-pool = ""
245+
}
246+
}
247+
227248
variable "cluster_autoscaling" {
228249
type = object({
229250
enabled = bool

0 commit comments

Comments
 (0)